Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Automate Data Purity Investigation


Automate Data Purity Investigation

Author
Message
Richard Fryar
Richard Fryar
SSC-Addicted
SSC-Addicted (437 reputation)SSC-Addicted (437 reputation)SSC-Addicted (437 reputation)SSC-Addicted (437 reputation)SSC-Addicted (437 reputation)SSC-Addicted (437 reputation)SSC-Addicted (437 reputation)SSC-Addicted (437 reputation)

Group: General Forum Members
Points: 437 Visits: 1172
Comments posted to this topic are about the item Automate Data Purity Investigation


Check Your SQL Servers Quickly and Easily
www.sqlcopilot.com
Mark Starr
Mark Starr
SSC Veteran
SSC Veteran (298 reputation)SSC Veteran (298 reputation)SSC Veteran (298 reputation)SSC Veteran (298 reputation)SSC Veteran (298 reputation)SSC Veteran (298 reputation)SSC Veteran (298 reputation)SSC Veteran (298 reputation)

Group: General Forum Members
Points: 298 Visits: 2569
Richard,
Thanks for the script - interesting technique.
It looks like line 175 was truncated (@Object needs to be @ObjectId).

Also, on first-run, I'm getting a message:
Warning: The maximum length of the row exceeds the permissible limit of 8060 bytes. For some combination of large values, the insert/update operation will fail.
.

I'll need to deconstruct the goings-on to find out why this is coming up (and it's just a warning, so maybe it's not a problem).

Cheers. Thanks for the post.

Mark
Just a cog in the wheel.
Richard Fryar
Richard Fryar
SSC-Addicted
SSC-Addicted (437 reputation)SSC-Addicted (437 reputation)SSC-Addicted (437 reputation)SSC-Addicted (437 reputation)SSC-Addicted (437 reputation)SSC-Addicted (437 reputation)SSC-Addicted (437 reputation)SSC-Addicted (437 reputation)

Group: General Forum Members
Points: 437 Visits: 1172
Hi Mark,

Thanks for pointing out the warning. That is expected and I should have mentioned it in the article. It doesn't prevent the script from working.

Regarding the truncated line 175 I'm not at my desk at the moment, but I'll check it as soon as I get the chance. I tested it before uploading so not sure how that has happened.


Check Your SQL Servers Quickly and Easily
www.sqlcopilot.com
Richard Fryar
Richard Fryar
SSC-Addicted
SSC-Addicted (437 reputation)SSC-Addicted (437 reputation)SSC-Addicted (437 reputation)SSC-Addicted (437 reputation)SSC-Addicted (437 reputation)SSC-Addicted (437 reputation)SSC-Addicted (437 reputation)SSC-Addicted (437 reputation)

Group: General Forum Members
Points: 437 Visits: 1172
OK, so the last 3 characters of line 175 have been truncated somehow.

This should be replaced with:

JOIN   sys.columns c ON c.object_id = @ObjectId



Does anyone know if it is possible to edit the scripts on SQL Server Central?


Check Your SQL Servers Quickly and Easily
www.sqlcopilot.com
Richard Fryar
Richard Fryar
SSC-Addicted
SSC-Addicted (437 reputation)SSC-Addicted (437 reputation)SSC-Addicted (437 reputation)SSC-Addicted (437 reputation)SSC-Addicted (437 reputation)SSC-Addicted (437 reputation)SSC-Addicted (437 reputation)SSC-Addicted (437 reputation)

Group: General Forum Members
Points: 437 Visits: 1172
I've just found out that I can edit the script, so I have corrected the error and re-submitted.


Check Your SQL Servers Quickly and Easily
www.sqlcopilot.com
Iwas Bornready
Iwas Bornready
SSChampion
SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)

Group: General Forum Members
Points: 12048 Visits: 885
Thanks for the script.
Iwas Bornready
Iwas Bornready
SSChampion
SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)

Group: General Forum Members
Points: 12048 Visits: 885
Oh, and thanks for the correction.
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search