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 5 of 5
««
«
1
2
3
4
5
What, When, Where, How, Who2
Rate Topic
Display Mode
Topic Options
Author
Message
SQLRNNR
SQLRNNR
Posted Thursday, July 08, 2010 11:17 AM
SSCoach
Group: General Forum Members
Last Login: Yesterday @ 1:07 PM
Points: 18,733,
Visits: 12,332
larry.meklemburg (7/8/2010)
I too get the error, but not every time that I run it. If I catch the culprit, I will let you know.
I am using 9.00.4262.00 (X64).
The error is;
Msg 6841, Level 16, State 1, Line 24
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.
Great article and very useful.
Thanks,
Larry
Thanks for the note. Do you have anything like what John demonstrated? I would recommend trying Adam's script when this occurs. It should work and illustrate where the problem is. I am planning on comparing the two to determine how to avoid this error.
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 #949464
larry.meklemburg
larry.meklemburg
Posted Thursday, July 08, 2010 2:12 PM
SSC Rookie
Group: General Forum Members
Last Login: Thursday, July 15, 2010 7:05 AM
Points: 30,
Visits: 14
I believe it is exactly what occurs in John's case. Thanks for the idea. I will try running Adam's whoisactive script when I next get the error.
As a note, I just ran your script and the error did not occur. I will keep you informed and thanks.
Post #949579
Adam Machanic
Adam Machanic
Posted Thursday, July 08, 2010 2:17 PM
Ten Centuries
Group: General Forum Members
Last Login: Wednesday, May 15, 2013 3:20 PM
Points: 1,137,
Visits: 667
larry.meklemburg (7/8/2010)
I believe it is exactly what occurs in John's case. Thanks for the idea. I will try running Adam's whoisactive script when I next get the error.
As a note, I just ran your script and the error did not occur. I will keep you informed and thanks.
Not trying to overshadow the work that Jason has done, but why not just stick with Who is Active? It doesn't have the error and returns all of the same data plus a lot more
--
Adam Machanic
SQL Server MVP
SQLblog.com: THE SQL Server Blog Spot on the Web
Post #949581
SQLRNNR
SQLRNNR
Posted Thursday, July 08, 2010 3:09 PM
SSCoach
Group: General Forum Members
Last Login: Yesterday @ 1:07 PM
Points: 18,733,
Visits: 12,332
Adam Machanic (7/8/2010)
larry.meklemburg (7/8/2010)
I believe it is exactly what occurs in John's case. Thanks for the idea. I will try running Adam's whoisactive script when I next get the error.
As a note, I just ran your script and the error did not occur. I will keep you informed and thanks.
Not trying to overshadow the work that Jason has done, but why not just stick with Who is Active? It doesn't have the error and returns all of the same data plus a lot more
Not a bad choice. Mine is by no means meant as a competitor to whoisactive.
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 #949617
Jeffrey Irish
Jeffrey Irish
Posted Tuesday, October 05, 2010 11:29 AM
SSC-Enthusiastic
Group: General Forum Members
Last Login: Thursday, May 16, 2013 2:02 PM
Points: 143,
Visits: 998
Jason,
I have used this to great effect! However, rather than use it as a stored proc, I just run the query to get the information.
I'm sure you're asking why. Mainly because I support many databases that I am not the direct DBA for. If I am troubleshooting, this is one of the tools in my toolbox.
Recently I have been getting errors and it took me a while to figure out just what the heck I did. Basically, if you run this script against any database other than Master, it fails with all manner of nifty errors
I just added "USE Master" at the top so that I don't make that mistake again.
In anycase, thanks a ton for this handy tool!!
Regards,
Irish
Post #998601
SQLRNNR
SQLRNNR
Posted Tuesday, October 05, 2010 11:32 AM
SSCoach
Group: General Forum Members
Last Login: Yesterday @ 1:07 PM
Points: 18,733,
Visits: 12,332
Thanks much. I actually use it frequently just as a script rather than a proc as well. I see where you are coming from on that perspective.
Thanks for the feedback and I am glad you are able to use it.
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 #998604
Ricky Lively
Ricky Lively
Posted Tuesday, May 24, 2011 8:32 AM
Forum Newbie
Group: General Forum Members
Last Login: Today @ 6:15 AM
Points: 8,
Visits: 714
Added job names:
...
),'') AS BlockingText
,CASE
WHEN LEFT(es.program_name, 31) = 'SQLAgent - TSQL JobStep (Job 0x' THEN 'SQLAgent - ' + sysjobs.[name]
ELSE Coalesce(es.program_name,' - ')
END as ProgramName
,Coalesce(es.client_interface_name,' - ') as ClientInterface
...
On ec.session_id = st.session_id
LEFT JOIN
[msdb].[dbo].[sysjobs] sysjobs
WITH (NOLOCK)
ON
CONVERT(VARCHAR(50), sysjobs.[job_id])
= SUBSTRING(es.program_name, 38, 2)
+ SUBSTRING(es.program_name, 36, 2)
+ SUBSTRING(es.program_name, 34, 2)
+ SUBSTRING(es.program_name, 32, 2)
+ '-'
+ SUBSTRING(es.program_name, 42, 2)
+ SUBSTRING(es.program_name, 40, 2)
+ '-'
+ SUBSTRING(es.program_name, 46, 2)
+ SUBSTRING(es.program_name, 44, 2)
+ '-'
+ SUBSTRING(es.program_name, 48, 4)
+ '-'
+ SUBSTRING(es.program_name, 52, 12)
Where es.is_user_process >= (case when @IsUserProcess = 0 Then 0 Else 1 End)
...
Post #1114077
richa.gupta
richa.gupta
Posted Monday, October 10, 2011 12:43 PM
Grasshopper
Group: General Forum Members
Last Login: Friday, May 17, 2013 2:18 PM
Points: 16,
Visits: 279
hi - i am also getting the same xml error. Any idea how to resolve it?
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.
Thanks,
Richa
Post #1188076
SQLRNNR
SQLRNNR
Posted Monday, October 10, 2011 1:16 PM
SSCoach
Group: General Forum Members
Last Login: Yesterday @ 1:07 PM
Points: 18,733,
Visits: 12,332
richa.gupta (10/10/2011)
hi - i am also getting the same xml error. Any idea how to resolve it?
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.
Thanks,
Richa
I have not yet looked deep into the root cause of this error. I am unable to reproduce the issue. In the meantime, I'd recommend using the whoisactive script by Adam Machanic. He has put a great many hours into it and does not get the same error. Look further up the thread for the link to that script.
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 #1188091
Martin Graves
Martin Graves
Posted Monday, December 12, 2011 7:34 AM
Forum Newbie
Group: General Forum Members
Last Login: Wednesday, May 01, 2013 12:44 PM
Points: 8,
Visits: 183
I am getting the same error @ XML.
2005 - 9.00.5259.00 (Intel X86)
Post #1220252
« Prev Topic
|
Next Topic »
50 posts, Page 5 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.