On your local box I assume.

That's part of the problem. Every example I can find is on the local box.

Thanks for the reply, though.

-----Original Message-----
From: Craig Andera [mailto:[EMAIL PROTECTED]]
Sent: 18 December 2002 14:59
To: [EMAIL PROTECTED]
Subject: Re: [ADVANCED-DOTNET] SqlConnection and named SQL Server 2000
instance


I connect to MSDE databases named .\VSdotnet2003 and .\netsdk all the
time. That may not be much help to you...

> -----Original Message-----
> From: Martin Welch [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, December 18, 2002 4:18 AM
> To: [EMAIL PROTECTED]
> Subject: [ADVANCED-DOTNET] SqlConnection and named SQL Server
> 2000 instance
>
>
> 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.

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