Question : servername

the following 2 queries are giving different names..

are they supposed to be returning the same?

SELECT SERVERPROPERTY('ServerName')
select @@ServerName

Answer : servername

>> are they supposed to be returning the same?

Yes, if Server name of your SQL Server is not changed after SQL Server installation.

And If it is changed after that, then you have to do this

http://blogs.techrepublic.com.com/datacenter/?p=192

to get it in sync.
Random Solutions  
 
programming4us programming4us