Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

 All Forums
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 Initial catalog Vs DataBase in constring
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Starting Member

39 Posts

Posted - 05/14/2009 :  02:51:58  Show Profile  Reply with Quote
Hi All,
I am using ADO connection String to connec to my SQL 2005 Database
I have got a Wiered Issues
In the connection String If I Use "DataBase" then I am Getting an Error
"[Microsoft][ODBC SQL Server Driver][SQL Server]Cannot open database "LTDRating" requested by the login. The login failed. "

But When I Use "Initial Catalog" then its working

Below is the Connection string

strConnectString="DRIVER={SQL Server};SERVER=MyServer; Intial Catalog=MyDatabase;UID=" & id & ";PWD=" & pd

Could You please suggest why it takes Intial catalog and Not database ?


Edited by - DeepakNewton on 05/14/2009 02:57:31
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.02 seconds. Powered By: Snitz Forums 2000