March 15, 2010 at 7:03 am
try using
initial catalog
, instead of
database
:
Data Source=servername;Initial Catalog=dbname;
or try: http://www.connectionstrings.com
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
This thing is addressing problems that dont exist. Its solution-ism at its worst. We are dumbing down machines that are inherently superior. - Gilfoyle
March 15, 2010 at 7:16 am
Do you have an error?
I would suggest you grab a template from ConnectionStrings.com, as noted above, and use that.
March 15, 2010 at 8:27 am
Thanx Guys. I was actually at connectionstrings.com before coming here. I wasn't just sure which one to use. Still confused.
March 15, 2010 at 8:41 am
Use this:
Data Source=myServerAddress;Initial Catalog=myDataBase;User Id=myUsername;Password=myPassword;
That's a basic, standard one for .NET connections with a user/pwd. If you can use trusted connection, that's great, but this should work. The DSN stuff can work, but it introduces a potential dependency on the particular machine and other setup.
Viewing 4 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic. Login to reply