Is there a way to know the name of the Database Server

3

Is there a sql commando that can inform the server and database where the select is running?

I am available for more details

    
asked by anonymous 07.01.2016 / 12:07

1 answer

3

Yes. you can use the following select .

select @@SERVERNAME, DB_NAME()
    
07.01.2016 / 12:23