Quantcast
Channel: SQL Server Integration Services forum
Viewing all 24688 articles
Browse latest View live

Cache transform

$
0
0

Hi All,

I have couple of questions on cache transform -

1) I have 3 columns in cache transform and doing lookup using 2 of them. E.g. I have columns a,b and c and I am doing lookup on b and c. When I use cache connection manager in full mode, I am not getting desired result or matching rows whereas if I use ole db connection manager and use no cache mode I get desired result. What could be the reason for this wired behavior?

2) I have created 1 cache transform and in dft using BDD I have split my source data into 6. Then I have used 6 lookups and used this cache transform in all the 6 lookups. All the 6 lookups read the data from cache transform at the same time which I think is causing blocking and instead of improving the performance my package has become very slow. So, just wanted to confirm is blocking really possible if multiple lookups read the data from cache at same time? If yes, how this can be avoided?

Thank you in advance for your help or suggestions!


Executing A package using command line option type in SQL server agent

$
0
0

Please Experts' advise is urgently needed. 

The Challenge: My package runs well in BIDS but failed when scheduled in agent.

Reasons: [Connection manager "Excel Connection Manager"] Error: SSIS Error Code DTS_E_OLEDB_EXCEL_NOT_SUPPORTED: The Excel Connection Manager is not supported in the 64-bit version of SSIS, as no OLE DB provider is available.

Research/Debugging so far: i have configured the 64 bits runtime to false in package property in BIDS and i checked the box in agent to run the package in 32 bit. No results. 

Presently,  i am working on this hits: to run the package through command line directing to 32 bits since my agent environment is in 64 bits with the path below but the job still failed!!!!!!!

Please help me...... I know the solution is out there.......please tell me if there's anything i am doing wrong.

"C:\Program Files (x86)\Microsoft SQL Server\100\DTS\Binn\DTExec.exe\NewSSIS_Packages\foldername\foldername \package.dtsx

Thanks a lot



BislKenny

In SSIS 2012 cannot create an OLE connection using the SQL Server Native Client 11.0

$
0
0

have a package created in SSIS 2012 that I need to transfer on another server and run in visual studio. I have some connections already configured to use the Native OLE DB\SQL Server Native Client 11.0. However cannot create an OLE DB connection using the Native OLE DB\SQL Server Native Client 11.0 even if the SQL SErver Native client 11.0 is installed as part of the SQL 2012 installation. this is the reason why I need to use this connection provider. the error is the "login timeout expired. .. the server is not found or not accessible...." I enabled the remote connections even if I am running on the server. also the browser is running.

in the same time the connection provider using .Net Providers\SQLClient Data Provider is running fine. is it that I have to install the Native client 32 bit?

Error Controls

$
0
0

Hello!

The image on this post shows that error is being controlled but not the best way. This is because if you set the lookup transform to ignore error, the OLE DB transform is not able to capture most of the errors. How do I capture the errors from the lookups in one single transform to enhance performance?

Thank you

.Too many transforms being used to capture errors therefore poor performance


SSIS Execution Failure, nothing written to log file.

$
0
0

