MDF file - correct way to use it

  • Thread starter Thread starter Markus Freitag
  • Start date Start date
M

Markus Freitag

Guest
Hello,
big problem.
I developed it under VS2017, C#. Everything works with the studio. Not on the client side anymore.
I use this connectionstring. Is not the file.


Data Source=(localdb)\MSSQLLocalDB;Initial Catalog=TestDB;Integrated Security=True;Connect
Timeout=30;Encrypt=False;TrustServerCertificate=True;ApplicationIntent=ReadWrite;
MultiSubnetFailover=False


All OK, I get the data.

On Client site nothing work.
What is the correct connection string?

I have to copy the file and then place the link. How do I do this correctly? How do I get the connection string. This is
from google.


Data Source=(localdb)\MSSQLLocalDB;AttachDbFilename=|DataDirectory|TestDB.mdf;
Integrated Security=True


My goal is to make a connection to the TestDB.mdf file on client PC.
What is there to do? What do I need to install?
The easiest way is I create the database with VS2017 and however I can copy the connection string to clipboard.

C:\Users\Freitag\AppData\Local\Microsoft\Microsoft SQL Server Local DB\Instances\MSSQLLocalDB
I have SQL Express, so I develop the application. Afterwards it goes to the client. What and how must I deliver?
Is there a straightforward description anywhere?

I've asked in the past, now I have to change something and I can't do it anymore. Please help me again. Thanks in advance.


Tip 1

Past question 1

Past question 2Tip 2Greeting Markus.


1551244.png


1551245.png

Continue reading...
 

Similar threads

D
Replies
0
Views
766
DexterCamarillo
D
D
Replies
0
Views
96
Donald Uko
D
M
Replies
0
Views
69
Markus Freitag
M
D
Replies
0
Views
712
DexterCamarillo
D
Back
Top