|
-
Jul 22nd, 2007, 01:32 PM
#1
Thread Starter
Addicted Member
Is there any method to protect Database
Is there any method to protect Database. I mean only people who have the password can edit the database or ....
Below is my code
Private Sub Command11_Click()
Data1.Recordset.AddNew
Data1.Recordset.Fields("Code").Value = InputBox("Code")
Data1.Recordset.Update
End Sub
Private Sub Command12_Click()
Data1.Recordset.Delete
End Sub
Private Sub Command13_Click()
Data1.Recordset.MoveLast
Data1.Recordset.Delete
End Sub
Data1.DatabaseName = App.Path & "\menu1.mdb"
Data1.RecordSource = "Table1"
Data1.Refresh
Text9.DataField = "Code"
End Sub
A very Thank for helping and reading my thread
Last edited by qiqinuinaifen128; Dec 1st, 2007 at 10:25 AM.
-
Jul 22nd, 2007, 01:36 PM
#2
Re: Is there any method to protect Database
If you use MS SQL CE (compact edition) you can actually "encrypt" the database with a password...
http://www.microsoft.com/sql/edition...t/default.mspx
-
Jul 22nd, 2007, 01:39 PM
#3
Thread Starter
Addicted Member
Re: Is there any method to protect Database
Thank for replying. I am using MS Access 2003 as my database...
is it possible?
Last edited by qiqinuinaifen128; Dec 1st, 2007 at 10:26 AM.
-
Jul 22nd, 2007, 01:44 PM
#4
Re: Is there any method to protect Database
Not really. The MS Access method is weak. You would have better results encrypting the data in the database (except for the keys of course).
-
Jul 22nd, 2007, 01:48 PM
#5
Thread Starter
Addicted Member
Re: Is there any method to protect Database
That mean i hv to give up the idea to enhance my program...
anyway, i am appreaciate for your kindly reply^_^
Last edited by qiqinuinaifen128; Dec 1st, 2007 at 10:28 AM.
-
Jul 22nd, 2007, 01:49 PM
#6
Re: Is there any method to protect Database
See my Acccess FAQ item on security for other methods:
http://vbforums.com/showthread.php?t=402072
Also, Access supports encrypting the database with a password. If you are using Access 2007 then it uses a newer stronger encryption alogorthium.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Jul 22nd, 2007, 01:51 PM
#7
Re: Is there any method to protect Database
@randem and robdog - what's the ACCESS encryption like? I've only ever used encryption with MS SQL CE - so I know how strong that is.
-
Jul 22nd, 2007, 02:02 PM
#8
Re: Is there any method to protect Database
It only satates in Access 2007....
[qupte]A stronger algorithm for encrypting databases in the Office Access 2007 file format that use the database password feature. Encrypting a database scrambles the data in your tables and helps prevent unwanted users from reading your data. [/quote]
Its stronger but there are several new techniques for securing a 2007 .accdb now.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Jul 22nd, 2007, 02:05 PM
#9
Re: Is there any method to protect Database
ok - it sounds like Access 2007 does the same encrypting that MS SQL CE does...
-
Jul 22nd, 2007, 02:23 PM
#10
Re: Is there any method to protect Database
I woudnt doubt it. 2003 has the encrypt/decrypt function too but its weaker. 2007 can encrypt older versions of Acccess but it uses the 2003 encryption alogorithum.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|