Baskar B.V

Microsoft Business Unit, Wipro Technologies

  Home  |   Contact  |   Syndication    |   Login
  21 Posts | 0 Stories | 14 Comments | 0 Trackbacks

News

Baskar

Archives

.NET Interop

BizTalk Links

Blogs

SQL-SERVER

Figured out a solution today while doing my DTS code. I was fighting various ways to get this out but a simple code will do that. 

When you have an scenerio in DTS where you need to pass in SQL variables like @@rowcount, @@error to your global variables you typically do select @@rowcount, @@error in your execute sql task and map that to your global variables. This will not return you the values as intended. To get the values returned to your global variables you might have to set SET NOCOUNT ON as the first statement in your SQL query in sql task.

posted on Thursday, September 13, 2007 1:18 PM

Feedback

# re: Tip on DTS Execute Sql Task 11/12/2007 11:11 PM Mike
Thanks for the tip, it works like a charm!

# re: Tip on DTS Execute Sql Task 5/29/2008 1:47 AM reetu
i need tips badly

Post A Comment
Title:
Name:
Email:
Website:
Comment:
Verification: