Isn't Hoth a bit cold for Yoda ;)

Seriously, I have a production ASP.Net web application that connects to a named SQL 
server instance to authenticate web
users - thousands of times a day.
Can you log in with the credentials in VS.Net, with the connection string builder 
dialog for a SqlConnection object?
---------------------------
Justin E. Pitts, Sr Programmer Analyst
PC Applications Development
BIG LOTS -- World's Best Bargain Place




                      Martin Welch
                      <[EMAIL PROTECTED]>           To:       
[EMAIL PROTECTED]
                      Sent by: "Moderated               cc:
                      discussion of advanced            Subject:  [ADVANCED-DOTNET] 
SqlConnection and named SQL Server 2000 instance
                      .NET topics."
                      <[EMAIL PROTECTED]
                      EVELOP.COM>


                      12/18/2002 04:18 AM
                      Please respond to
                      "Moderated discussion of
                      advanced .NET topics."






Has anyone successfully connected to a named database instance with
SQLConnection?

I assumed something like this would work but all I get is server not found
or refused connection errors:

SqlConnection conn = new SqlConnection("user id=jedi;password=yoda;initial
catalog=pubs; data source=hoth\\projectx;");
conn.Open();

I've trawled though google, on line help and msdn but so far I've come up
with nothing.

Can anyone enlighten me?

Martin

You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced 
DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced 
DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to