Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. How to create user 'sa' on Sql Server

How to create user 'sa' on Sql Server

Scheduled Pinned Locked Moved Database
databasesql-serversysadmindebuggingcollaboration
3 Posts 3 Posters 2 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    AmbiguousName
    wrote on last edited by
    #1

    hello guys... I wrote an application inwhich I use the user 'sa' to do some small transactions, in Sql Server. Now when I run same program on some other computer, this programs shows some debug error saying

    Debug Error !
    This application has requested the Runtime to terminate in its unusual way. Please contact the applications support team for more information.

    Now since I have run this small EXE on my laptop, so I know nothing is wrong with my program. There got to be something wrong with my user creation. So how to create user 'sa' properly...thnx

    W J 2 Replies Last reply
    0
    • A AmbiguousName

      hello guys... I wrote an application inwhich I use the user 'sa' to do some small transactions, in Sql Server. Now when I run same program on some other computer, this programs shows some debug error saying

      Debug Error !
      This application has requested the Runtime to terminate in its unusual way. Please contact the applications support team for more information.

      Now since I have run this small EXE on my laptop, so I know nothing is wrong with my program. There got to be something wrong with my user creation. So how to create user 'sa' properly...thnx

      W Offline
      W Offline
      Wendelius
      wrote on last edited by
      #2

      Hi, You don't create sa user. sa is created byt the SQL Server when you choose mixed security mode during the installation or later via instance properties. So sa is a special user defined when SQL Server authentication is enabled, kind like administrator in windows. [Added] To change the authentication mode, for example: http://msdn.microsoft.com/en-us/library/ms188670.aspx[^]

      The need to optimize rises from a bad design.My articles[^]

      modified on Saturday, March 12, 2011 12:44 PM

      1 Reply Last reply
      0
      • A AmbiguousName

        hello guys... I wrote an application inwhich I use the user 'sa' to do some small transactions, in Sql Server. Now when I run same program on some other computer, this programs shows some debug error saying

        Debug Error !
        This application has requested the Runtime to terminate in its unusual way. Please contact the applications support team for more information.

        Now since I have run this small EXE on my laptop, so I know nothing is wrong with my program. There got to be something wrong with my user creation. So how to create user 'sa' properly...thnx

        J Offline
        J Offline
        jschell
        wrote on last edited by
        #3

        overloaded Name wrote:

        There got to be something wrong with my user creation

        I suppose that is possible if 1. Your wrote your program in C/C++ 2. You have a bug (or several) in your code. Supposing that the first is true then when you attempt to interact with the database you will get error information back (if your code doesn't have bugs.) So reporting that information is useful. And if that error is such that the app can no longer proceed then the application should gracefully exit.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups