Hi
I have 2 mode for open db
'Path DB
Private Const pathDB As String = "C:\...\diaboli k.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.Connection String = _
"Provider = Microsoft.Jet.O LEDB.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.Connecti onString = _
"Server=(local) ;Initial Catalog=diaboli k;" & _
"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:\...\diaboli k.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.Connection String = _
"Provider = Microsoft.Jet.O LEDB.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.Connecti onString = _
"Server=(local) ;Initial Catalog=diaboli k;" & _
"Data Source=(" & pathDB & ")"
but doen't work
I want know if possible using sqlconnection passing
path of DataBase ????!!!!!
HELP ME PLEASE
NEODEV
Fabio Santini
Comment