Thanks to all of you (Aaron, Mklapp, Eric & Paul) for jumping in. So far,
I've still had no luck.
This is a list of the connections I've tried so far:
server=localhost;database=pubs;uid=jspiegel;pwd=abc;
server=J2K;database=pubs;uid=jspiegel;pwd=abc;
server=J2K;database=pubs;uid=sa;pwd=admin;Trusted_Connection=Yes
server=localhost;database=pubs;uid=sa;pwd=admin;Trusted_Connection=Yes
server=localhost;database=pubs;uid=sa;pwd=admin
server=J2K;database=pubs;uid=sa;pwd=admin
server=localhost;database=pubs;Trusted_Connection=Yes
server=<IPaddress>;database=pubs;uid=sa;pwd=admin;
server=<IPaddress>;database=pubs;integrated security=sspi;
server=localhost;database=pubs;integrated security=sspi;
server=SQLServer1;database=pubs;integrated security=sspi;
server=(local);database=pubs;uid=sa;pwd=admin;
server=(local);database=pubs;integrated security=sspi;
server=.;database=pubs;uid=sa;pwd=admin;
server=.;database=pubs;integrated security=sspi;
The uid=jspiegel;pwd=abc correspond both to a domain login and a user I've
added to SQL Server.
While I am logged into the domain, all of this is happening (or trying to
happen) on my local machine (Win2K Pro, SQL Server 2000 and .NET framework
1.1).
While I have toggled it a few times, most of my attempts have been with SQL
Server and Windows set as the authentication.
I had installed MSDE quite a while ago and then the SQL Server trial
version. Yesterday, I tried to wipe the slate clean and reinstall MSSQL2K
fresh. Probably doesn't answer anything but I'm grasping.
Thanks again,
John
BTW, I think I was spoiled years ago working in a single environment with
native DB. This interconnection stuff drives me batty!
John Spiegel said:
Hi all,
I'm missing something, probably stupid, on connecting to a SQL Server
database from an aspx file. I haven't really done much w/ SQL Server and
suspect that it's a problem on that side. I've installed the SQL Server
developer edition locally and do have a pubs database.
The connection I'm attempting is the following:
SqlConnection objConnection =
new SqlConnection(
"server=localhost;database=pub;uid=sa;pwd=admin" );