July 7, 2008 at 12:23 pm
What is the role of the :: symbols in SQL? I usually see them prior to function calls but they optional, at least in that context. Also, how did you find the information? Searches of google, Microsoft, BoL haven't yielded any useful info. Thanks,
Rod
July 25, 2008 at 5:49 am
Invoking built-in user-defined functions:
http://msdn.microsoft.com/en-us/library/aa213008(SQL.80).aspx
The GRANT/DENY/REVOKE statements:
http://msdn.microsoft.com/en-us/library/ms187965.aspx
http://msdn.microsoft.com/en-us/library/ms188338.aspx
http://msdn.microsoft.com/en-us/library/ms187728.aspx
Is that what you've been looking for?
ML
---
Matija Lah, SQL Server MVP
http://milambda.blogspot.com
August 26, 2008 at 4:19 pm
Yes, it does answer my question. Thank you.
Sorry for how long it took for me to reply. I was on vacation and must have accidently deleted or skipped the email notice of your reply when I returned and was working through the long list of emails in my In box.
Rod
August 27, 2008 at 1:08 am
I'm just glad I could help. 🙂
ML
---
Matija Lah, SQL Server MVP
http://milambda.blogspot.com
December 7, 2009 at 2:10 pm
Hello,
The :: syntax is also used to call the static Geometry and Geography data type methods. For instance:
Declare @test-2 Geometry
Set @test-2 = Geometry::Parse('LINESTRING(1 1, 3 3, 6 6)')
Select
@test-2 as RawFormat,
@test.ToString() as WKTFormat --Example of a Geometry/Geography instance method
Some additional examples can be seen in the below links:
http://technet.microsoft.com/en-us/library/bb933823.aspx
http://technet.microsoft.com/en-us/library/bb933824.aspx
Bob Pinella
December 8, 2009 at 1:26 am
Rod Harten (7/7/2008)
What is the role of the :: symbols in SQL? I usually see them prior to function calls but they optional, at least in that context.
In SQL 2000 they were required in front of certain function names (::fn_dblog, ::fn_tracegettable, ...). In 2005 they are optional in that context.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
Viewing 6 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic. Login to reply