dbTalk Databases Forums  

ODBC Connection ApplicationName and LoginName

comp.databases.ms-access comp.databases.ms-access


Discuss ODBC Connection ApplicationName and LoginName in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
agiamb
 
Posts: n/a

Default ODBC Connection ApplicationName and LoginName - 12-20-2010 , 07:11 AM






Using Access 2007 SP2.

I am using ODBC linked tables and passthrough queries (dsn-less) connected
to an SQL Server 2008 R2 Express database.

When a different user, other than had previously opened it, opens the Access
application, I relink all of the tables and passthrough queries using the
new user's login and password.

However, when viewing the trace to SQL Server via Profiler, I see that
Access is still passing the old user's login.

This happens whether I simply re-link the tables, or delete and recreate
them.

Is there any way to force Access to use the new user's login? So far, all I
have figured out is to force the app to close, after relinking, and have the
user reopen it.

Along the same lines (though not so important), in my connection string, I
supply the applicationname. However, when monitoring the trace, I see that
sometimes Access uses my applicationname and sometimes it uses the name of
the accdb file. It would be nice to be able to control this also.

Thanks for any assisstance.

--

AG
Email: npATadhdataDOTcom

Reply With Quote
  #2  
Old   
a a r o n . k e m p f @gmail.com [MCITP: DBA]
 
Posts: n/a

Default Re: ODBC Connection ApplicationName and LoginName - 01-03-2011 , 06:00 AM






if you were using Access Data Projects (one single connection to SQL), you wouldn't have to worry about any of this extra BS.

Reply With Quote
Reply




Thread Tools
Display Modes

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



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.