Click here to Skip to main content
15,896,606 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Friends,
I have made some database insql server. Please tell me the procedure how I can deploy my product with the database on the target computer. I am new with databases. So please guide me at beginner level.

Regards
Posted
Updated 11-May-10 17:44pm
v2

See if this link helps you.
 
Share this answer
 
hi
as u said u have created database in sql server and u want to use it...so use sqlconnection in the project u want to use this database...for this

include
using system.data.sqlclient; //namespace

and then make connection to the database as

sqlconnection con=new sqlconnection("constr");

connection string is the string to connect to the particular database this string u can get from

tools-> connect to database-> datasource (sql server)

enter server name and database name

then click on advance and copy the connection string from there.


i think this will help u........

thanks
adi
 
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