Click here to Skip to main content
16,005,467 members
Home / Discussions / Database
   

Database

 
Generalconnection to table and display results to labels Pin
jlawren722-Nov-04 9:42
jlawren722-Nov-04 9:42 
GeneralmySQL++ API Pin
sweep12322-Nov-04 4:09
sweep12322-Nov-04 4:09 
GeneralRe: mySQL++ API Pin
David Salter25-Nov-04 22:49
David Salter25-Nov-04 22:49 
GeneralLogin details in the connection string Pin
hasanali0022-Nov-04 3:57
hasanali0022-Nov-04 3:57 
GeneralRe: Login details in the connection string Pin
Steve S22-Nov-04 4:03
Steve S22-Nov-04 4:03 
GeneralRe: Login details in the connection string Pin
hasanali0023-Nov-04 2:28
hasanali0023-Nov-04 2:28 
GeneralRe: Login details in the connection string Pin
Steve S23-Nov-04 5:34
Steve S23-Nov-04 5:34 
GeneralRe: Login details in the connection string Pin
CodeWell25-Nov-04 16:36
CodeWell25-Nov-04 16:36 
The string should NOT be in the asp file. It should be encrypted in a separate file and decrypted only to set the connection property.

It will still be compromised during logon. specially if you don't trap for errors and your web page ends up showing "failed to connect to database with connection string ...blah,blah...." but at least no one can tell what the pwd is if they come across the asp source or the file containing the pwd string.

You can use xor encryption which is the most basic one (can download source from web) or buy a component and go triple DES. It depends on how much you value your data (and/or how much trouble you'll get into if you get audited for security)

Ideally too, you should press your hosting company to get at least one more account and create a program that changes the password on that account to some random string, encrypts it and saves it on the pwd file. You use the original account for db maintenance and the new one for access with the application. That way nobody knows what the password is for the application account (the app works because it decrypts the pwd from the file using the appropiate key). You can then easily monitor activity on both accounts. If the app acount is used from any machine other than the server where the asp is running you have intruders. If the original account is used from any machine other than the one you use for maintenance then you have intruders.

Sounds complicated but it is much safer than using only one account for app access and db maintenance. That, and you can tell the security auditor "here is the password file, knock yourself out trying to break in!".

GeneralStrange SQL Query doesn't accept NULL Pin
Vector722-Nov-04 3:40
Vector722-Nov-04 3:40 
GeneralRe: Strange SQL Query doesn't accept NULL Pin
Steve S22-Nov-04 4:08
Steve S22-Nov-04 4:08 
GeneralRe: Strange SQL Query doesn't accept NULL Pin
Vector722-Nov-04 4:18
Vector722-Nov-04 4:18 
GeneralRe: Strange SQL Query doesn't accept NULL Pin
Steve S23-Nov-04 1:25
Steve S23-Nov-04 1:25 
QuestionHow to run a bunch of scripts all at once? Pin
devvvy21-Nov-04 23:18
devvvy21-Nov-04 23:18 
AnswerRe: How to run a bunch of scripts all at once? Pin
Colin Angus Mackay22-Nov-04 6:03
Colin Angus Mackay22-Nov-04 6:03 
GeneralRe: How to run a bunch of scripts all at once? Pin
devvvy22-Nov-04 16:14
devvvy22-Nov-04 16:14 
GeneralRe: How to run a bunch of scripts all at once? Pin
Colin Angus Mackay22-Nov-04 22:51
Colin Angus Mackay22-Nov-04 22:51 
GeneralRe: How to run a bunch of scripts all at once? Pin
Colin Angus Mackay22-Nov-04 22:53
Colin Angus Mackay22-Nov-04 22:53 
AnswerRe: How to run a bunch of scripts all at once? Pin
Mike Dimmick22-Nov-04 6:23
Mike Dimmick22-Nov-04 6:23 
QuestionInvoke a Web Service from a Stored Proc? Pin
theJazzyBrain21-Nov-04 21:26
theJazzyBrain21-Nov-04 21:26 
GeneralPremium database Pin
Yulianto.21-Nov-04 21:22
Yulianto.21-Nov-04 21:22 
GeneralRe: Premium database Pin
Christian Graus22-Nov-04 13:43
protectorChristian Graus22-Nov-04 13:43 
GeneralRe: Premium database Pin
Yulianto.22-Nov-04 15:52
Yulianto.22-Nov-04 15:52 
GeneralRe: Premium database Pin
Christian Graus22-Nov-04 21:40
protectorChristian Graus22-Nov-04 21:40 
GeneralRe: Premium database Pin
Yulianto.23-Nov-04 15:47
Yulianto.23-Nov-04 15:47 
GeneralRe: Premium database Pin
Christian Graus23-Nov-04 23:53
protectorChristian Graus23-Nov-04 23:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.