We have a SSIS package that contains one data flow task.  (that's it)

It connects to a database and a Sharepoint list (using the "SharePoint List Source" control from Codeplex).  It compares the data and sends updates and inserts to the Sharepoint list.  I'm not 100% sure, but I think the actual error that's happening has to do with Sharepoint returning data that the SSIS package isn't expecting... something like...

The content type text/html; charset=utf-8 of the response message does not match the content type of the binding (text/xml; charset=utf-8).

That data flow task has an SSIS log provider for Text files which is set to record OnError, OnPipelineRowsSent, OnProgress, OnTaskFailed events.  Every day in July (with the exception of this morning) the SSIS package has run successfully and written two Messages to the log per day.  ("Beginning of package execution" and "End of package execution").  I've appended an example below:

#Fields: event,computer,operator,source,sourceid,executionid,starttime,endtime,datacode,databytes,message
PackageStart,PBHQ002CN,BUD\svcPBHQ002N,SyncMXOrderSchedulingToSharepoint,{331722BD-4C5D-40C2-AE33-31F8005E6E30},{12228F83-52CA-4260-8629-4496E3C738D4},7/9/2013 5:08:09 AM,7/9/2013 5:08:09 AM,0,0x,Beginning of package execution.
PackageEnd,PBHQ002CN,BUD\svcPBHQ002N,SyncMXOrderSchedulingToSharepoint,{331722BD-4C5D-40C2-AE33-31F8005E6E30},{12228F83-52CA-4260-8629-4496E3C738D4},7/9/2013 5:16:08 AM,7/9/2013 5:16:08 AM,0,0x,End of package execution.

This morning we receieved a generic "SSIS package failed" message for it.  I then opened the log text file hoping to see the error message.  Not only did I not find an error message, but there wasn't a "Beginning of package execution" message or a "End of package execution" message at all. 

Here is the code that is executing the package:

DTexec.exe /FILE "N:\SQL\SSIS\TAS\SyncMXOrderSchedulingToSharepoint.dtsx" /DECRYPT "*****" /CHECKPOINTING OFF /REPORTING EWCDI

I have two questions.

  1. Why aren't the OnPipelineRowsSent, OnProgress events being written to the log on any of the days where the package ran successfully?   I'm wondering why I'm only seeing "Beginning of package execution" or "End of package execution" messages.
  2. If the SSIS package was run this morning and actually failed... shouldn't (at a minimum) the "Beginning of package execution" message have been recorded?


Microsoft TechNet Wiki Guru - Winners for June!!

$
0
0

The results for June's TechNet Guru competition have been posted!

http://blogs.technet.com/b/wikininjas/archive/2013/07/10/technet-guru-awards-june-2013.aspx

 

Congratulations to all our new Gurus for June. We will be interviewing and highlighting their achievements, as the month unfolds.

If you think you have a useful fact, snippet, or detailed solution that is as good or better than the examples you see for June, please share it with us on TechNet Wiki.

 

Post your JULY contributions here:

http://social.technet.microsoft.com/wiki/contents/articles/18211.technet-guru-contributions-july-2013.aspx

 

Below is a copy of the June winners. The last column being a few of the comments from the judges.

  

Guru Award BizTalk Technical Guru - June 2013  

Gold Award Winner

 

Ron PhillipsBizTalk: Monitoring and Automatically Starting Host Instances Via A Scheduled TaskMandi Ohlinger: "This is a very helpful script that users can implement now. "
Peter Laker: "Excellent article, loads of detail and nice format."
Ed Price: "Great introduction! I love how this incrementally takes you through the process."

Silver Award Winner

 

Abhijit MahatoImplementation of Routing slip pattern using ESB Toolkit 2.1 and BizTalk ServerMandi Ohlinger: "Great example of use ESB! The screen shots are a nice addition."
Ed Price: "Great formatting with the different sections! The images help visually explain everything."
Peter Laker: "Nice tip with lots of detail"

Bronze Award Winner

 

Mohit GuptaComplex FlatFile Conversion using Biztalk schema and MapPeter Laker: "Details, code and images make this a great article"
Ed Price: "The code blocks are very helpful!"
Mandi Ohlinger: "Great FlatFile example. We need more of these."

Guru AwardSharePoint 2010 Technical Guru - June 2013  

Gold Award Winner

 

Matthew YarlettUploading (and Resizing) Images to a SharePoint Picture Library via a WebpartMargriet Bruggeman: "Handy to have this code!"
Peter Laker: "Nice article. Who's the mugshot of?"
Ed Price: "It's very clear! It's great how you take us through this, with the code and image for clarity."
Tom Van Gaever: "Please do not set AllowUnsafeUpdate to true http://hristopavlov.wordpress.com/2008/05/16/what-you-need-to-know-about-allowunsafeupdates/"

Silver Award Winner

 

Sunny DasguptaSEO Friendly SharePoint Sites/PagesMargriet Bruggeman: "Good to know!"
TVG: "SharePoint 2013 PG has invested a lot in making SharePoint a better WCM solution. I would create a series that lists all the improvements for public facing websites (image rendition, device channels,...)"
Peter Laker: "Top tip"
Ed Price: "Short and sweet! Good use of images!"

Bronze Award Winner

 

Sunny DasguptaNew! SharePoint 2013: Branding Solutions as an App! Showcase your solutions now!TVG: "I like the showcase idea"
Ed Price: "This is an important business lesson! It would be great to follow this up with technical "how to" examples, with all the details."

Guru Award Small Basic Technical Guru - June 2013  

Gold Award Winner

 

Nonki TakahashiSmall Basic: How to Make a Turtle Maze GameRZ: "This is very cool. Nice layout, screenshots, and details instructions."
Ed Price: "I love this article! It's fun, and it takes you through the whole process in a fun and clear way, complete with great formatting, images, and code. Great job!"

Silver Award Winner

 

Jibba Jabbaa Development Map for Becoming a Good Programmer using Small Basic and MSDNRZ "Very useful information. Content is nicely structured."
Ed Price: "This is an incredibly valuable resource!"

Bronze Award Winner

 

Nonki TakahashiSmall Basic: Did You Know?RZ: "Very useful information. Especially concerning known issues."
Ed Price: "Chances are that you didn't know that... which makes this article very valuable!"

Guru Award SQL Server Analysis Services Technical Guru - June 2013  

Gold Award Winner

 

Yogish BhatAggregations in SSASPeter Laker: "Excellent subject. Excellent detail. Nice formatting."
Ed Price: "Great explanations, clearly written, and good job breaking up the sections so that it's easy to read and to use the TOC."

Silver Award Winner

 

Yogish BhatMOD Function in MDXPeter Laker: "Useful tip. Thanks!"
Ed Price: "Great solution!"

Guru Award SQL Server Reporting Services/Power View Technical Guru - June 2013  

Gold Award Winner

 

Tim PaclSorting Elements of a Concatenated StringPeter Laker: "An excellent article with some useful tips"
Ed Price: "This is a great article! You have a lot of code samples and a clear overview."

Silver Award Winner

 

Tim PaclAdding Links in SSRS ReportsPeter Laker: "Images really help to explain the procedure"
Ed Price: "The images help make the steps very clear!"

Bronze Award Winner

 

Tim PaclConcatenating Data Column Values Into a Single StringPeter Laker: "Useful tip, common problem"
Ed Price: "Good formatting on the code in this article."

Guru Award Transact-SQL Technical Guru - June 2013  

Gold Award Winner

 

Naomi NHow SQL Server Determines Type of the ConstantRichard Mueller: "A good recommendation to explicitly CAST values, with an example of possible consequences if you don't."

Silver Award Winner

 

Naomi NSET ANSI_PADDING Setting and Its ImportanceSamuel Lester: "Outstanding contribution! I love the process of walking us through the debugging you performed. People who read this article gain an understanding of not only the SET ANSI_PADDING setting, but also how you arrived at discovering this as well as the technical resources available to ask in the MSDN forums. Very, very good!"
Ed Price: "Very in depth article with great code formatting!"
Richard Mueller: "This explains an issue I was not aware of. Well researched. Good to include a script to correct the situation."

Bronze Award Winner

 

Johnny Bell JnrSQL Server Result Set In An HTML EmailRichard Mueller: "Very instructive. I like this because similar techniques can be used for other applications."
Samuel Lester: "Great article and very handy for sure. I'm a big fan of code generation through T-SQL as you're doing with the @HTML parameter. I use similar tricks often to generate code for other programming languages. Very good!"
Ed Price: "The text does a great job setting up the code blocks!"

Guru Award Visual Basic Technical Guru - June 2013  

Gold Award Winner

 

Reed KimbleHow to Communicate with a Microcontroller or Other Serial Device in VB.NetRichard Mueller: "A well written article with great information and a detailed code example. The explanation should allow someone to adapt this for many applications."
MR: "Well written and very descriptive."
Anthony D. Green: "This article has the most interesting topic but I wish it had a more concrete example like making a robot dance or something. Serial port communication is a common forum question as the writer points out - I'd be great if the user had something in the sample to run against/debug. Another suggestion I'd make is that the author break up the very long code sample into discrete steps with the paragraph describing the code following the code immediately. Right now a reader is confronted with a wall of text and has to try to grok it all at once before proceeding to the prose or scan back and forth to get it."
SB: "I like the article - I've seen many issues in the past with serial communication and its always a bit of a vague topic so any article is a positive in my opinion. It would be nice to link this to Micro-framework which added VB support and is another way of working with microcontrollers. Article is well written with good clean examples."
Ed Price: "Incredibly in depth with beautifully formatted code!"

Silver Award Winner

 

Paul IshakBitmap.Lockbits De-Mystified .NetRichard Mueller: "This was a difficult decision to rate these Wikis. This is a well researched article with good explanation of the steps required."
Mark Rideout: "Great details, though formatting makes it hard to read."
Anthony D. Green: "This was well written and well factored for reading. My only complaints are the lack of syntax colorization and the noisy line numbers. The topic is just obscure enough that it would have helped a lot to have a paragraph or two at the beginning to tell me what Lock bits is and why it's interesting rather than just jump into a deep dive. It links to another article which gives the motivation but it would have been great to have that inline."
SB: "Rather than an article I felt this was more a series of code snippets. Although very useful I prefer a narrative explaining things. I think that the content is OK but it alludes to the fact of performance improvements but would like maybe a bit more info as to how much more performance improvements can be made using this. Presentation wise I'd like to code colorized correctly as well as it helps tremendously in reading."
Ed Price: "I love how the article has its own banner image! Good code samples. Great job!"

Guru Award Visual C# Technical Guru - June 2013  

Gold Award Winner

 

Dan RandolphNamed Pipes IO for Inter-process CommunicationCW: "Well, rating this time around is pretty straightforward, what with there being one article. The only real dig I have against the article is that it brings up a GUI for this and I never see it. I know it isn't remarkable, but when you mention a GUI, I sort of expect to see it. Otherwise, this article provides a simple sample of using named pipes in c# code between two components."
Christian Lukito: "Good proof of concept showing how to use the API. But it will be more better if can provide real worlds example in what way this is more useful."
Peter Laker: "Only entry! Win!"
Ed Price: "Very clear and easy to read! Great code snippets with good formatting!"

Guru Award Windows Phone Technical Guru - June 2013  

Gold Award Winner

 

Tiziano CacioppoliniMaps and clustersPeter Laker: "Excellent subject, nice detail!"
Ed Price: "Great code and explanations! It could benefit from code blocks and headers/sections to break it up a little more. Great article!"

Silver Award Winner

 

isenthilHow to Launch Windows Phone 8 Emulator without using Visual Studio 2012?Peter Laker: "Thanks for the tip!"
Ed Price: "Short and sweet. Great formatting with the TOC and sections."

Guru Award Windows Store Apps Technical Guru - June 2013  

Gold Award Winner

 

Sachin SBuilding an App using the DataviewModel from external XMLPeter Laker: "Nice introduction to the subject. Excellent example and explanation."
Ed Price: "The image at the top catches your interest, and then the code blocks are great as well!"

Silver Award Winner

 

Sachin SBasic ColorPicker Control inside Settings PaneEd Price: "Great job breaking up the article with the different sections! The different sections, code headers, links back to the top, the image... it all helps make a better experience."
Peter Laker: "Very useful code. Commonly needed."

Bronze Award Winner

 

Sachin SInsert ComboBox item separator which is filled through Data BindingPeter Laker: "Top tip. Will no doubt come in very handy."
Ed Price: "Great formatting on the code snippets!"

Guru Award WPF Technical Guru - June 2013  

Gold Award Winner

 

Gaurav KhannaSet Brush for ScrollViewer ThumbPeter Laker: "Good to know if you're not adept at Blend"
Ed Price: "Great formatting on the code blocks!"

Silver Award Winner

 

XAML guyWPF: How to manage available/selected lists. Simple examples. MVVM and Code behindEd Price: "It's beautiful. A work of art! From the TOC, to the image at the top, the breakdown of sections, the code snippets, and all the way down. It's easy to read and easy to follow. Great job!"
Peter Laker: "A common problem, and a tidy solution :)"

Bronze Award Winner

 

Magnus (MM8)Event handling in an MVVM WPF applicationPeter Laker: "Nice event/command primer, lots of detail"
Ed Price: "Good formatting on the code, and the image helps you visualize it! Good article!"

A great big thanks to EVERYONE who contributed an article to last month's competition.

Hopefully we will see you ALL again in this month's listings?

 

If you have not yet contributed an article for this month, and you think you can produce a more useful, clever and better produced wiki article than the winners above, here's your chance! :D

 

Best regards,
Pete Laker

More about the TechNet Guru Awards:


#PEJL Got a good solution? If you invest your time in coding an elegant/novel or large answer on these MSDN forums, why not copy it over to our belovedTechNet Wiki, for future generations to benefit from!



#PEJL Got a good solution? If you invest your time in coding an elegant/novel or large answer on these MSDN forums, why not copy it over to our belovedTechNet Wiki, for future generations to benefit from!

SSIS Package (or other) to create database from existing database with criteria on tables

$
0
0

I need a push in the right direction. I can figure out the rest.

I have a very large database. Some of the tables contains millions of records. I want to have an SSIS Package (other suggestions welcome) that will truncate the tables in a destination database (on the same server) and then copy data form 16 tables from this large database into the appropriate 16 tables in the destination. Some of the tables I want to copy over verbatim. However, most of the tables I want to limit the results with date and other criteria. 

In the end I want some kind of automated or simi-automated process that will do this for me each month. Clear out the data in the destination tables, then refill the tables with data from the larger database using the criteria I specify for each table. To me this sounds like exactly what an SSIS Package does. However, aside from the MSDN tutorial on creating a simple SSIS Package, I have no practical experience. 

One of the forum posts I read suggested that I simply Export the data, save the export as an ssis package and then edit that package. I tried that, but because there were no critiera the amount of data was too much. 

SO..sorry to be so lengthy. Can anyone help me do this? I don't mind getting my hands dirty and learning as I go, but I need at least some guidance on what tools to use and how to get started.

Thanx,

tod

Studio albums

OnWarning Error Handler Event - Logging duplicate with Package and Container

$
0
0

Hi,

I have an OnWarning event handler at the Package Level that logs a warning to the tblErrorWarn table.

Whenever it triggers, it creates 2 logs - a. Package b. Sequence container (which belongs to a.Package)).

