Click here to Skip to main content
15,905,427 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
hai all

how to connect sql server 2008 database to visual studio 2010 through server explorer.
I had created a database with sql server 2008. i need to connect this with visual studio 2010 for developing a website in asp,net and C#

can any one help me for connecting sql server 2008 database to visual studio 2010 through server explorer.

i tried it ..
but i stuck with the log on to the server..

i need to log on with sql server authentication...
username i inputed is sa
and password is dbace..

the error is login failed for user sa

thanks in advance....
Posted

1 solution

The first thing you want to do is add a data connection in the Visual Studio 2010 Servers windows. Right click on "Data Connections" and click on "Add New Connection":



Enter the required connection info in the "Add Connection" dialog and click "Test Connection" to test the connection. If that succeeds, click OK:



After you add the data connection you will be able to see the connection in the Data Connections tree:

Try this..


Thanks.
 
Share this answer
 
Comments
Ragi Gopi 13-Dec-11 4:51am    
i tried that ..
i need to login in sql server authentication mode....

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900