C
Chris Burnette
I have a bound form in Access that users will use to access the data in a SQL
Server Express database via a linked table. However, when I try to open the
form I get the message:
Login failed for user (null); not associated with a trusted SQL Server
connection.
The SQL Server Login box then appears. I enter the server name and my SA
username and password, which I use to log in to the server. I then get the
message:
Connection failed:
SQLState: '08004'
SQL Server Error: 4060
Server rejected the connection; Access to selected database has been denied.
I don't understand this message. I never had trouble connecting to the DB
with my SA login in MSDE, but for some reason I am having problems with
Express. I started the Browser service and enabled TCP/IP, so that shouldn't
be a problem, and I'm trying to connect to an instance on my local machine
anyway. I can connect to SQL Server Express Management Studio with my SA
login, so I am thinking the problem must be with connecting via Access.
I use a login form that passes the user's username and password to SQL
Server via a connection string, and I can login without error using this
form (I had to change the port in the connection string from 1433 as I think
that was conflicting with MSDE).
Does anyone have any ideas why I might be having this problem with Express?
Any suggestions would be appreciated.
Thanks,
Chris
Server Express database via a linked table. However, when I try to open the
form I get the message:
Login failed for user (null); not associated with a trusted SQL Server
connection.
The SQL Server Login box then appears. I enter the server name and my SA
username and password, which I use to log in to the server. I then get the
message:
Connection failed:
SQLState: '08004'
SQL Server Error: 4060
Server rejected the connection; Access to selected database has been denied.
I don't understand this message. I never had trouble connecting to the DB
with my SA login in MSDE, but for some reason I am having problems with
Express. I started the Browser service and enabled TCP/IP, so that shouldn't
be a problem, and I'm trying to connect to an instance on my local machine
anyway. I can connect to SQL Server Express Management Studio with my SA
login, so I am thinking the problem must be with connecting via Access.
I use a login form that passes the user's username and password to SQL
Server via a connection string, and I can login without error using this
form (I had to change the port in the connection string from 1433 as I think
that was conflicting with MSDE).
Does anyone have any ideas why I might be having this problem with Express?
Any suggestions would be appreciated.
Thanks,
Chris