I am doing a project of web application. I am still a beginner and have certain query. please let know what all steps i need to take up..
- Whether SQL SERVER 2005 can be used with Visual studio 2008?
- I have the above mentioned software’s installed. I installed Visual studio 2008 professional edition and which atuomatically installed Sql server 2005.
- How should i start the connection. I did start SQL server 2005 service by running the SQL server (SQLEXPRESS)
- The main thing is i need to create tables in the backend database whcich i can use in visual studio ’08.
Please help me with this problems.. Thank you in advance
To create tables you should use SQL Management Studio (an Express edition is available).
To easily interact with these tables in Visual Studio, right click on your project, go Add New Item -> Data -> LINQ to SQL Classes (call it DB.dbml or Base.dbml or something similar).
Now go View on the top menu -> Server Explorer.
Right Click on Data Connections -> Add Connection -> Microsoft SQL Server -> Put your Server Name (probably YOUR-PC\SQLEXPRESS), Select your database.
Now you can drag tables onto the dbml workspace.
Now build, and you can reference your tables in code like this:
You might need to enable TCP/IP and Named Pipes for your SQL Server Express using the SQL Configuration Manager (Google for more details).