Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > newbie SQL Server 2005 connection question

Reply
Thread Tools

newbie SQL Server 2005 connection question

 
 
SpaceMarine
Guest
Posts: n/a
 
      08-05-2007
hello,

i have a SQL Server instance running on a server. i have an ASP.NET
application running locally on my dev machine. in my app's web.config
i have this connection string:

<add key="connStr" value="server=MYSERVER; database=MyDb;
Integrated Security=SSPI;" />

....however, this connection is refused w/ this error message:

Login failed for user ''. The user is not associated with a trusted
SQL Server connection.


so the question is -- how do i setup a user in the db instance that is
associated w/ a trusted connection? currently for users i have a
"MYSERVER\ASPNET", however thats local to the server -- its not my dev
machine's ASPNET account. i tried to add one via the right-click "New
User", but wasnt able to point to the DEVMACHINE\ASPNET account.

thanks for you help.


sm

 
Reply With Quote
 
 
 
 
Kevin Spencer
Guest
Posts: n/a
 
      08-06-2007
DEVMACHINE\ASPNET is a local account on the development machine, and cannot
be seen by the other machine. Create a user account on that machine, and
have your connection string use that user's credentials.

--
HTH,

Kevin Spencer
Microsoft MVP

Printing Components, Email Components,
FTP Client Classes, Enhanced Data Controls, much more.
DSI PrintManager, Miradyne Component Libraries:
http://www.miradyne.net

"SpaceMarine" <> wrote in message
news: ups.com...
> hello,
>
> i have a SQL Server instance running on a server. i have an ASP.NET
> application running locally on my dev machine. in my app's web.config
> i have this connection string:
>
> <add key="connStr" value="server=MYSERVER; database=MyDb;
> Integrated Security=SSPI;" />
>
> ...however, this connection is refused w/ this error message:
>
> Login failed for user ''. The user is not associated with a trusted
> SQL Server connection.
>
>
> so the question is -- how do i setup a user in the db instance that is
> associated w/ a trusted connection? currently for users i have a
> "MYSERVER\ASPNET", however thats local to the server -- its not my dev
> machine's ASPNET account. i tried to add one via the right-click "New
> User", but wasnt able to point to the DEVMACHINE\ASPNET account.
>
> thanks for you help.
>
>
> sm
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to remote connect to the SQL server 2005 when th ere is a‘\’ in the SQL server name, such as 192.168.0.1 1\active? Wesley Chen Ruby 0 04-07-2009 10:23 AM
Help. Getting a An error has occurred while establishing a connectionto the server. When connecting to SQL Server 2005, this failure may be causedby the fact that under the default settings SQL Server does not allow remote aboutjav.com@gmail.com ASP .Net 0 05-03-2008 12:43 PM
MCITP SQL Server 2005 or SQL Server 2008 Darrilgibson@gmail.com MCITP 0 12-19-2007 01:56 PM
SQL Server 2005 + SQL Server Express farseer ASP .Net 3 08-08-2006 04:07 AM
Wohoo! VS.NET 2005/ASP.NET 2.0/SQL Server 2005/BizTalk Server 2006 will launch week of Nov. 7 Juan T. Llibre ASP .Net 0 06-07-2005 05:19 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57