Home > Archive > microsoft.public.cert.mcdba > February 2004 > Connect to DB from VS.NET





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Connect to DB from VS.NET

2004-02-12, 8:25 pm

Sorry guys. I figured it out already.

>-----Original Message-----
>Hey All,
>
>I drag a Database Connection from Server Explorer in
>VS.NET to the web form, and it creates the

sqlConnection1
>object. I checked the ConnectionString, which seems
>properly. In my code, I called sqlConnection1.Open().

But
>this line generates an exception when running:
>System.Data.SqlClient.SqlException: Login failed for

user
>machinename\ASPNET'.
>
>Do I need to setup user/role for aspnet in SQL Manager?
>How can I setup it properly?
>
>Thanks a million!
>Frank
>
>.
>

Sponsored Links





Free Braindumps | MCSE braindumps software forum

Copyright 2003 - 2008 examnotes.net