Tutorial Gateway

  • C Language
  • Java
  • R
  • SQL
  • MySQL
  • Python
  • BI Tools
    • Informatica
    • Tableau
    • Power BI
    • SSIS
    • SSRS
    • SSAS
    • MDX
    • QlikView
  • Js

SQL @@SERVERNAME

by suresh

SQL @@SERVERNAME is one of the Configuration Function, which will return the local server name that is currently running SQL Server. Syntax behind this is

@@SERVERNAME

SQL @@SERVERNAME Example

Below code snippet will show you the instance of the SQL Server that we are currently using.

SELECT @@SERVERNAME AS 'Server Name'

OUTPUT

SQL @@SERVERNAME 1

Placed Under: SQL

Trending Posts

Python NumPy Array

Python Program to find GCD of Two Numbers

Copy Column Transformation in SSIS

C Program to Print Characters in a String

Python FABS

Java Break Statement

C Program to Search an Element in an Array

Create Hierarchy in Power BI

Move Data from SQL Server to another in Informatica

SQL IS NULL Function

  • C Programs
  • Java Programs
  • SQL FAQ’s
  • Python Programs
  • SSIS
  • Tableau
  • JavaScript

Copyright © 2019 | Tutorial Gateway· All Rights Reserved by Suresh

Home | About Us | Contact Us | Privacy Policy