473,382 Members | 1,441 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Creating secure database with ADOX

devonknows
137 100+
Hi can any one please help me with creating a secure database with ADO or ADOX if possible, ive got this code already but its not accessible through VisData so i cant easily modify it at all.

Expand|Select|Wrap|Line Numbers
  1. Public Function CreateDatabase()
  2. Dim cat As ADOX.Catalog
  3. Dim tbl As ADOX.Table
  4. Dim con As ADODB.Connection
  5.  
  6.     On Error Resume Next
  7.     Kill txtDatabaseName.Text
  8.     On Error GoTo 0
  9.  
  10. Set cat = New ADOX.Catalog
  11.  
  12.     cat.Create _
  13.         "Provider=Microsoft.Jet.OLEDB.4.0;" & _
  14.         "Data Source=" & QueryValue(rk, "InstallDir") & "\CD Database.mdb;"
  15.  
  16.     Set con = Nothing
  17.     Set tbl = Nothing
  18.     Set cat = Nothing
  19.     MsgBox "Done"
  20. End Function
  21.  
but that doesnt make it secure and also can someone tell me how to access a secure database with ado.

Any help would be much appreciated.

Kind Regards
Devon.
Jan 3 '07 #1
4 2898
MMcCarthy
14,534 Expert Mod 8TB
Devon,

I'm not sure exactly what you meant by your question but the following is a link to a comprehensive access security tutorial.

Mary

http://www.jmwild.com/Accesssecurity.htm
Jan 3 '07 #2
devonknows
137 100+
Ok,sorry about that.

What im trying to do is create a secure database with ADOX.

The Script that is shown above creates the database but does not create a secure database, ( as in secure i mean not able to access it outside of the application or password protected )

Also

The database the above code creates will not load in the Add-In for VB6 called VisData which allows you to design your database.

i hope that explains a little better

Kind Regards.
Devon.
Jan 4 '07 #3
MMcCarthy
14,534 Expert Mod 8TB
Ok,sorry about that.

What im trying to do is create a secure database with ADOX.

The Script that is shown above creates the database but does not create a secure database, ( as in secure i mean not able to access it outside of the application or password protected )

Also

The database the above code creates will not load in the Add-In for VB6 called VisData which allows you to design your database.

i hope that explains a little better

Kind Regards.
Devon.
Our VB experts may be able to help you further. You could try posting a link in the Visual Basic forum.

Mary
Jan 4 '07 #4
dxpert
3
Devon, all you should have to to is add the: ";Jet OLEDB:Database Password=[password_here];" to the end of your connection string, like this:



ADOX.Catalog cat.Create _
"Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=" & QueryValue(rk, "InstallDir") & "\CD Database.mdb;" & _
"Jet OLEDB:Database Password=[password_here];"
Jan 26 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: JBAdamsJr | last post by:
I want to be able to create an Excel file with a VB.NET program on a server that does not have Microsoft Excel loaded on it. I am using the Jet OLE DB to read other data files. Can this be used to...
2
by: Gandalf | last post by:
I'm creating relationships between tables using VBA and ADOX. I can create one-to-one relationships with an inner join, but I can't figure out how to create these relationships with an outer join...
6
by: Null Reference | last post by:
Anybody here who can explain or point me to a link ? I wish to create a blank MS Access DB file programmatically using C# . Thanks, nfs
3
by: Eric Carr | last post by:
I have been trying to create a table in an Access database via a VB.NET program and I am running into a problem defining an autoincrement field. I am getting an error saying "Property 'Item' is...
5
by: Wayne Wengert | last post by:
I am getting an error that "object no longer valid" at the point indicated in the code below - I am trying to build a table in an Access 2000 database using ADOX. Any thoughts on what might cause...
18
by: Ken Kazinski | last post by:
Does anyone know of a good example for creating a access database and then tables within that database. All the examples I have found so far use a SQL database. Thanks, Ken
2
by: Tulasi | last post by:
Sir, i have created MSAccess databse by using vb.net by ADOX. now my problem in the ms access database i have one master table in which i have a master field contact_id which is a primary key...
1
by: Dennis | last post by:
I create a database file using ADOX Catalog. However, I want to later delete the file but I get an error message that the database is being used by another process. I have even tried creating the...
10
by: C# Beginner | last post by:
Hi there, I'm currently trying to create a MS access file at runtime, but I stumble into some problems. 1. When I use Datatype adUnsignedInt I get an error (invalid type). 2. Which datatype...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.