Click here to Skip to main content
15,881,172 members
Please Sign up or sign in to vote.
1.80/5 (2 votes)
hii,everyone
how to make connection string direct to database that in project folder and open in any computer
without using server or re connection again.

this is connection when database on the server
(Data Source=MO-PC\\SQLEXPRESS;Initial Catalog=student;Integrated Security=True)

i need in project??
Posted

1 solution

You can't, not with SQL databases - you have to connect to those via an instance of SQL server.

You could change your code to use a single user database such as SqlCe, SqLite or even Access, but any system which wants multiuser access to the same database really does need a server system. (You can do it with Access - just - but it generally causes a world of pain at some point)
 
Share this answer
 
Comments
Rahul VB 9-Jan-14 2:54am    
hey OG, high five, +5 laugh:
-Rahul

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