N
neodev
Hi
I have 2 mode for open db
'Path DB
Private Const pathDB As String = "C:\...\diabolik.mdb"
'for the ole db
Private conn As New OleDbConnection
'for th sqlconnection
Private connRS As Data.SqlClient.SqlConnection
If I want open Local DB using a path and not using DNS
because I doen't know the mode.
For OleDbConnection I write :
conn.ConnectionString = _
"Provider = Microsoft.Jet.OLEDB.4.0;Data Source =" & pathDB
where is the method for open connection to local db
using your path and not dns string or othen
connRS.ConnectionString = _
"Server=(local);Initial Catalog=diabolik;" & _
"Data Source=(" & pathDB & ")"
but doen't work
I want know if possible using sqlconnection passing
path of DataBase ????!!!!!
HELP ME PLEASE
NEODEV
Fabio Santini
I have 2 mode for open db
'Path DB
Private Const pathDB As String = "C:\...\diabolik.mdb"
'for the ole db
Private conn As New OleDbConnection
'for th sqlconnection
Private connRS As Data.SqlClient.SqlConnection
If I want open Local DB using a path and not using DNS
because I doen't know the mode.
For OleDbConnection I write :
conn.ConnectionString = _
"Provider = Microsoft.Jet.OLEDB.4.0;Data Source =" & pathDB
where is the method for open connection to local db
using your path and not dns string or othen
connRS.ConnectionString = _
"Server=(local);Initial Catalog=diabolik;" & _
"Data Source=(" & pathDB & ")"
but doen't work
I want know if possible using sqlconnection passing
path of DataBase ????!!!!!
HELP ME PLEASE
NEODEV
Fabio Santini