June 2008
Sun Mon Tue Wed Thu Fri Sat
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30          
Search

 
Catagories
Archives
Recent Entries
Links
RSS
can't log into database?
Catagory: sql server · This Entry · Comment(0) · eMail entry · Google
April 13, 2004 02:42 PM

sql server

This throws me off now and then. I quickly create a database in EnterpriseManager then run a script to create objects using Query Analyzer. Since I can to log in as 'sa', everything seems fine -- but I can't log in using a connection string even though 'sa' *should* be the dbo for the database. so what's going on? there's a catch.


I actually wasn't paying attention when I registered the server in Enterprise Manager (rare - but it happens). So, Instead of using SQL Server authentication, it was set for windows authentication.

Hence, the database was created by the windows user, not 'sa' -- therefore the dbo was *not* sa. if i bothered to look in the system tables, that'd be pretty obvious.

Once you straight out the dbo, the connection string should work as expected.





Comments

Post a comment
Name:


Email Address:


URL:


Comments: