Results 1 to 4 of 4

Thread: Change Access db File Ext.?[RESOLVED]

  1. #1

    Thread Starter
    Member
    Join Date
    Dec 2002
    Posts
    54

    Talking Change Access db File Ext.?[RESOLVED]

    I am currently using an Access db for an application. How do I change the file ext. to something else so it can't be opened outside the app? If I change it will I have to reconfigure the OledbDataAdapter, Dataset, & OledbDataConnection? Thanks
    Last edited by Nintendo_Wizard; Jan 16th, 2003 at 12:28 PM.

  2. #2
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    Why don't you just set a password on it. That way if someone trys to open it, they would need the password. Your app can contain the password and connect with no problems. This would be a little more secure than just changing the file extension.

    But, if you really want to change the file extension, you should probably on load, change the extension to .mdb and when your app ends, change it back to something else. This way your db code won't be affected. The database will be a .mdb file while the app is running, but be changed to something else when the app isn't running.

  3. #3
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    you can use any ext. with Access DB .Before you change the ext. build the inner structure (tables - Columns),leave it empty, and then you can have ext. changed.When you want to access you DB , no need to change the ext. back to .mdb .

  4. #4

    Thread Starter
    Member
    Join Date
    Dec 2002
    Posts
    54

    Thumbs up

    WORKS GREAT! THANKS!
    Last edited by Nintendo_Wizard; Jan 16th, 2003 at 12:28 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width