views:

40

answers:

1

In (non-English) book on TSQL (MS SQL Server 2005) I read about:

select * from ::fn_helpcollations()

Though, execution of it without "::"

select * from fn_helpcollations()

in my MS SQL Server 2008 R2 gives exactly the same result.

What does "::" mean in T-SQL?

+5  A: 

From MSDN:

However, when you call SQL Server built-in functions that return a table, you must add the prefix :: to the name of the function:

SELECT * FROM ::fn_helpcollations()

Looks like you can omit the :: in SQL Server 2005 and 2008. The :: syntax will be supported for backward compatibility.

Andomar