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 Jason Brimhall
»
What, When, Where, How, Who2
50 posts, Page 1 of 5
1
2
3
4
5
»
»»
What, When, Where, How, Who2
Rate Topic
Display Mode
Topic Options
Author
Message
SQLRNNR
SQLRNNR
Posted Saturday, June 12, 2010 11:24 AM
SSCoach
Group: General Forum Members
Last Login: Thursday, May 16, 2013 1:46 PM
Points: 18,732,
Visits: 12,329
Comments posted to this topic are about the item
What, When, Where, How, Who2
Jason
AKA CirqueDeSQLeil
I have given a name to my pain...
MCM SQL Server 2008
SQL RNNR
Posting Performance Based Questions - Gail Shaw
Posting Data Etiquette - Jeff Moden
Hidden RBAR - Jeff Moden
VLFs and the Tran Log - Kimberly Tripp
Post #936452
John Cuthbertson
John Cuthbertson
Posted Monday, June 14, 2010 1:25 AM
Forum Newbie
Group: General Forum Members
Last Login: Sunday, October 24, 2010 9:40 PM
Points: 6,
Visits: 20
Jason
Looks like you have done some good work.
However, I tried to run the stored procedure and got....
Msg 6841, Level 16, State 1, Procedure who4, Line 28
FOR XML could not serialize the data for node 'processing-instruction(definition)' because it contains a character (0x0000) which is not allowed in XML. To retrieve this data using FOR XML, convert it to binary, varbinary or image data type and use the BINARY BASE64 directive.
I will try and debug if/when I get time, If any anyone else has a solution already then tell me!
Post #936632
spaghettidba
spaghettidba
Posted Monday, June 14, 2010 4:13 AM
SSCarpal Tunnel
Group: General Forum Members
Last Login: Thursday, May 16, 2013 8:29 AM
Points: 4,804,
Visits: 8,067
Nice article, Jason.
I haven't tried your code yet, but looks very neat.
Well done.
Get your two-cent-answer quickly
The Spaghetti DBA
Post #936695
andycao
andycao
Posted Monday, June 14, 2010 6:35 AM
Valued Member
Group: General Forum Members
Last Login: 2 days ago @ 7:02 AM
Points: 74,
Visits: 640
Very nice. Code works fine on our SQL2008 (SP1) - 10.0.2531.0 server. Thanks!
Post #936781
SethT3
SethT3
Posted Monday, June 14, 2010 7:55 AM
Old Hand
Group: General Forum Members
Last Login: Thursday, May 09, 2013 9:49 AM
Points: 304,
Visits: 350
Very well written, Jason! I appreciate the elimination of the DBCC INPUTBUFFER step after all of my sp_who2 steps.
Post #936845
WayneS
WayneS
Posted Monday, June 14, 2010 8:08 AM
SSCertifiable
Group: General Forum Members
Last Login: Yesterday @ 5:29 PM
Points: 6,367,
Visits: 8,226
Good article Jason!
Wayne
Microsoft Certified Master: SQL Server 2008
If you can't explain to another person how the code that you're copying from the internet works, then
DON'T USE IT
on a production system! After all,
you
will be the one supporting it!
Links:
For better assistance in answering your questions
,
How to ask a question
,
Performance Problems
,
Common date/time routines
,
CROSS-TABS and PIVOT tables Part 1
&
Part 2
,
Using APPLY Part 1
&
Part 2
,
Splitting Delimited Strings
Post #936856
SQLRNNR
SQLRNNR
Posted Monday, June 14, 2010 9:15 AM
SSCoach
Group: General Forum Members
Last Login: Thursday, May 16, 2013 1:46 PM
Points: 18,732,
Visits: 12,329
John Cuthbertson (6/14/2010)
Jason
Looks like you have done some good work.
However, I tried to run the stored procedure and got....
Msg 6841, Level 16, State 1, Procedure who4, Line 28
FOR XML could not serialize the data for node 'processing-instruction(definition)' because it contains a character (0x0000) which is not allowed in XML. To retrieve this data using FOR XML, convert it to binary, varbinary or image data type and use the BINARY BASE64 directive.
I will try and debug if/when I get time, If any anyone else has a solution already then tell me!
First - thanks.
Second, what version and patch level of SQL Server? I have not encountered this in my testing.
Jason
AKA CirqueDeSQLeil
I have given a name to my pain...
MCM SQL Server 2008
SQL RNNR
Posting Performance Based Questions - Gail Shaw
Posting Data Etiquette - Jeff Moden
Hidden RBAR - Jeff Moden
VLFs and the Tran Log - Kimberly Tripp
Post #936931
SQLRNNR
SQLRNNR
Posted Monday, June 14, 2010 9:16 AM
SSCoach
Group: General Forum Members
Last Login: Thursday, May 16, 2013 1:46 PM
Points: 18,732,
Visits: 12,329
Gianluca Sartori (6/14/2010)
Nice article, Jason.
I haven't tried your code yet, but looks very neat.
Well done.
Thanks Gianluca
Jason
AKA CirqueDeSQLeil
I have given a name to my pain...
MCM SQL Server 2008
SQL RNNR
Posting Performance Based Questions - Gail Shaw
Posting Data Etiquette - Jeff Moden
Hidden RBAR - Jeff Moden
VLFs and the Tran Log - Kimberly Tripp
Post #936932
SQLRNNR
SQLRNNR
Posted Monday, June 14, 2010 9:18 AM
SSCoach
Group: General Forum Members
Last Login: Thursday, May 16, 2013 1:46 PM
Points: 18,732,
Visits: 12,329
andycao (6/14/2010)
Very nice. Code works fine on our SQL2008 (SP1) - 10.0.2531.0 server. Thanks!
Thanks - and you're welcome.
Jason
AKA CirqueDeSQLeil
I have given a name to my pain...
MCM SQL Server 2008
SQL RNNR
Posting Performance Based Questions - Gail Shaw
Posting Data Etiquette - Jeff Moden
Hidden RBAR - Jeff Moden
VLFs and the Tran Log - Kimberly Tripp
Post #936935
SQLRNNR
SQLRNNR
Posted Monday, June 14, 2010 9:24 AM
SSCoach
Group: General Forum Members
Last Login: Thursday, May 16, 2013 1:46 PM
Points: 18,732,
Visits: 12,329
Seth-95001 (6/14/2010)
Very well written, Jason! I appreciate the elimination of the DBCC INPUTBUFFER step after all of my sp_who2 steps.
Thank you.
Jason
AKA CirqueDeSQLeil
I have given a name to my pain...
MCM SQL Server 2008
SQL RNNR
Posting Performance Based Questions - Gail Shaw
Posting Data Etiquette - Jeff Moden
Hidden RBAR - Jeff Moden
VLFs and the Tran Log - Kimberly Tripp
Post #936939
« Prev Topic
|
Next Topic »
50 posts, Page 1 of 5
1
2
3
4
5
»
»»
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.