Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2008 Forums
 Transact-SQL (2008)
 servername

Author  Topic 

arkiboys
Master Smack Fu Yak Hacker

1433 Posts

Posted - 2013-02-15 : 05:54:51
Do you know why the following two queries give the same result in my production machine where as they give different result in Development machine?

--1
SELECT CONVERT(sysname, SERVERPROPERTY(N'servername'))

GO
--2
SELECT @@SERVERNAME

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2013-02-15 : 05:59:48
sounds like this

http://www.sqlservercentral.com/Forums/Topic556439-146-1.aspx

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

arkiboys
Master Smack Fu Yak Hacker

1433 Posts

Posted - 2013-02-15 : 06:11:39
quote:
Originally posted by visakh16

sounds like this

http://www.sqlservercentral.com/Forums/Topic556439-146-1.aspx

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/




Thanks
Go to Top of Page
   

- Advertisement -