Click here to Skip to main content
15,912,504 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I am a beginner in ASP.net application. I want to know, how to connect a database with my web page design? The SQL data base present in my local PC. Now I want to display the code and name of parties list from master table.
Posted
Updated 23-Jul-12 23:46pm
v2

these are some links you should follow:-
Connecting to Databases in ASP.NET[^]
Database Connection[^]

Hope it will help you.
Best of luck.
 
Share this answer
 
v3
Hi,
You can use SQL Express on LAN(on different machine) in the same way as on local machine. Just give IP address of the machine where SQL express is installed and SQL instance name in the connection string like below:
Data Source=192.168.0.52\SQLExpress; User ID=sa; Password=YourPassword; Initial Catalog=YourDatabase;
You also need to configure SQL Server to allow remote connection
http://support.microsoft.com/kb/914277[^]

Fore more information refer the links below:
Beginners guide to accessing SQL Server through C#[^]
Create a SQL Server Database Using C#[^]

--Amit
 
Share this answer
 

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