Hello,
I'm trying to import a table from MS SQL Server to a local Access database file through VBA. The code I have looks like this:
DoCmd.TransferDatabase acImport, "ODBC Database", "ODBC;DSN=SDSQL2;LANGUAGE=us_english;DATABASE='TimberlineWarehouse';Integrated Security='SSPI';", acTable, "tempAuditFootnote", "tempAuditFootnote"
The problem is at execution I keep getting a "Run-Time error '3151': ODBC--connection to 'SDSQL2' failed."
Now I've checked, SDSQL2 is a valid server name and 'TimberlineWarehouse' is a valid database name. I'm starting to think it might be something to do with the Integrated Security tag, but I'm not sure.
Any Ideas?
Thanks,
Jason
I'm trying to import a table from MS SQL Server to a local Access database file through VBA. The code I have looks like this:
DoCmd.TransferDatabase acImport, "ODBC Database", "ODBC;DSN=SDSQL2;LANGUAGE=us_english;DATABASE='TimberlineWarehouse';Integrated Security='SSPI';", acTable, "tempAuditFootnote", "tempAuditFootnote"
The problem is at execution I keep getting a "Run-Time error '3151': ODBC--connection to 'SDSQL2' failed."
Now I've checked, SDSQL2 is a valid server name and 'TimberlineWarehouse' is a valid database name. I'm starting to think it might be something to do with the Integrated Security tag, but I'm not sure.
Any Ideas?
Thanks,
Jason