Wrox Programmer Forums
|
BOOK: Professional SQL Server 2005 Integration Services ISBN: 0-7645-8435-9
This is the forum to discuss the Wrox book Professional SQL Server 2005 Integration Services by Brian Knight, Allan Mitchell, Darren Green, Douglas Hinson, Kathi Kellenberger, Andy Leonard, Erik Veerman, Jason Gerard, Haidong Ji, Mike Murphy; ISBN: 9780764584350
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional SQL Server 2005 Integration Services ISBN: 0-7645-8435-9 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 7th, 2006, 10:12 AM
Registered User
 
Join Date: Mar 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Using System Variable in Data Flow Task

Hi,

I want to store the System::StartTime in my Integration Table Log. Please guide how can I use this in my Execute SQL Task Block. I write this SQL Statement:

INSERT INTO CMN_tblIntegration VALUES ('HRM_tblParty', ?) Which the ? is for the parameter. I go to parameter mapping tab and map the System::SatrTime to parameter0, but the package fails to run. I also changed the ? to @IntDate and also changed the parameter name but the error was the same.

Please help how to write this System Variable value in to that table.

Regards,
Sassan


 
Old March 8th, 2006, 11:37 AM
Authorized User
 
Join Date: Jan 2006
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I just ran this:
INSERT INTO dbo.TestDate VALUES(?)
Successfully.
Parameter mapping was:
Variable Name: System::StartTime
Direction: Input
Data Type: Date
Paramater Name: 0

I tried Data Type of DBTimeStamp, but it didn't work. I keep getting mapping errors. But with Date, it called the database like this:
exec sp_executesql N'INSERT INTO dbo.TestDate VALUES(@P1)', N'@P1 datetime', 'Mar 8 2006 10:34:22:000AM'








Similar Threads
Thread Thread Starter Forum Replies Last Post
Need Help With System String^ variable etow Visual C++ 1 October 13th, 2008 08:45 PM
@[System::UserName] variable in SSIS jucasti SQL Language 0 April 15th, 2008 09:44 AM
Data Driven Query Task forkhead SQL Server DTS 1 June 22nd, 2006 11:01 AM
File System & FTP Task Granted BOOK: Professional SQL Server 2005 Integration Services ISBN: 0-7645-8435-9 1 February 24th, 2006 06:02 PM
Transform Data Task Hide's tables Hal Levy SQL Server DTS 1 April 26th, 2005 11:36 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.