How to I just log the Sequence container level?



Export To Excel

$
0
0

Hi All,

I have an excel file with large amounts of record which has a column like 'Group'.

Now i want to create excel file for each data exists in Group column.

Please suggest how can i do this in SSIS ?

Regards,

Ibrahim Khan

OLE DB Destination Cannot Trap Errors

$
0
0

Hello!

I have a package that has up to five Lookup Transforms. Rather than controlling errors in multiple transforms (one for each Lookup), I set the error pages to ignore errors so that I can later catch them at destination by setting the OLE DB Transform to redirect errors and then send them to Raw File Destination Transform. But As I do this all the data would pass through to the error transform. This should not be as I know that every time I set the Lookup Transforms to redirect roles, I get the right result but when they are set to ignore errors I cannot catch the errors with the OLE DB Transform.

Am I doing the right thing? How do I catch these errors in a single Transform without having to use each for each Lookup?

Thanks for helping out.


Zionlite


Compare incoming rows with each other in the flow

$
0
0

Hi,

I want to compare the incoming rows from a OLEDB source with each other in SSIS, like I have the data as follows:

NameSurnameAge

NavdeepKhurana22

NavdeepKhurana23

NavdeepBhatti23

NavdeepBhatti24

NavdeepKumar22

NavdeepKumar23

