473,490 Members | 2,737 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Database Protection

vdraceil
236 New Member
Hi,
I developed a game and made a setup..i included my game's database file to it.I just want to prevent users from entering and editing it.how do i do it?
Oct 17 '07 #1
6 1207
debasisdas
8,127 Recognized Expert Expert
What is the database that you are using ?

If using Access what about the Password option.
Oct 17 '07 #2
Ali Rizwan
925 Contributor
Hi,
I developed a game and made a setup..i included my game's database file to it.I just want to prevent users from entering and editing it.how do i do it?
Hello,
Here is an option.
Save your database into a unfamiliar format.
Means change the format manually by renaming.

And every time game runs the game copys the database file to a temporary folder by renaming and changing the format to .mdb and after saving the information copy again the .mdb file to its original location in unfamiliar format say .lik and delete the old temp database.

Try the other ones told by Debasis.

GOODLUCK
ALI
Oct 17 '07 #3
vdraceil
236 New Member
Hello,
Here is an option.
Save your database into a unfamiliar format.
Means change the format manually by renaming.

And every time game runs the game copys the database file to a temporary folder by renaming and changing the format to .mdb and after saving the information copy again the .mdb file to its original location in unfamiliar format say .lik and delete the old temp database.

Try the other ones told by Debasis.

GOODLUCK
ALI

After manually renaming my database,how do i convert or rename it back(to .mdb) from vb6.0 to edit it?is there any command for doing so..
Oct 27 '07 #4
vdraceil
236 New Member
What is the database that you are using ?

If using Access what about the Password option.

Expand|Select|Wrap|Line Numbers
  1. dim db as databse
  2. dim rs as recordset
  3.  
  4. Private Sub Form_Load
  5. set db = opendatabase(App.path + "/aaa.mdb")
  6. set rs = openrecordset("abc")
  7. End Sub
if i use a password option (in Access) what modifications should i make to the code above??
Oct 27 '07 #5
debasisdas
8,127 Recognized Expert Expert
If you are using ADO instead of age old DAO , you only need to change the connection string.

try this sample connection string

Expand|Select|Wrap|Line Numbers
  1. oConn.Open "Provider=Microsoft.Jet.OLEDB.4.0;" & _
  2.            "Data Source=c:\somepath\mydb.mdb;" & _ 
  3.            "Jet OLEDB:Database Password=MyDbPassword", _
  4.            "myUsername", "myPassword"
  5.  
Oct 27 '07 #6
vdraceil
236 New Member
If you are using ADO instead of age old DAO , you only need to change the connection string.

try this sample connection string

Expand|Select|Wrap|Line Numbers
  1. oConn.Open "Provider=Microsoft.Jet.OLEDB.4.0;" & _
  2.            "Data Source=c:\somepath\mydb.mdb;" & _ 
  3.            "Jet OLEDB:Database Password=MyDbPassword", _
  4.            "myUsername", "myPassword"
  5.  
But i hav used DAO in my very large program..i dont think it will be an easy task for me to replace all comands..What do i do for the code i specified??
Nov 20 '07 #7

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

Similar topics

7
2138
by: Praxis Happenstance | last post by:
Check me out: http://www.c-sharpcorner.com/Code/2004/July/MultithreadedXmlDoc.asp Multithreaded XML Document for Read/Write Access by John Bailo
9
2342
by: Howard | last post by:
I am currently looking at the various packages that are available for software protection. I have a particular question that I'd welcome your feedback on. Background info: I work for a company...
0
1989
by: SoftComplete Development | last post by:
SoftComplete Development Updates EXECryptor to v. 2.1.20 Software piracy! Cracked serial numbers! Thousands of commercial products are posted on the warez sites and become available to all who...
0
902
by: Scrubbing Bubbles | last post by:
General Protection Fault wrote: > On Fri, 23 Jul 2004 03:59:18 GMT, Democritus Rising wrote: >> General Protection Fault wrote: >> >>> On Thu, 22 Jul 2004 15:40:15 GMT, Democritus Rising wrote:...
20
1466
by: HKSHK | last post by:
Hi guys, I want to write a database application, which I later want to sell. Now I am looking for a nice, little database which would have to fullfil these requirements: * Either free or low...
17
2529
by: Flic | last post by:
Is this possible? I know about a bit about ODBC and found how to import an ODBC database stored on the computer, however I am after accessing an SQL database stored on a webserver. I'd like to...
0
1848
by: dba | last post by:
Hi folks, I would just like to share with you SQL CodeSecure, a newly released database protection and auditing tool from SqlLabs: SQL CodeSecure provides ultimate protection from unauthorized...
0
4708
by: Vinod Sadanandan | last post by:
STANDBY DATABASE MONITORING & PROTECION MODES (9iR2) This document is written for understanding and monitoring standby database configured with diffrent protection modes . MAXIMUM PROTECTION ...
10
7584
by: teddysnips | last post by:
My clients have asked me to maintain a database that was developed in- house. It's pretty good, considering the developer isn't a "programmer". The first thing they want me to do is to split it...
16
8357
by: Greg (codepug | last post by:
If one converts that .mdb into an .mde the code is secure but the tables can still be imported. Just for Very Basic protection, I have placed a Password on the database using the "Set Database...
0
6974
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7146
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7183
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6852
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7356
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
3084
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1389
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
628
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
277
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.