Results 1 to 14 of 14

Thread: VB6 - SQL - db STOLEN!

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2005
    Posts
    12

    Exclamation VB6 - SQL - db STOLEN!

    I need to get a VB6 application developed that will be deployed to over a 1,000 end users. Their application data will not be stored locally but on a central SQL db on a server through internet. Each user can view and update certain information on the db.

    The problem is, the SQL db username and password cannot be hard-coded into the application as the password may change anytime.

    And if the password is kept on a file either on the client machine or on the server then anyone can view the db username and password and STEAL all the db content!

    How to protect the db username and password and also allow the Admin to change those 2 values without having all the users to update their application?
    Always keep an extra credit card processing account as a backup, just in case. I use: 2checkout.com

    It's easy to open an account and the charges are reasonable, no need of any monthly activity and no monthly charges. Their new system is great and support is also good. Can also be used to accept undefined amounts, no need to keep adding new products in the setup.

  2. #2

    Thread Starter
    New Member
    Join Date
    May 2005
    Posts
    12

    Re: VB6 - SQL - db STOLEN!

    I found this solution on another forum to a similar problem:

    "Opening up a database for local program access is a huge security nightmare if you are going to connect directly to the database. The best thing to do would be to create another layer and actually pass your arguments to an ASP or PHP or PERL page on the web server, which would then pass to the database, then the database would return information to a new PHP, ASP or PERL page and you could get the information from there. Otherwise you are going to have security problems."

    Is using an ASP page the best way? Bcos I already have the ASP pages that the program is going to replace. But won't that affect the speed of the application?

    If this is indeed the best solution, then how can the application connect to the online ASP script and grab the results, and show a progress bar while the data is being collected?
    Always keep an extra credit card processing account as a backup, just in case. I use: 2checkout.com

    It's easy to open an account and the charges are reasonable, no need of any monthly activity and no monthly charges. Their new system is great and support is also good. Can also be used to accept undefined amounts, no need to keep adding new products in the setup.

  3. #3
    Hyperactive Member
    Join Date
    Apr 2005
    Location
    Indiana
    Posts
    451

    Re: VB6 - SQL - db STOLEN!

    You could store the username and password in a collection to store the username and password in the code and make it so that if the username or password needs to be changed you have a txtbox for the old username and one for the new and before the username can be changed to the new one, the old one must match the one in the txtbox must match the one in the collection.

    I hope that made sense.

  4. #4

    Thread Starter
    New Member
    Join Date
    May 2005
    Posts
    12

    Re: VB6 - SQL - db STOLEN!

    that won't work...the username and password are of the main SQL db, not the client's. The client should not even know that such a u/n and pass exists. That pass is the key to whole db where the data of thousands of clients is stored.
    Always keep an extra credit card processing account as a backup, just in case. I use: 2checkout.com

    It's easy to open an account and the charges are reasonable, no need of any monthly activity and no monthly charges. Their new system is great and support is also good. Can also be used to accept undefined amounts, no need to keep adding new products in the setup.

  5. #5
    Hyperactive Member naruponk's Avatar
    Join Date
    Feb 2004
    Location
    Some where in the world
    Posts
    423

    Re: VB6 - SQL - db STOLEN!

    Ideas :
    you may store username and password on SQL as encrypted character. I know that who can view DB they also can see the encrypted password.

  6. #6
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: VB6 - SQL - db STOLEN!

    Why does the password need to change? If the user is an SQL Server login (as opposed to a Windows login) then the password can stay the same.

    Anyway, if the password needs to change (or you want it to):

    As you can't connect to the database without a password, I would recommend storing he username/password in an encrypted file on a server (dont give it an obvious name, or extension).

    Your program can get this file, then decrypt the contents, and then connect to the database.

    You only need to download the file when it changes (check the date if you can, or just wait for a login failure), but it wont be so big that it will slow things down too much if you get it every time.

    As you will probably want to keep the login info at the client (securely), you can just store the encrypted file along with the application.

  7. #7
    MS SQL Powerposter szlamany's Avatar
    Join Date
    Mar 2004
    Location
    Connecticut
    Posts
    18,263

    Re: VB6 - SQL - db STOLEN!

    A SQL database open to a VB program over the internet - that's dangerous.

    Is secure connections to the server out of the question? VPN for example?

    *** Read the sticky in the DB forum about how to get your question answered quickly!! ***

    Please remember to rate posts! Rate any post you find helpful - even in old threads! Use the link to the left - "Rate this Post".

    Some Informative Links:
    [ SQL Rules to Live By ] [ Reserved SQL keywords ] [ When to use INDEX HINTS! ] [ Passing Multi-item Parameters to STORED PROCEDURES ]
    [ Solution to non-domain Windows Authentication ] [ Crazy things we do to shrink log files ] [ SQL 2005 Features ] [ Loading Pictures from DB ]

    MS MVP 2006, 2007, 2008

  8. #8
    Hyperactive Member naruponk's Avatar
    Join Date
    Feb 2004
    Location
    Some where in the world
    Posts
    423

    Post Re: VB6 - SQL - db STOLEN!

    Original posted by szlamany
    A SQL database open to a VB program over the internet - that's dangerous.
    I'm going to use Vb program over internet......
    What's the best way to use server-client over internet?
    If i have server at headquarter and another branch is on other place.
    what's most proper way to connect to server from branch's client computer
    using SQL Server?

    Please give me some advise
    Thanks

  9. #9

    Thread Starter
    New Member
    Join Date
    May 2005
    Posts
    12

    Exclamation Re: VB6 - SQL - db STOLEN!

    Quote Originally Posted by szlamany
    A SQL database open to a VB program over the internet - that's dangerous.

    Is secure connections to the server out of the question? VPN for example?
    how can it be dangerous? Whether it is a VB program or any other language program, if the requirement of the application is store the information centrally in a SQL db, then Microsoft must have thought of such a situation and provided some way to make this possible.

    Problem is, I don't know what M$ has thought of and how they have made it secure so that no one can hack into the central SQL db.

    any thoughts?
    Always keep an extra credit card processing account as a backup, just in case. I use: 2checkout.com

    It's easy to open an account and the charges are reasonable, no need of any monthly activity and no monthly charges. Their new system is great and support is also good. Can also be used to accept undefined amounts, no need to keep adding new products in the setup.

  10. #10
    MS SQL Powerposter szlamany's Avatar
    Join Date
    Mar 2004
    Location
    Connecticut
    Posts
    18,263

    Re: VB6 - SQL - db STOLEN!

    From what I have seen, SQL Server DB's are accessed on local networks by VB6. In that realm the recommended access is by WINDOWS AUTHENTICAION (integrated security) - never the use of SQL authentication.

    Since you do not have that situation, you must research your options.

    Here's a good link at the MSDN site on securing .NET applications.

    http://msdn.microsoft.com/SQL/sqlsecurity/default.aspx

    *** Read the sticky in the DB forum about how to get your question answered quickly!! ***

    Please remember to rate posts! Rate any post you find helpful - even in old threads! Use the link to the left - "Rate this Post".

    Some Informative Links:
    [ SQL Rules to Live By ] [ Reserved SQL keywords ] [ When to use INDEX HINTS! ] [ Passing Multi-item Parameters to STORED PROCEDURES ]
    [ Solution to non-domain Windows Authentication ] [ Crazy things we do to shrink log files ] [ SQL 2005 Features ] [ Loading Pictures from DB ]

    MS MVP 2006, 2007, 2008

  11. #11

    Thread Starter
    New Member
    Join Date
    May 2005
    Posts
    12

    Re: VB6 - SQL - db STOLEN!

    since VB6 has been around for so many years, isn't there a standard set for accessing online SQL db's by now??
    Always keep an extra credit card processing account as a backup, just in case. I use: 2checkout.com

    It's easy to open an account and the charges are reasonable, no need of any monthly activity and no monthly charges. Their new system is great and support is also good. Can also be used to accept undefined amounts, no need to keep adding new products in the setup.

  12. #12
    MS SQL Powerposter szlamany's Avatar
    Join Date
    Mar 2004
    Location
    Connecticut
    Posts
    18,263

    Re: VB6 - SQL - db STOLEN!

    Quote Originally Posted by mlist
    since VB6 has been around for so many years, isn't there a standard set for accessing online SQL db's by now??
    You ask this question as if you think that online SQL db's have been around for a long time.

    MS markets .NET (ado.net, vb.net and all the other .net stuff) at this online SQL world.

    The type of data we maintain with out VB apps would not lend itself to online access - student records, health records - stuff like that.

    Whenever an administrator or user wants online access, the IT dept give them VPN access to the internal network.

    Sorry I cannot help you any further.

    *** Read the sticky in the DB forum about how to get your question answered quickly!! ***

    Please remember to rate posts! Rate any post you find helpful - even in old threads! Use the link to the left - "Rate this Post".

    Some Informative Links:
    [ SQL Rules to Live By ] [ Reserved SQL keywords ] [ When to use INDEX HINTS! ] [ Passing Multi-item Parameters to STORED PROCEDURES ]
    [ Solution to non-domain Windows Authentication ] [ Crazy things we do to shrink log files ] [ SQL 2005 Features ] [ Loading Pictures from DB ]

    MS MVP 2006, 2007, 2008

  13. #13
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: VB6 - SQL - db STOLEN!

    Quote Originally Posted by mlist
    since VB6 has been around for so many years, isn't there a standard set for accessing online SQL db's by now??
    There are web based features built into VB6, but primarily it is a desktop development language.

    If you are going to deploy an application across the web, why are you using VB6 as opposed to ASP or HTML or some platform designed for web use?

  14. #14

    Thread Starter
    New Member
    Join Date
    May 2005
    Posts
    12

    Re: VB6 - SQL - db STOLEN!

    The application needs to store some data in user's computer and other data like his name, pic and email address on a central SQL db. It's like a friends' network application where other users will be able to access the details of other users.

    Since VB6 is not meant for internet access to SQL, then can we have the application connect to an online ASP page that will connect to the db and pass on the details to the application? Or has this been tried before and failed due to speed or other issues?
    Always keep an extra credit card processing account as a backup, just in case. I use: 2checkout.com

    It's easy to open an account and the charges are reasonable, no need of any monthly activity and no monthly charges. Their new system is great and support is also good. Can also be used to accept undefined amounts, no need to keep adding new products in the setup.

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