I want to select the first row on the flow with different Surname like this.

NavdeepKhurana22

NavdeepBhatti23

NavdeepKumar22

Please suggest the solution.

Thanks,

Nav.Singh

Restart Packages without Checkpoints

$
0
0
I have a requirement to restart package where it failed last time. I know checkpoint is there for this purpose. 

But the problem is that we have multiple packages inside that master package and they are in for each loop. And

"It is not possible to use checkpoints within the For Each Loop and the For Loop containers. This is because SSIS does not keep track of the number of iterations the loop has gone through during processing."

So, I have to make it restartable without using check point.

Has anyone came across the same situation and did some workaround?

I would appreciate any suggestion/help.

Thanks,



ZK

Error converting data type nvarchar to numeric in Execute Sql task

$
0
0

In my SSIS project(VS 2008) I have declared a variabel LoadId as String.
I am querying sql database to retrieve a value called LoadId using following  query
in Execute Sql Task

SET NOCOUNT ON
DECLARE @LoadId NUMERIC (9)
EXEC InsertStageingStatistics ?, @LoadId OUTPUT
SELECT @LoadId as LoadId

After that I got to data flow component

Here I fetch a flat flie and from it I get ragged right formatted data column.
Then Input inot Derived Component.

In Derived Component I Use following expression to create a column from a single value LoadId into a column of LoadIds
(DT_NUMERIC,9,0)(@[User::LoadId])
Then Input into Script Component

