Home | Articles|Namespace|Interview Questions|Tools|Jobs|Projects|Community
Asp.net Tutorials

»Dotnet Ads
»Message Boards
Message Boards
Dotnet Books

»Member Details
Register
Login
LogOut
Submit Code
Submit Jobs
Submit Projects

»Competition
Community
Winners
Prizes
Write For Us
Members

»Other Resources
Links
Dotnet Resources


Forums»SQL Server Forums»



connect to an sql server database

hello. i'm new to databases. and tryin' to learn by example. i took one of o'reilly's ado.net 3.5 samples, connectsql server, which has a connectionstring declared like this: string sqlConnectString1 = "Data Source=(local);" +
"Integrated security=SSPI;Initial Catalog=AdventureWorks;";
i put the db in the same directory as the solution's.
when i run the project, i get an unhandled SqlException:
Cannot open database "AdventureWorks" requested by the login. The login failed.
Login failed for user 'machine\adminaccount'.
i'm running vs 2008 and sql server 2005.
if there's anyone that can help me..
posted by:anonymous on 6/12/2008 9:02:59 AM
© 2008 dotnetwatch.com -- Privacy policy

Website Design & Internet Marketing by Shivam