Results 1 to 6 of 6

Thread: Need help with sql server

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Dec 2004
    Posts
    610

    Need help with sql server

    hey guyz...
    when i am using vb net.. i can't get past this coding

    myConnection = New SqlConnection("server=localhost;uid=sa;pwd=;database=pubs")


    where can i find the password for the sa? and what do i put for the database?

  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: Need help with sql server

    Quote Originally Posted by ryanlum
    hey guyz...
    when i am using vb net.. i can't get past this coding

    myConnection = New SqlConnection("server=localhost;uid=sa;pwd=;database=pubs")


    where can i find the password for the sa? and what do i put for the database?
    Server should be (local) and you should know what the password is if you set it up. If you didn't, ask your administrator. People usually leave the password blank.

    Get your connection string here:

    http://www.able-consulting.com/ado_conn.htm

  3. #3
    Member
    Join Date
    Sep 2004
    Posts
    45

    Re: Need help with sql server

    People usually leave the password blank.
    Not smart and or paranoid people.

  4. #4

    Thread Starter
    Fanatic Member
    Join Date
    Dec 2004
    Posts
    610

    Re: Need help with sql server

    is there anyway of changing the password?

  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: Need help with sql server

    Quote Originally Posted by The Cheat
    Not smart and or paranoid people.
    If we were smart or paranoid, we wouldn't be here.

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

    Re: Need help with sql server

    Quote Originally Posted by ryanlum
    is there anyway of changing the password?
    From that I assume you don't know what the original password is.


    To reset the sa password:

    1. Login to the SQL Server box as the Administrator.
    2. Run SQL Server Enterprise Manager.
    3. Right-click the server name and choose 'Edit SQL Server Registration properties'.
    4. Choose 'Use Windows authentication' and click OK button.
    5. Expand a server, expand a Security and click Logins.
    6. Double-click the sa login and specify new password on the General tab.

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