Click here to Skip to main content
14,422,439 members
Rate this:
Please Sign up or sign in to vote.
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 10:38am
Rate this:
Please Sign up or sign in to vote.

Solution 1

Sql connection-string for localhost server says:

Using the default instance (i.e., MSSQLSERVER, use the DOT (.))
<add name="CONNECTION_STRING_NAME" connectionString="Data Source=.;Initial Catalog=DATABASE_NAME;Integrated Security=True;" />
   
Rate this:
Please Sign up or sign in to vote.

Solution 2

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[^]
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month



CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100