Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Importing / Linking / September 2004

Tip: Looking for answers? Try searching our database.

transfer data - ODBC

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Alex - 24 Sep 2004 18:20 GMT
I'm using the following:
DoCmd.TransferDatabase acImport, "ODBC
Database", "ODBC;DSN=DSNname;SERVER=ServName;UID=userID;PWD
=pass" _ & "DATABASE=DBname",
acTable, "dbo.Table1", "Table2"  

On my computer where I have access to the database it's
working. I used different passwords and, surprisingly, it
works with any ones (I think because I have the access to
this DB).

But, when I'm doing this on another computer, which
doesn't have access to this DB, I have the error message:
Connection failed SQL State '2800'. SQL Server error: 18456
... Login failed for user 'userID'. The window appears to
enter a password for the Login 'userID'. I'm entering
there the same password, which is in the connection ODBC
string - "pass" and everything is going through.

How could I overcome it by using DoCmd.TransferDatabase...

Thanks
john - 30 Sep 2004 21:12 GMT
In SQl, it may not recognize the name of that computer
user or that user does not have rights to the db.  I know
this sounds weird as your passing the name and password.

Or maybe you need to put the db on the network?

>-----Original Message-----
>I'm using the following:
[quoted text clipped - 20 lines]
>Thanks
>.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.