Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27201

Connection string for connecting to a sql server 2008 express database on a LAN

$
0
0
I am using VB 2010 Express with a sql server 2008 express database for the first time.
I am using windows authentication.
The Sql server database is on a computer named "NewLaptop".


This connection string works:
Data Source=.\SQLEXPRESS;AttachDbFilename="C:\Program Files\MySqlServer\ServerDBs.mdf";Integrated Security=True;Connect Timeout=30;User Instance=True

I want to override the connection string in the load routine of my vb 2010 express program so I can access this database from client computers as well as the server computer over the LAN.

What should the connection string be??
Me.DealershipTableTableAdapter.Connection.ConnectionString = "??"

Viewing all articles
Browse latest Browse all 27201

Trending Articles



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