Then in Script component(In data flow) I use following code to insert data and LoadId into TestTable.

   public override void Input0_ProcessInputRow(Input0Buffer Row)
    {
        try
        {
            MysqlCmd = new SqlCommand("INSERT INTO dbo.TestTable(Load_id, Data) VALUES(@LoadId,@Data)", sqlConn);


            MysqlParam = new SqlParameter("@LoadId", SqlDbType.Decimal, 9);
            MysqlCmd.Parameters.Add(MysqlParam);

            MysqlParam = new SqlParameter("@Data", SqlDbType.VarChar, 512);
            MysqlCmd.Parameters.Add(MysqlParam);

            MysqlCmd.Parameters["@LoadId"].Value = Row.LoadId;
            MysqlCmd.Parameters["@Data"].Value = Row.Data;

            MysqlCmd.ExecuteNonQuery();
        }        
        catch (Exception ex)
        {
            string msg = ex.Message;
        }
    }
Up to this all works fine.It does write as expected into TestTable.

Now in Control Flow (after Script Component in Data flow is finished) I use Sql Task with following query

DECLARE @rslt INT
EXEC @rslt = VerifyStageing LoadId
IF @rslt <> 0
    RAISERROR ('VerifyStaging Failure', 16, 1)

Here I get error message:-
[Execute SQL Task] Error: Executing the query "DECLARE @rslt INT
EXEC @rslt = VerifyStageing  Loa..." failed with the following error: "Error converting data type nvarchar to numeric.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.

