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

How to change the connection string for a mdf file at runtime in VB 2010

$
0
0
I am using VB 2010 Express with a Sql Server 2008 Express local database for the first time (Just learning!)

I would like to change the connection string at runtime to point to a different computer on the local network.

I know how to do this for an access mdb file but how do do it for a mdf SQL server file? I would like to change it in the load routine.

The database is currently in: C:\Users\Administrator\AppData\DeiServer\DeiServerDBs.mdf and DeiServer is a shared folder.

Viewing all articles
Browse latest Browse all 27355

Trending Articles



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