Re: Login failed for user 'sa'. C#, SqlServer 2000
- From: "gabe garza" <gbgarza@xxxxxxxxx>
- Date: Thu, 19 May 2005 23:15:48 GMT
If you're currently setup for SqlServer and Windows authentication then use
Query Analyzer to login using sa and your password for sa.
If you get the same problem then SQL Server isn't setup for SqlServer
authentication, it's only setup for Windows authentication.
If you're able to login using Query Analyzer then post the actual code (not
just the connection string) that you're using, something is wrong with that
code.
"Shawn K" <ShawnK@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:FE992BB3-9C44-403F-84F8-19FF8CE2BCFD@xxxxxxxxxxxxxxxx
> This is driving me nuts. I have found plenty of newsgroups that discuss
> this
> subject and not one of them helped. I have tried multiple connection
> strings
> to connect to a database on another computer. The current string
> erver=hostMachine;Database=hostDatabase;User ID=sa;Password=hostPassword
> produces the following error:
>
> Login failed for user 'sa'. Reason: Not associated with a trusted SQL
> Server
> connection.
>
> So I tried another string using "Trusted_Connection=Yes" which produces an
> error that user 'null' was not trusted.
>
> SqlServer is currently setup to use SqlServer and Windows authentication,
> which is why I don't understand why providing the username and password
> for
> the server would return that error. I also double checked and reset the
> password in enterprise manager and that still did not help. I'm at my
> wits
> end so any assistance would be appreciated. Thanks in advance.
.
- Follow-Ups:
- Re: Login failed for user 'sa'. C#, SqlServer 2000
- From: Shawn K
- Re: Login failed for user 'sa'. C#, SqlServer 2000
- References:
- Login failed for user 'sa'. C#, SqlServer 2000
- From: Shawn K
- Login failed for user 'sa'. C#, SqlServer 2000
- Prev by Date: Help With SqlTransactions and the SqlHelper object
- Next by Date: RE: updating tables from disconnected dataset
- Previous by thread: Re: Login failed for user 'sa'. C#, SqlServer 2000
- Next by thread: Re: Login failed for user 'sa'. C#, SqlServer 2000
- Index(es):
Relevant Pages
|
Loading