Click here to Skip to main content
15,920,111 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
i am currently building a hotel management system. i want it to be used by many staffs and having central database. What is the code for the insertion on data in the central data base. i use visual studio 2010 and sql server..
Posted
Updated 21-Jul-12 15:07pm
v3
Comments
Kenneth Haugland 21-Jul-12 20:48pm    
Normally done via WCF (http://msdn.microsoft.com/en-us/library/ee958158.aspx), or you could use an SQL server
Dinesh Lamsal 21-Jul-12 23:55pm    
dear friend can you tell me more about WCF

[no name] 21-Jul-12 20:51pm    
What does networking in visual studio have to do with storing data in a database?
Dinesh Lamsal 21-Jul-12 23:53pm    
i know how to insert data in data base.. all i want to know i how to insert in server at another computer while i am using the software at my computer.. the server computer and my computer are connected via LAN,,
[no name] 21-Jul-12 21:11pm    
Nothing special about this. Create a connection, create a command (INSERT your data), then execute the command. http://w3schools.com/sql/sql_insert.asp

1 solution

Pursuant to your last comment to Wes ...

Beginners guide to accessing SQL Server through C#[^]

If you use the Server Explorer in Visual Studio, it'll give you the connection string

And, inevitably ...

How to enable SQL for remote access[^]
 
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