How to know the server name of SQL Server? -


is SQL Server 2008 R2 on my machine. I want to connect with Windows authentication mode I do not remember the server name .... I have also tested in SQL Server Configuration Manager but if no instance is running, how do I know the service name of SQL Server?

have you tried

  SELECT @@ SERVERNAME    

Comments

Popular posts from this blog

asp.net - Procedure or function "Procedure name" expects a parameter "Param name" which was not supplied occurs rarely -

c# - The item with identity 'Id' already exists in the metadata collection. Parameter name: item -

c++ - Redefined variable in the other module -