I thought that I have already numeric value of LoadId.If I change variable LoadId in package to anything but string then I execute sql task at the beginning fails.

Although this query is similar to on I use in beginning Execute SQL task.

Any help will be appreciated. Thanks in advance.

Bharat Gadhia


bgadhia

Need expression for Multiple case statement in ssis in single derived column for below SQL query

$
0
0

My requirement is

case when (f.[Pri Holder Gender] IS null and f.[Pri Relation] = '18')
then CASE UPPER(LTRIM(RTRIM(d1.[Pat Gender])))   
            WHEN 'M' THEN 'Male'     
            WHEN 'F' THEN 'Female'     
            ELSE 'Unknown'     
   END
else CASE UPPER(LTRIM(RTRIM(f.[Pri Holder Gender])))   
            WHEN 'M' THEN 'Male'     
            WHEN 'F' THEN 'Female'     
            ELSE 'Unknown'

Now requirement should express in Derived column like below:

How can I express in Single derived Column ?.

Thanks

-Madhu

Execute Child packages parallel in loop

$
0
0
hi ,
I have a master package which calls the child packages from a folder dynamically, when i tried this with execute package task inside a for each loop container , it is only looping one child package which is connected in the execute package task connection.
   Could any please suggest me a way to achieve this task. I want the parent package to read the 1st  child package , start and read next package, start and ....read last package, start.

