colttaylor
Programmer
I don't want my application users to have any powerful sql id/passwords (sa/superuser/etc) but I want my application to be able to test that the database, tables, indeces, sp's and fields are present and create them if needed. I've decided to keep a powerful id/password pair encrypted in the application's ini file, but that leaves my application with another dependency. That id/password pair has to be tested on startup to make sure it works.
So how do I test a id/password pair without a known-to-function id/password pair? If I attempt to connect with the id/password pair which I want to test and it fails, that doesn't mean that the pair is invalid, it might just be a faulty connection string. I guess I need to create and story two id/password pairs. If either works, then I know that the connection string is ok. If either fail, then I can use the other one to recreate the damaged one.
I cannot be the only person trying to do this? What is the established best practice for startup validation?
Thanks in advance for the assistance!
Peace,
Colt.
If it's stupid but it works, it isn't stupid
So how do I test a id/password pair without a known-to-function id/password pair? If I attempt to connect with the id/password pair which I want to test and it fails, that doesn't mean that the pair is invalid, it might just be a faulty connection string. I guess I need to create and story two id/password pairs. If either works, then I know that the connection string is ok. If either fail, then I can use the other one to recreate the damaged one.
I cannot be the only person trying to do this? What is the established best practice for startup validation?
Thanks in advance for the assistance!
Peace,
Colt.
If it's stupid but it works, it isn't stupid