|
-
May 18th, 2013, 10:25 AM
#3
Thread Starter
New Member
Re: Connection string data source name
Well that blows. I do not want the operators to have any interaction with the setup of this interface. What about something along the lines of;
public conName1 as string = "SDCO"
public conName2 as string = SQLEXPRESS"
etc....
if m_cn1.ConnectionString = "Data Source=.\" conName1 exists
m_cn1.ConnectionString = "Data Source=.\" & condatasourcename & ; AttachDbFilename = " & _
m_cn1mdfPath & ";Integrated Security=True; Connect Timeout=30;" & _
"User Instance=True"
else if m_cn1.ConnectionString = "Data Source=.\" conName2 exists
etc....
end if
any examples?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|