V
VR
While developing an ASP.NET with a SQL server running
locally, I didn't have any problems using the following
connection string (where ATP is the local server's name)
"Server=ATP;uid=AppAdmin;pwd=pass;Database=DB1";
When I try to connect to a remote SQL server named DTP,
using connection string:
"Server=DTP;uid=AppAdmin;pwd=pass;Database=DB1";
I am getting an exception "SQL Server doesn't exist or
access denied".
I wrote a Windows Forms apps in .NET and successfully
connected to DTP server with exaclty the same connection
string as used in ASP.NET. So, I figured my problem had
something to do with accounts under which both apps run.
I tried the following:
1. added to connection string "Network Library =dbmssocn"
per MS article Q315159
2. tried using impersonation:
<identity
impersonate="true"
userName="user"
password="pass"
/>
where user is the user name for an administrator on my
machine
Still, no luck.
Any suggestions are greatly appreciated.
Thanks,
VR
locally, I didn't have any problems using the following
connection string (where ATP is the local server's name)
"Server=ATP;uid=AppAdmin;pwd=pass;Database=DB1";
When I try to connect to a remote SQL server named DTP,
using connection string:
"Server=DTP;uid=AppAdmin;pwd=pass;Database=DB1";
I am getting an exception "SQL Server doesn't exist or
access denied".
I wrote a Windows Forms apps in .NET and successfully
connected to DTP server with exaclty the same connection
string as used in ASP.NET. So, I figured my problem had
something to do with accounts under which both apps run.
I tried the following:
1. added to connection string "Network Library =dbmssocn"
per MS article Q315159
2. tried using impersonation:
<identity
impersonate="true"
userName="user"
password="pass"
/>
where user is the user name for an administrator on my
machine
Still, no luck.
Any suggestions are greatly appreciated.
Thanks,
VR