SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Capturing The Error Description In A Stored Procedure


Capturing The Error Description In A Stored Procedure

Author
Message
IsaacGoGo
IsaacGoGo
SSC Veteran
SSC Veteran (284 reputation)SSC Veteran (284 reputation)SSC Veteran (284 reputation)SSC Veteran (284 reputation)SSC Veteran (284 reputation)SSC Veteran (284 reputation)SSC Veteran (284 reputation)SSC Veteran (284 reputation)

Group: General Forum Members
Points: 284 Visits: 51
Comments posted to this topic are about the content posted at http://www.sqlservercentral.co



msurasky
msurasky
SSC-Enthusiastic
SSC-Enthusiastic (117 reputation)SSC-Enthusiastic (117 reputation)SSC-Enthusiastic (117 reputation)SSC-Enthusiastic (117 reputation)SSC-Enthusiastic (117 reputation)SSC-Enthusiastic (117 reputation)SSC-Enthusiastic (117 reputation)SSC-Enthusiastic (117 reputation)

Group: General Forum Members
Points: 117 Visits: 1

Great Article Joseph!

This is even more interesting when you consider the new features in the "soon to be revamped" DTS in Yukon. I read that you will be able to use looping structures so using this types of packages you will be able to put all you data into a spreadsheet in one fell swoop.

I'm wondering whether Microsoft will release a separated module with the new DTS for download until we can actually start using it when the product is released together SQL Server 2005 like they did with other features (enhanced XML, Reporting Services). But if the change is "that big" maybe they wont be able to release separately.

Keep writing this great DTS articles... I'm looking forward to see more of them





Jim Underwood
Jim Underwood
SSC-Enthusiastic
SSC-Enthusiastic (129 reputation)SSC-Enthusiastic (129 reputation)SSC-Enthusiastic (129 reputation)SSC-Enthusiastic (129 reputation)SSC-Enthusiastic (129 reputation)SSC-Enthusiastic (129 reputation)SSC-Enthusiastic (129 reputation)SSC-Enthusiastic (129 reputation)

Group: General Forum Members
Points: 129 Visits: 1

Enjoyed your article Joseph.

FYI, the page title that appears in the window title bar is:

"Capturing The Error Description In A Stored Procedure"


ZenDada
ZenDada
Ten Centuries
Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)

Group: General Forum Members
Points: 1313 Visits: 322

"There is a limitation in the Excel driver that effects the 'DELETE' keyword. If you attempt to use it, you will receive the error message, "Deleting data in a linked table is not supported by this ISAM". Instead, we remove the Excel table entirely with the DROP TABLE 'authors' command."

That is so clever! For years, I have been using an Excel template and the FSO to overcome the delete failure. Your solution is so simple it's elegant! Bravo!



ZenDada
bjure
bjure
SSC Eights!
SSC Eights! (910 reputation)SSC Eights! (910 reputation)SSC Eights! (910 reputation)SSC Eights! (910 reputation)SSC Eights! (910 reputation)SSC Eights! (910 reputation)SSC Eights! (910 reputation)SSC Eights! (910 reputation)

Group: General Forum Members
Points: 910 Visits: 339

I had som similar problems with Excel-reports a while back, but my solution was to create a template of the excelfile and in the beginning of the DTS, I deleted the previous report and copied my fresh template.

exec master.dbo.xp_cmdshell 'del excelfile.xls'

exec master.dbo.xp_cmdshell 'copy excelfile_template.xls excelfile.xls'

The great thing with this option is that you can create some basic formatting on the template if your report require that.





wildh
wildh
Ten Centuries
Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)

Group: General Forum Members
Points: 1206 Visits: 675
Very much akin to discussion

http://www.sqlservercentral.com/forums/shwmessage.aspx?forumid=9&messageid=93756#bm93832

however, this version is much more visually comprehensive.

This article that should help a lot of people as it appears to have been a very common question over the years.



rachel
rachel
SSC-Addicted
SSC-Addicted (416 reputation)SSC-Addicted (416 reputation)SSC-Addicted (416 reputation)SSC-Addicted (416 reputation)SSC-Addicted (416 reputation)SSC-Addicted (416 reputation)SSC-Addicted (416 reputation)SSC-Addicted (416 reputation)

Group: General Forum Members
Points: 416 Visits: 9
First - great article!

Minor issue with implementation - maybe somebody has experienced this too? When the data is posted from my query into the excel sheet, it doesn't start posting the data on Row 2 (Row 1 has column headers). Instead it starts posting the data down on row 458.

Any ideas? This is screwing up my pivot table that is using that data sheet.

Thanks for your help!



vakula manikonda
vakula manikonda
Forum Newbie
Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)

Group: General Forum Members
Points: 5 Visits: 1

Very nice Article!

I got an error on implementation. The first task of dropping the table, did not work for me. It says error occurred in drop table or drop index. I removed the first task and tried with the remaining tasks. the transformation task works fine but the execute ActiveX control task gives me an error saying that the 'SendUsing' has a configuration value that is invalid. I dont konw what it means. Can anybody help me???

thanks

vakula


Brian Laws
Brian Laws
SSC-Addicted
SSC-Addicted (494 reputation)SSC-Addicted (494 reputation)SSC-Addicted (494 reputation)SSC-Addicted (494 reputation)SSC-Addicted (494 reputation)SSC-Addicted (494 reputation)SSC-Addicted (494 reputation)SSC-Addicted (494 reputation)

Group: General Forum Members
Points: 494 Visits: 104
Regarding the dropping the table task: Make sure that you use the slanted quotes around the table name, not just the regular single quotes. They seem to be necessary. You can copy them from the CREATE TABLE statement. See if that helps.
YSLGuru
YSLGuru
SSCertifiable
SSCertifiable (6.1K reputation)SSCertifiable (6.1K reputation)SSCertifiable (6.1K reputation)SSCertifiable (6.1K reputation)SSCertifiable (6.1K reputation)SSCertifiable (6.1K reputation)SSCertifiable (6.1K reputation)SSCertifiable (6.1K reputation)

Group: General Forum Members
Points: 6092 Visits: 1668

Two thinsg to note:

1) I too had trouble with the DROP Table statement until I used the slanted quotes. I accidentally discovered that I could also use Brackets to get it to work like this:

DROP TABLE [Authors]

2) I can;t get the ActiveX code to work with the objMail.AddAttachment line. If I remove that line then the code works but when that line is there I get the error that the object doesn't support this property or method. ANy ideas?

Thanks



Kindest Regards,

Just say No to Facebook!
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