Results 1 to 5 of 5

Thread: How to find a MS SQL SERVER name?

  1. #1

    Thread Starter
    Member
    Join Date
    Mar 2012
    Posts
    40

    How to find a MS SQL SERVER name?

    Hi there,
    I want to make a database program with SQL SERVER installed in my office. My office server is MS SQL SERVER which are linked with more than 12 computers/pc. I have already created a Database and an User from SQL SERVER Management Studio. But I am confused about what will be the server name in the connection string. When I open Management studio, it shows me SERVER\SQLEXPRESS as Name. Is it the name which I have to write in the Data Source value or anything else? In which place, I can find the server name at once?
    Thanks

  2. #2
    PowerPoster jcis's Avatar
    Join Date
    Jan 2003
    Location
    Argentina
    Posts
    4,430

    Re: How to find a MS SQL SERVER name?

    Shouldn't it be the computer name under Windows? from Sql Query Analyzer execute this:
    Code:
    select @@servername

  3. #3
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: How to find a MS SQL SERVER name?

    Managment Studio will display the server name when you open it.

    When I open it, I get both ther server name (red arrow) as well as the my windows login id (blue arrow) displayed.
    Attached Images Attached Images  

  4. #4

    Thread Starter
    Member
    Join Date
    Mar 2012
    Posts
    40

    Re: How to find a MS SQL SERVER name?

    Thanks a lot. I will test it at next sunday.

  5. #5
    A SQL Server fool GaryMazzone's Avatar
    Join Date
    Aug 2005
    Location
    Dover,NH
    Posts
    7,493

    Re: How to find a MS SQL SERVER name?

    You connect name (Server) will be ServerName\SQLEXPRESS. Remember that SQL Express out of the box will not allow remote connections to the database. You will need to modify the connection setting using the configuration mananger.
    Sometimes the Programmer
    Sometimes the DBA

    Mazz1

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