Results 1 to 15 of 15

Thread: sa Password

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2006
    Posts
    1,875

    sa Password

    I was going through few SQL related forum and surpise to see many DBA faced problem knowing "sa" password.i dont have much idea about big Enterprise level application and organization,but just wondering if some application is accessing than isn't it somewhere in the application there must be a sa or atleast when app tries to make connection to DB it can be traced or these type of application hides sa password somewhere deep in the core of earth

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: sa Password

    They are probably using other logins which have certain amounts of rights that allow them to do their jobs; sometimes they will need to go above and beyond the call an duty and then face the "I don't know the sa password" problem.

  3. #3
    PowerPoster Pasvorto's Avatar
    Join Date
    Oct 2002
    Location
    Minnesota, USA
    Posts
    2,951

    Re: sa Password

    First thing I did was to change the sa password to something i could remember.
    ===================================================
    If your question has been answered, mark the thread as [RESOLVED]

  4. #4

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2006
    Posts
    1,875

    Re: sa Password

    Quote Originally Posted by Pasvorto
    First thing I did was to change the sa password to something i could remember.
    Well that one can do only if only one application is accessing SQL server,but in case many other application is using same sa account i think it wont be all that feasible.

  5. #5
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: sa Password

    Why would an application be using the sa login? Why don't you create separate logins for each application?

  6. #6

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2006
    Posts
    1,875

    Re: sa Password

    Quote Originally Posted by mendhak
    Why would an application be using the sa login? Why don't you create separate logins for each application?
    In many small and mid scale organization i saw they stick with same SQL login for almost all their application ,and that why in my first post i mentioned isn't it possible to find out sa password from code it self !!

  7. #7
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: sa Password

    I see what you're saying now. You have concerns that in some of the small applications you've seen, they're using the "sa" credentials. Well, yes, if it's used, then it would be possible in some way to find the login details for sa.

    Why do they do it? Convenience? Force of habit? I don't really know.

  8. #8
    PowerPoster Pasvorto's Avatar
    Join Date
    Oct 2002
    Location
    Minnesota, USA
    Posts
    2,951

    Re: sa Password

    Quote Originally Posted by riteshjain1982
    Well that one can do only if only one application is accessing SQL server,but in case many other application is using same sa account i think it wont be all that feasible.
    I have 5 applicatiions all accessing the SQL Server. However, since I am also the programmer, I know the passwords and it is not a problem.
    ===================================================
    If your question has been answered, mark the thread as [RESOLVED]

  9. #9

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2006
    Posts
    1,875

    Re: sa Password

    Quote Originally Posted by Pasvorto
    I have 5 applicatiions all accessing the SQL Server. However, since I am also the programmer, I know the passwords and it is not a problem.
    Just wondering what will happen if all programmer working on an application for domain like finance,banking etc knows the SQL admin user id and password...

  10. #10
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: sa Password

    It's a potential security threat. "Studies" that I cannot cite have shown that the biggest security threats are from within the organization itself. Therefore, there's nothing actually stopping a developer from logging in to the database and copying out the credit card information belonging to other people; or other sensitive data for that matter.

    I think a good idea is to have separate environments, and to have the DBAs actually set the connection string values during deployment themselves.

  11. #11

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2006
    Posts
    1,875

    Re: sa Password

    mendhak,normally in this type of application where security is primary concern, where will you prefer to save connection string and what measure one can take to make sure connection string is really "secure"

  12. #12
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: sa Password

    Encrypt the connection string or store it in the registry or store it in yet another database. In whatever you do, have your 'deployment' scenarios such that another person is performing the 'deployment' of the sensitive information.

    Hmm, a more concrete example - developer creates application, specifies that the connection string information is located in the registry at so-and-so location. Deployer/admin deploys or xcopies the application over, looks at the registry path in config file, then goes and creates those registry settings and puts in the encrypted or unencrypted connection string information there. Developer does not have access to the testing/uat environment, so he will be unable to login to that box and have a look at the settings. This then shifts the threat from the developers to the administrators, but again, if the number of administrators is small, there is more responsibility upon that one person and so fewer people = smaller risk. That's just an example of course. Policies differ from organization to organization and how keen they are to achieve compliance such as Sarbanes-Oxley and the others whose name I forget.

  13. #13

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2006
    Posts
    1,875

    Re: sa Password

    usefull info,yes u r right,the most effective way is to keep developer away from production environment.

    btw i really had very tought time with client IT guys when they were implementing sox,tough good from organiztion point of view but all these type of law suite wheather its bil198 or sox....they sux freedom

  14. #14
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: sa Password

    I didn't understand your last sentence.

  15. #15
    VB Addict Pradeep1210's Avatar
    Join Date
    Apr 2004
    Location
    Inside the CPU...
    Posts
    6,614

    Re: sa Password

    It seems ridiculous using the sa login for application deployment. The sa login is for DBA and should be used only for that purpose.

    Atleast I never prefer the sa login for my applications, though it would give full access to my application.
    This has two advantages:
    1. The DBA and application developer roles are clearly segregated.
    2. If someone somehow fiddles around with my application or otherwise my application does something wrong due to bugs etc. I'm always on the safer side and can't be blamed. Moreover the application itself will be limited not to fiddle around with the wrong tables. If I were using the sa account and someone hacks into it, I'm doomed

    Pradeep
    Pradeep, Microsoft MVP (Visual Basic)
    Please appreciate posts that have helped you by clicking icon on the left of the post.
    "A problem well stated is a problem half solved." — Charles F. Kettering

    Read articles on My Blog101 LINQ SamplesJSON ValidatorXML Schema Validator"How Do I" videos on MSDNVB.NET and C# ComparisonGood Coding PracticesVBForums Reputation SaverString EnumSuper Simple Tetris Game


    (2010-2013)
    NB: I do not answer coding questions via PM. If you want my help, then make a post and PM me it's link. If I can help, trust me I will...

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