Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
skippysps
Starting Member
1 Post |
Posted - 2005-11-23 : 07:27:14
|
Hi I'm trying to create blank Access 97 MDB with a table that uses a GUID. I'm creating the MDB using an ActiveX script using ADOX but then how do I go about creating the GUID column in the Execute SQL task??I have tried creating the table and column in the ActiveX script but I can get as far as creating the MDB but not any tables within it.The relevant part of the script is as follows: ' Create empty MDBsConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0; Jet OLEDB:Engine Type=4; Data Source=" & sFilename Set oCat = CreateObject("ADOX.Catalog")oCat.Create sConnectionString'Set oCat = Nothing' Create a new Table Set oTable = New ADOX.Table sTableName = "BusinessUnit" oTable.Name = sTableName oCat.Tables.Append sTableName The MDB creating is fine but Set oTable comes up with a message that the ADOC class in not defined. So does anyone know how to create a GUID using the Execute SQL task or by using the ActiveX script.skippy |
|
|
|
|