Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old March 7th, 2006, 10:12 AM
Registered User
Join Date: Mar 2006
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Using System Variable in Data Flow Task


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.


Reply With Quote
  #2 (permalink)  
Old March 8th, 2006, 11:37 AM
Authorized User
Join Date: Jan 2006
Location: , , .
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts

I just ran this:
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'

Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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

All times are GMT -4. The time now is 10:07 AM.

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