A trick I usually use to generate connection strings is to create a *.udl
file, double click on it, and set various properties in a gui-ish mode. Then
test the connection. Close all dialogs, and open the UDL file in notepad ..
BINGO .. there's your connection string.
A trick I usually use to generate connection strings is to create a *.udl
file, double click on it, and set various properties in a gui-ish mode.
Then test the connection. Close all dialogs, and open the UDL file in
notepad .. BINGO .. there's your connection string.
First time it's hard to find appriopriate property.
If there is password on whole database (simple to crack), connection string
will look:
ConStr = "Provider=Microsoft.Jet.OLEDB.4.0;Database Password=alice;Data
Source=d:\db1.mdb"
If database is secured on user level connection string will look:
Provider=Microsoft.Jet.OLEDB.4.0;Password=alice;User ID=Gilbert;Data
Source=d:\db1.mdb;Jet OLEDB:System database=d:\Syst.mdw
hi
try this
Imports System.Data.OleDb
....
Dim oOleDbConnection As OleDbConnection
Dim sConnString As String = _
"Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=C:\myPath\myJet.mdb;" & _
"User ID=Admin;" & _
"Password="
oOleDbConnection = New OleDb.OleDbConnection(sConnString)
oOleDbConnection.Open()
A trick I usually use to generate connection strings is to create a *.udl
file, double click on it, and set various properties in a gui-ish mode. Then
test the connection. Close all dialogs, and open the UDL file in notepad ..
BINGO .. there's your connection string.
Yeah, I know that it will be easy to crack. I just need to keep the standard
end-user from accessing the data base over the network. Most have no
permissions to the database and it isn't shared but some of the more
knowledgeable ones know how to use the administrator password. This will be
enough to keep the hounds at bay though.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.