J
JMCS
I am using the following code to connect to an SQL server database. The
connection 'works' in that the tables are fully visible. However, they are
not update-able which defeats the object.
datasource = "ODBC;Driver={SQL Server};Server=" & SelectServer &
";Database=XXXXX;UID=xxxxxx;PWD=xxxxxx"
Set tbl1 = db.CreateTableDef(tTable, dbAttachSavePWD, srcTable,
datasource)
db.TableDefs.Append tbl1
('SelectServer' is a variable to allow switching between the live and test
databases)
The username with its password has full rights to the database, and manual
connection works fine. Any suggestions on what I'm doing wrong here, please?
JMCS
connection 'works' in that the tables are fully visible. However, they are
not update-able which defeats the object.
datasource = "ODBC;Driver={SQL Server};Server=" & SelectServer &
";Database=XXXXX;UID=xxxxxx;PWD=xxxxxx"
Set tbl1 = db.CreateTableDef(tTable, dbAttachSavePWD, srcTable,
datasource)
db.TableDefs.Append tbl1
('SelectServer' is a variable to allow switching between the live and test
databases)
The username with its password has full rights to the database, and manual
connection works fine. Any suggestions on what I'm doing wrong here, please?
JMCS