MS SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesMS SQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old December 19th, 2004, 10:42 AM
asphelp asphelp is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Posts: 4 asphelp User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
SQL Server Authentication problem

I am attempting to update an Access application to connect to an SQL Server 2000 database on Windows 2003 through ODBC. The Access application was connecting to Oracle 8.1.7 in the past and now the database is being upgraded. I have re-linked all the tables to the new SQL Server database. I want the tables to be linked automatically as soon as the Access application is opened.

On the SQL Server database I have set it to use 'Mixed' authentication. I have setup a user on the database that has Read only access. On the client site I have setup the ODBC Data Source Administrator with a new System DSN which uses the SQL Server Driver. The new system DSN specifies that the SQL server will verify the authenticity of the login "with SQL Server Authentication using a login ID and Password entered by the user". Below this the Connect to SQL Server to obtain default settings for additional configuration options is checked and the login ID and password are entered. When a test on this connection is run, it Connects successfully.

On the Access side I have a macro using the Transfer Database action to link the tables which uses an ODBC connection with the following values. ODBC;DSN=;SERVER=;UID=;PWD=;DATABASE=
There is also a line of code which runs to link the tables which uses the DoCmd.TransferDatabase acLink, "ODBC Database", ODBC;DSN=;ARSERVER=;UID=;PWD=;DATABASE=", acTable, _
"dbo.table_name", "Temp Link Item", False, True

Everytime I open the Access application and run it I receive the following error - see attached ConnectionError.doc.
Then it prompts me with a SQL Server Login box. The login box has the name of the server. A check box with a check mark to indicate "Use Trusted Connection" and the login ID and password are greyed out, but it is my network login ID.
If I uncheck the "Use Trusted Connection" and enter the USER ID and password set up on the database the connection will go through and I can then use my application. The next time I close down the application and open it again I have to do the same thing over again.


I'm not sure if I am missing something on the Database or if there is a file such as the TNSNames file with oracle that I am missing.

Any help would be appreciated.
Attached Files
File Type: doc ConnectionError.doc (581.4 KB, 51 views)

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesMS SQL Development > SQL Server Authentication problem


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway