473,549 Members | 2,576 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Logging Rows Processed by various stored procedures within a DTS package

3 New Member
I have a situation where we are executing multiple stored procedures within a DTS package...Is it possible to have the rows processed for each stored procedure sent or stored to a log file?

Any help would be much appreciated...
Apr 4 '07 #1
5 1875
iburyak
1,017 Recognized Expert Top Contributor
Write code in each procedure to do that for you.

Or you can write a trigger over each table to log your changes.

Good Luck.
Apr 4 '07 #2
gatorone
3 New Member
Write code in each procedure to do that for you.

Or you can write a trigger over each table to log your changes.

Good Luck.
Thanks for the quick reply...

In this case I don't believe triggers is my answer, and I probably needed to provide more information in my original question.

My stored procedures are really nothing more than simple Insert and Update SQL statements where I am inserting rows from one table into another table. When I run the stored procedures in Query analyzer, I get the "rows processed" message back to the screen. I was wondering if there was a way to capture this same type of data when running the stored procedure within a DTS package. You referenced the possibility of inserting code to capture this information...I 've spent some time trying to find references on how to do this...is there a quit simple tidbit of code that you could point me to, that would be much appreciated...

Thanks for your help!
Apr 5 '07 #3
iburyak
1,017 Recognized Expert Top Contributor
[PHP] Select @@Rowcount[/PHP]

Returns number of rows affected.
Apr 5 '07 #4
iburyak
1,017 Recognized Expert Top Contributor
This line should be used as a next line after insert\update.
No cede between your query and @@Rowcount
Like this:


[PHP] Insert into table1 values (....... )
Select @@Rowcount
[/PHP]

Irina.
Apr 5 '07 #5
gatorone
3 New Member
[PHP] Select @@Rowcount[/PHP]

Returns number of rows affected.


Thank You very much...your help is much appreciated!!
Apr 20 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

4
6096
by: Mike | last post by:
Hello, I'm currently working on debugging a very large DTS package that was created by someone else for the purpose of importing data into my company's database. The data is mainly user/contact-related data for our customer base. We ran into problems when one import, of about 40,000 rows, took upwards of six hours to complete. Many of...
7
5664
by: Anthony Robinson | last post by:
Have been encountering an odd issue. Every now and again, certain packages of stored procedures just become invalid. I'm aware that dropping or altering an underlying table would render a package invalid, but we are doing no such thing... After banging my head on the wall for a bit I noticed that the two stored procedures that are...
5
4516
by: Jeff | last post by:
I have question about differences in fenced sql procedures and fenced stored procedures. Do fenced sql procedures take up an extra memory segment when executed? Reason I ask is we have several fenced sql procedures that have been excuting o.k. We implemented a fenced stored procedure on a C program and when trying to execute it, we get the...
1
2902
by: Westwood | last post by:
I have looked the newsgroups up and down and can't seem to find any information on this topic so I'm hoping this group can help me. We are a DB2 and SQL Server shop. Most of the time we are using ADO.NET to access DB2 stored procedures in the PC side, but we need to be able to run a DB2 stored procedure within SQL Server. More...
5
16545
by: Wael | last post by:
Hi, I have the following stored procedure that does some processing and puts the result in a temporary table. I tried several things that procedure to display output that I can access with ADO.Net, but it doesn't work. It doesn't even display the result in the query analyzer unless I add SELECT @ReturnFullName Any help? The stored...
3
10734
by: federicog | last post by:
I have a table with a datetime field. When I insert a row in this table, I use NOW() to insert the current time in the datetime field. Once the whole processed is finished, I update the inserted rows setting the datetime field to 0. What I need to do is to automatically delete all rows that are more than 30 minutes old. Something like 'DELETE...
4
3420
by: lfhenry | last post by:
I am a newbie to HADR and Admin of DB2 (I am websphere guy). My question relates to DB2 logging. I've read that HADR does not allow Infinite logging (-1). I am expecting my Database to grow 8-10GB's a month without compression (about 260 Megs day). What logging options should i specify before i start my database. If i set archiving using...
5
1977
by: william.david.anderson | last post by:
Hi there, I have a newbie stored procedures performance question that I'm hoping someone can answer. It seems like one of the benefits of using SQL stored procedures is that they can reduce the network traffic between the client and server, resulting in a performance gain. I'm wondering, though, if there's a performance penalty because...
11
3393
by: peter | last post by:
I am trying to get a SQL stored procedure to use user maintained MQT implicitly which raises questions on when they are used or not used. In theory you would expect the stored procedure to pick up the MQT at the time it is bound on the creation of the static SQL. This raises the question on how you stop it or start it using a MQT as there is...
0
7527
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
1
7485
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
1
5377
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5097
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3505
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3488
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1953
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1064
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
772
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.