Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Stairways
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Write for us
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
Search
Members
Calendar
Who's On
Home
»
Article Discussions
»
Article Discussions by Author
»
Discuss content posted by VM
»
XML
XML
Rate Topic
Display Mode
Topic Options
Author
Message
VM-723206
VM-723206
Posted Monday, June 15, 2009 11:34 PM
SSChasing Mays
Group: General Forum Members
Last Login: Saturday, April 06, 2013 12:20 AM
Points: 649,
Visits: 263
Comments posted to this topic are about the item
XML
Post #735464
vk-kirov
vk-kirov
Posted Tuesday, June 16, 2009 7:11 AM
Hall of Fame
Group: General Forum Members
Last Login: Today @ 6:30 AM
Points: 3,192,
Visits: 4,151
It cannot be used as a parameter to any scalar, built-in functions other than ISNULL, COALESCE, and DATALENGTH
What about CAST/CONVERT? These functions are scalar, built-in; XML data type can be used as a parameter to these functions. So I guess that the third statement of QotD is not correct.
Post #735626
Mauve
Mauve
Posted Tuesday, June 16, 2009 9:37 AM
Ten Centuries
Group: General Forum Members
Last Login: Monday, May 20, 2013 10:43 AM
Points: 1,146,
Visits: 1,848
The System Functions are classified as Scalar Functions.
Reference BOL:
Scalar Functions:
http://technet.microsoft.com/en-us/library/ms174318(SQL.90).aspx
System Functions:
http://technet.microsoft.com/en-us/library/ms187786(SQL.90).aspx
Using a System Function such as CAST and CONVERT against an xml data type is permitted. Ref:
http://technet.microsoft.com/en-us/library/ms189887(SQL.90).aspx
Therefore, the BOL entry referenced by the answer is
incorrect
. Since the documentation is conflicting but certain scalar operations
are
permitted, the provided answer is incorrect.
(PHB)
I think we should build an SQL database.
(Dilbert)
What color do you want that database?
(PHB)
I think
mauve
has the most RAM.
Post #735789
RBarryYoung
RBarryYoung
Posted Sunday, July 05, 2009 6:31 PM
SSCrazy Eights
Group: General Forum Members
Last Login: Saturday, May 04, 2013 11:13 AM
Points: 9,855,
Visits: 9,374
You know these multi-select questions are much more difficult than the multiple choice ones. I think that they should always be worth at least two points.
-- RBarryYoung
,
(302)375-0451
blog:
MovingSQL.com
, Twitter:
@RBarryYoung
Proactive
Performance Solutions, Inc.
"Performance is our middle name."
Post #747458
Bhavesh_Patel
Bhavesh_Patel
Posted Friday, December 11, 2009 4:11 AM
SSChasing Mays
Group: General Forum Members
Last Login: Friday, January 11, 2013 12:41 PM
Points: 621,
Visits: 297
Pure guess work - I am never used XML datatype
Bhavesh Patel
http://bhaveshgpatel.wordpress.com/
Post #832811
L' Eomot Inversé
L' Eomot Inversé
Posted Saturday, March 20, 2010 12:34 PM
SSCertifiable
Group: General Forum Members
Last Login: Today @ 11:26 AM
Points: 7,110,
Visits: 7,183
vk-kirov (6/16/2009)
It cannot be used as a parameter to any scalar, built-in functions other than ISNULL, COALESCE, and DATALENGTH
What about CAST/CONVERT? These functions are scalar, built-in; XML data type can be used as a parameter to these functions. So I guess that the third statement of QotD is not correct.
I took the cynical view that because the second part was correct and most people don't think of cast and convert as scalar functions but as something quite different (in the case of CAST, they are probably right, ie BOL is probably wrong, as it looks like a coercion context marker and not a function of any kind; it would probably be stretching it rather a lot to say the same of convert though, so BOL is right about convert) the question author would probably not have considered CAST and convert as scalar functions and would want the wrong answer. So I ticked all three boxes,found my cynical guess was right, and came to the discussion to make exactly the comment you made, only to find that two people had beat me to it.
Tom
Is minic a gheibheann béal oscailte dorn dúnta.
Is minig a cheapas beul fosgailte dòrn dùinte.
Post #886945
« Prev Topic
|
Next Topic »
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
cannot
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Copyright © 2002-2013 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use.
Report Abuse.