Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 15136

How to include .mdf inside vb.net without using SQL Express on other users machines

$
0
0
Dear All

When I Add .mdf file inside VB.net Application Under the Debug Folder and refer to it using this code

Code:

mycon = New SqlConnection("Data Source=.;Initial Catalog=" & Application.StartupPath  & "\Projects.mdf;Integrated Security=True;")
The Connection Does not Work, So What is missing for me to do,

Notice : I Checked all answers on the internet and I tried many things but nothing works,

Appreciate your help.

Thanks, Regards

Viewing all articles
Browse latest Browse all 15136

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>