Connecting to linked SQL table in Access



I'm running SQL Server Express 2005 on our server and it's server
authentication is set to "SQL Server and Windows Authentication mode". I
wrote the following DAO procedure in Access 2003.

Function LinkTables()

Dim DB As Database
Dim tDef As TableDef

Set DB = CurrentDb
Set tDef = DB.CreateTableDef("Users")
tDef.Connect = "ODBC;Driver={SQL
Server};Server=AltekNT\SQLEXPRESS;Database=ALTEK;UID=ez1;PWD=test-1"
tDef.SourceTableName = "dbo.Users"
DB.TableDefs.Append tDef

End Function

ez1 only has read permissions, yet I'm able to update data in the linked
table, and the connect string for the table becomes "ODBC;DRIVER=SQL
Server;SERVER=BackupServer;APP=Microsoft Office
2003;WSID=BACKUPSERVER;DATABASE=bomdSQL;Trusted_Connection=Yes" In fact, I
don't have to even supply a valid logon id and password for me to be able to
link to the table with full permissions. How can I prevent someone from
being able to link to a SQL Server table with full permissions unless a valid
username and passwork is supplied? How can I make it so the connect string
doesn't automatically get set to "Trust_Connection"?


.



Relevant Pages

  • Re: Select permission denied on object [tablename] database
    ... appropriate permissions (by default, it uses the ASPNET local user). ... your SQL server is running in Windows Authentication mode, ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Expire passwords
    ... This will shield your SQL Server installation ... from most Internet-based attacks by restricting connections to Microsoft ... servers) is only available in Windows Authentication Mode. ... SQL Server Developer Support Engineer, MCDBA, MCSE, MCT ...
    (microsoft.public.sqlserver.security)
  • Re: Select permission denied on object [tablename] database
    ... it uses the ASPNET local user). ... > your SQL server is running in Windows Authentication mode, ... >> The connection is getting opened but it is throwing the exception in ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Yukon and mixed mode for msde database?
    ... Michael Tissington ... > "We recommend using Windows Authentication mode when possible. ... Mixed mode is required when working with SQL Server 7.0. ...
    (microsoft.public.sqlserver.msde)
  • Re: User ID issue - urgent
    ... Is your SQL Server configured to only support Trusted Connections? ... SQL Server and Windows Authentication Mode ... I add the ID under the default security tab, ...
    (microsoft.public.sqlserver.security)