bntringa
New member
- Joined
- Jun 19, 2007
- Messages
- 4
- Programming Experience
- 5-10
Hey all,
Hopefully a quick, dumb question. I've got some code that executes a query but need to programmatically change the connection string from the default that was used to originally create the query. The query in question below is CreateTableLog. Would like to modify the .ConnectionString property if possible.
Thanks!
- Brian
Hopefully a quick, dumb question. I've got some code that executes a query but need to programmatically change the connection string from the default that was used to originally create the query. The query in question below is CreateTableLog. Would like to modify the .ConnectionString property if possible.
Thanks!
- Brian
VB.NET:
Friend Function CreateLogTable() As Boolean
Try
Dim dtQueries As New dsLogTableAdapters.LogQueriesTableAdapter
dtQueries.CreateTableLog()
Return True
Catch ex As Exception
HandleError(ex, "modDbMaintenance.CreateLogTable")
Return False
End Try
End Function