Thanks in advance

Data from flat file not accepting the declared datat type

$
0
0

Good Morning All,

I have a package that loads data from a flat file to a sql server table. The column name is 'QTY' (Quantity). The data is coming as follows:

020000,000099,043000,001000,520000.........

I'm using the datat type DT_NUMERIC (6,2) in my SQL Server table, but instead of loading the data as

200.00,0.99,430.00,10.00,5200.00

Its loading the data as

20000.00,99.00,43000.00,1000.00,520000.00

I tried different data types as well but still no luck, can anyone please direct me ? Thanks

Debug Host has stopped working - SQL Native Client

$
0
0

Debug crashes when I use an Execute SQL Command or a Data Flow connection using the SQL Native client (10 or 11) in both BIDS (2008) or SDT (2012). This error has appeared very recently, within the last 10 days. A coworker also gets the same error. Problem details are below:

Problem signature:

Problem Event Name: BEX64

Application Name: DtsDebugHost.exe

Application Version: 2011.110.2100.60

Application Timestamp: 4f35eae1

Fault Module Name: sqlncli11.dll_unloaded

Fault Module Version: 0.0.0.0

Fault Module Timestamp: 50821094

Exception Offset: 0000000037f5c71a

Exception Code: c0000005

Exception Data: 0000000000000008

OS Version: 6.1.7601.2.1.0.256.48

Locale ID: 1033

Additional Information 1: 76a1

Additional Information 2: 76a173c26a6dc2e3cd83ac8fd9f8bdb9

Additional Information 3: 87e5

Additional Information 4: 87e55fe84cbc37101714166da3323550

Any assistance would be appreciated

Pass dynamic date value to SSIS package

$
0
0

Hi,

I have a parent package which accepts date as input. I can configure Set Values of Execute Package Utility with hard coded date value and it works fine. My question is how do I configure Set Values to accept dynamic date value or current date value (may be using GetDate()) ?

 

Thanks in advance.

Prabha

Prompt for a date and pass the date to the packages in my ssis project.

$
0
0

Please pardon my newbieness. This will be my first SSIS package and I am learning as I go. So far this is what I have. 

I created a Control Flow. Then I created two ADO.Net connections, one for source and one for destination. Then I created 11 data flow tasks, each one copies data from a table in one database into a corresponding table in another database on the same server. Each data flow task has an ADO NET Source and ADO NET Destination. In each source I have a query that tells the source which columns I want from what table. The destination simply maps the fields together. 

Okay, so far so good. Here's the rub. Some of the source queries have date criteria. An example would be:

SELECT LastName, FirstName, Address, EmploymentDate FROM TableName WHERE EmploymentDate >= '6/1/2013' AND EmploymentDate <= '7/1/2013'

I want to replace these hard-coded dates with variables. Something like:

WHERE EmploymentDate >= StartDate AND EmploymentDate <= EndDate

I've read several posts and tried to do what is being described, but it's not sinking in. So...please use my example to tell me how to do this. It would be nice if I could have the package prompt me for the EndDate when I run it, but I'd be very happy just to learn how to pass a variable into the query.

BTW, the reason I am not using OLE DB Source and OLE DB Destination is because I was getting the error:

SSIS cannot convert between unicode and non-unicode string data type

I tried solving the problem with a data conversion transformer with no luck. Switching to ADO.Net solved that problem.

tod

control ssis package execution

$
0
0

if i have multiples data flow tasts in a  ackage, and i want to make sure only i data flow is executed, how do i cntrol at job level.

Viewing all 24688 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>