Database Protection

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vdraceil
    New Member
    • Jul 2007
    • 236

    Database Protection

    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?
  • debasisdas
    Recognized Expert Expert
    • Dec 2006
    • 8119

    #2
    What is the database that you are using ?

    If using Access what about the Password option.

    Comment

    • Ali Rizwan
      Banned
      Contributor
      • Aug 2007
      • 931

      #3
      Originally posted by vdraceil
      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

      Comment

      • vdraceil
        New Member
        • Jul 2007
        • 236

        #4
        Originally posted by Ali Rizwan
        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..

        Comment

        • vdraceil
          New Member
          • Jul 2007
          • 236

          #5
          Originally posted by debasisdas
          What is the database that you are using ?

          If using Access what about the Password option.

          Code:
          dim db as databse
          dim rs as recordset
          
          Private Sub Form_Load
          set db = opendatabase(App.path + "/aaa.mdb")
          set rs = openrecordset("abc")
          End Sub
          if i use a password option (in Access) what modifications should i make to the code above??

          Comment

          • debasisdas
            Recognized Expert Expert
            • Dec 2006
            • 8119

            #6
            If you are using ADO instead of age old DAO , you only need to change the connection string.

            try this sample connection string

            [code=vb]
            oConn.Open "Provider=Micro soft.Jet.OLEDB. 4.0;" & _
            "Data Source=c:\somep ath\mydb.mdb;" & _
            "Jet OLEDB:Database Password=MyDbPa ssword", _
            "myUsername ", "myPassword "
            [/code]

            Comment

            • vdraceil
              New Member
              • Jul 2007
              • 236

              #7
              Originally posted by debasisdas
              If you are using ADO instead of age old DAO , you only need to change the connection string.

              try this sample connection string

              [code=vb]
              oConn.Open "Provider=Micro soft.Jet.OLEDB. 4.0;" & _
              "Data Source=c:\somep ath\mydb.mdb;" & _
              "Jet OLEDB:Database Password=MyDbPa ssword", _
              "myUsername ", "myPassword "
              [/code]
              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??

              Comment

              Working...