Click here to Skip to main content
15,900,689 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
the problem is i need to make a local db by vb.net work on any pc

What I have tried:

i know how to build a local db but when set up my application on another pc it wont work
so how can i fix the connection issue
Posted
Updated 8-Jan-20 9:38am

Sql connection-string for localhost server says:

Using the default instance (i.e., MSSQLSERVER, use the DOT (.))
C#
<add name="CONNECTION_STRING_NAME" connectionString="Data Source=.;Initial Catalog=DATABASE_NAME;Integrated Security=True;" />
 
Share this answer
 
Many people seem to think that you don't need to install LocalDB, but you will have to install it.
See answer and comments here: sql server - LocalDB deployment on client PC - Stack Overflow[^]
 
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