Re: login failed for user ... Not Associated with a trusted SQL Se
- From: Christian F CLY <ChristianFCLY@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 3 Aug 2005 01:16:01 -0700
Well I changed my connection string but the error message is still the same,
I think now it's rigth
mConnection = new SqlConnection("data source=FGUL506907WXP;initial
catalog=IDPS;Integrated Security=SSPI");
It uses windows authentication.
Does someone have an connection string example between a windows CE device
and a remote SQL server 2000
I don't know what to do and it very urgent.
"Sue Hoegemeier" wrote:
> In your connection string, you are specifying parameters for
> both SQL authentication and Windows authentication - it
> needs to be one or the other. If you use Windows
> authentication, you don't specify a user id and password.
> You can find some examples at:
> http://www.carlprothman.net/Default.aspx?tabid=86#SQLClientManagedProvider
>
> -Sue
>
> On Tue, 2 Aug 2005 07:56:11 -0700, Christian F CLY
> <ChristianFCLY@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
>
> >Hello,
> >
> >I'm trying to connect a mobile computer runing under windows CE to a
> >database located on a windows XP desktop.
> >The mobile computer application is written in C# under Visual Studio .NET
> >2003.
> >
> >My problem occurs when I execute mConnection.Open();
> >
> >A SqlException is caught with this message :
> >Login failed for user '(null)'. Reason : Not associated with a trusted SQL
> >Server connection.
> >
> >here is the connection string :
> >mConnection = new SqlConnection("User ID=sa;data source=" + mSqlServer +
> >";Integrated Security=SSPI;initial catalog=IDPS;Password=xxxx;persist
> >security info=false;Trusted_Connection=yes");
> >
> >What can I do to correct it ?
>
>
.
- References:
- login failed for user ... Not Associated with a trusted SQL Server
- From: Christian F CLY
- Re: login failed for user ... Not Associated with a trusted SQL Server
- From: Sue Hoegemeier
- login failed for user ... Not Associated with a trusted SQL Server
- Prev by Date: Re: Server Service not start
- Next by Date: Failed subscription to SQL Publication
- Previous by thread: Re: login failed for user ... Not Associated with a trusted SQL Server
- Next by thread: Re: OLE DB MSOLAP
- Index(es):
Relevant Pages
|