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

Date format issue

$
0
0

I want input dates in DD/MM/YYYY format

select '12/03/2012'

The input value is actually 12th March, 2012, but it is added to the table as December 03, 2012.

please some one help me thanks


Failed to load Execute Package Task error.

$
0
0

Hello Experts,

Excuse my newbie question.

Execute Package Task: Error: The task has failed to load. The contact information for the task is "Microsoft Corporation; Microsoft SQL Server; Microsoft corporation; All Rights Reserved http://www.microsoft.com/sql/support/default.asp:1"

We have a windows service running on our app server that deploys a package that executes other packages using execute package task. This package and rest of the packages are in the same folder at the same level under integration services catalog. The package fails to execute with the above said error.

Execute package task is configured to run in 'in-process' mode. Changing delay validation to true/false in child packages didn't help.

ironically if the package is deployed using a console application from the app server the package gets executed just fine. I checked permissions, everything seem fine.

Is there anyway to get details of this error to understand the problem better? I am looking at reports > standard reports > all executions.

Thanks.

issue with merge join inner join

$
0
0

Hi,

I have a data flow with merge join and I am using the two sort types: T- SQL ORDER BY and the SSIS SORT component.

The sorted join key is a varchar data type. I understand that there are issues with that and extra configuration is needed.

The varchar join key looks like this: 

zdjV3pLa1s-2BWydPnlaE-3D_992cab5d-ab66-4af5-8e38-c25dccfcbcf9

but could look like this:

zdjV3pLa1s-2BWydPnlaE-3D_992cab5d-ab66-4af5-8e38-c25dccfcbcf-11

The minus sign at the end causes the sorting to differ between the SQL ORDER BY and the SSIS SORT.

Any configuration I tried with the component flags of the OLE DB source and the SSIS SORT did not help.

A bad fall back will be to sort only with SSIS SORT but I would like to avoid that.

Any suggestions ?

How to persist complex custom properties of SSIS Dataflow Components

$
0
0

Hi,

I am working on a Custom Dataflow component for SQL 2008 R2 that has to maintain a complex data structure (a description of a function call including parameters and return value description). I do have  UI editor for entering the information. The info is saved in a custom property named "methodinfo". This field is shown in the properties window of BIDS and I see that it has the right type (the type name is shown, the property is not editable - fine for now).

But when I save the package and reload it, the property is empty. The DTSX package entry for this property reads

<property id="8" name="MethodInfo" dataType="System.Null" state="default" isArray="false" description="method info" typeConverter="" UITypeEditor="" containsID="false" expressionType="None"/>

so nothing is written to the DTSX.

I have tried implementing IDTSComponentPersist, but the methodes LoadFromXLM and SavetoXML are never called.

How can I persist my class to the DTSX file?

Yours

Guenter

Problem with ForEach Loop and rowcount

$
0
0

Hi all,

I am hacking through the use of this tool so please bear with me. 

I have a foreach loop that is looping through excel files.  I am processing one sheet at a time in each file.  So I process sheet 1 and if that was successful process sheet 2 etc.  If sheet1 fails I want the file written to a error directory.  In the dataflow for sheet1 I have a rowcount to the error handler.  In the control flow between sheet 1 and sheet 2, I branch based on the number of rows in the rowcount variable.

It isn't working.  I branch in the controlflow if the dataflow truly errors but in the flow where I interrogate the rowcount variable it never goes to the the branch where rowcount > 0.   I have read that the rowcount is not completed until the entire dataflow is compelte.  Is that true for the foreach loop?  Some guidance and suggestions would be appreciated. 

thanks,  SR


The light at the end of the tunnel may be you.

SSISDBBackup.bak error. Trying to create a catalog on Mircosoft Windows 2012 Server

$
0
0

Hello,


I'm, trying to create Integration Services Catalogs folder on the server , right click(for some reason Enable CLR Integration button is in grey color), and for some reason SSISDBBackup.bak is missing in the pass( Microsoft windows 2012 server with clustered server):

D:\Program Files\Microsoft SQL Server\110\DTS\Binn

I tried to reinstall Integration Services on the server , with out success

if somebody have any ideas it'll be great.

Best Regads

Daniel

SSIS - ExecuteProcesTask Batch File calls PSFTP.exe - runs fine manually but hangs when run on schedule

$
0
0

Hi There -- Got a weird one here.

I have a very simple SSIS package that uses ExecuteProcessTask to call a batch file, which calls a process (PSFTP.exe), which downloads a file from a secure FTP server, renames it and uploads the data to one of our SQL 2008 DB's (not R2).

When I execute the batch files manually, they run successfully. When I run the package from inside BIDS, it runs successfully.

When I schedule the package to run using SSIS, and I watch the affected folders while logged into the server, the job (and the package) runs successfully.

NOW... if I let the schedule run while I'm NOT logged in and watching the affected folders, the job hangs and then times out (I programmed the job to timeout after 3 mins, the job only takes about 15-20 seconds to run to successful completion). The package gets to the part where it opens PSFTP.exe, but it hangs at that point. I have to open the server's task manager and kill off the psftp.exe process every time the job hangs -- it's as if the second script doesn't recognize or accept the parameters being passed to it from the first.

The server that is running the job is running Windows Server 2008 R2 Standard, x64 bit, SP1. The batch files are calling/using only local folders in the file system. And I can log in to SSMS as either the local SQL sa or the domain administrator, and start the job from SSMS, and the job will run successfully.

here's the text of the first script (shoppertrakmain.bat):

cd C:\Users\administrator.FLINC\Desktop\Shoppertrak\psftp
del Daily.csv
psftp <email address> -pw <password> -b Shoppertrak.bat
ren Daily*.csv Daily.csv
exit

Here's the text of the second script (shoppertrak.bat):

mget *.csv
lcd C:\Users\administrator.FLINC\Desktop\Shoppertrak\psftp\archive
mget *.csv
del *.csv
bye

This is probably some sort of permission issue on my side, but I don't know where to look. Any advice out there would be most appreciated.

Thanks,

-Dan


Project Deployment

$
0
0

Hi !

We have develop and deployed proj using Project Deployment which has 100 packages.

After changes to one of the package , i need to deploy that particular package alone to the Folder in Project deployment model?

Is it possible to do this ?


Regards,


OLEDB Source/Destination Metadata refresh

$
0
0

Hi Everyone,

Is there any way we can turn off the case sensitivity of OLEDB Source/Destination metadata. The package fails whenever there is a change in the case of columns. For e.g. if RecordID becomes Recordid, the metadata needs to be refreshed.

I am aware that metadata needs to be set before we can execute the DFT but curious if there's any way we can turn off the case sensitivity.

Thanks and regards,

Jatin

Transfer a binary file stored in a table field in oracle to another table different schema in oracle

$
0
0
I would like to know if it is possible to use ssis to transfer a binary file of a datatype of long raw in a field in one table in oracle to a new table in a different schema of a datatype blob in oracle? The binary file is a Crystal reports executable which is used in a application that I support. I are trying to consolidate data fields over many schemas into one main schema to simplify the support issues.

how to find, which file present inside .ZIP?

$
0
0

Hi Experts,

I have test_20130303010203.dat file after ziping it the file name is test_20130305010203.dat.zip.

My question is how can i find which file got ziped?(in code).

Lets say i have 10 .dat file already in the same path where i am unziping my file....how can i find my unziped file?

Please help me 

How to Assign value of Derived Column to variables using script component.

$
0
0

How to assign value to a variable from Derived Columns.I need to run a sp with different parameters which are formed through Derived columns.I am planning to assign derived columns to a variable and then use these variables in Execute SQL Task to call stored procedure .

Please guide me if any other things work out better , please share any example to use script component to assign value to variable after derived column.

Thanks for your help!

How to Import a DTS Package, while keeping version History in Destination Intact

$
0
0

Hi Guys,

Not sure if this is the right forum for my question. But I couldn't find any other DTS forum to post my query.

Basically, I have my Production Environment in SQL 2008R2 and it contains few DTS [NOT SSIS!!!!] packages in Management > Legacy. One of those packages, Let's say is, 'PackageA.dts'.

Now for the PackageA, we have versions of last couple of years (almost 11 versions we have for this package), recently in Test Environment (again, SQL 2008R2) we made Lot of changes to that Package and now we want bring that package from Test Env. to Production. But a) we prefer not to 'open it in Prod then make all individual changes one by one' rather we just need to kind of overwrite/replace our existing Production Package   b) also, we don't want to loose version  history for the Existing PackageA.dts in Production, so anytime we can rollback when required.

Any Idea if I can? [Please don't post non relevant answer like, convert DTS to SSIS. Sorry if I sound rude, really will appreciate if some one can try helping me.]  






Regards, Avik M.

ssis - how to insert data from sql server to AS400

$
0
0

i have no idea on how to insert data to AS400 interface file using sql server object as a data source in SSIS.

i already created a stored procedure, when i execute the stored pro., it will return a result set.

how can i use this result set and then insert to AS400 file via SSIS.

i don't know which object i should use in SSIS in data flow.

anyone knows? any example for my reference.

SSIS Google AdWorlds c#

$
0
0

Hi,

I'm trying to extract data from Google AdWords, using their API. I've successfully got this working in a C#, just by using the google samples etc that I got from:

https://github.com/googleads/googleads-adwords-dotnet-lib/releases/tag/v16.6.0

I'm now trying to get this working in SSIS, via a script task initially, and I can't get it working. I think this stems from the fact that the SSIS script tasks don't have an app.config.

I've tried to bypass the need for an app.config by specifying the various settings manually in the code, but the SSIS script is crashing every time I include the code:

AdWordsUser user = new AdWordsUser(customDictionary);

I doesn't even let me step into the code when the above line is active - it just crashes.

Has anyone managed to get a Google AdWords extract working in an SSIS script task?

Thank you



C# Application.LoadPackage with Project Level DataSource Connections

$
0
0

I'm trying to use the .NET C# framework to make changes to a number of SSIS 2012 packages.

I am trying to use the LoadPackage method of the Application class to open the package, update a variable, and save the package.

The issue that I'm encountering is that the package contains a reference to an project-level connection.  When I save the change, it saves the change fine, but marks all the external connections as invalid.

connectionManagerID="{B0E1693D-0BCA-4D24-AEFC-97F81E37432C}:external"

becomes

connectionManagerID="{B0E1693D-0BCA-4D24-AEFC-97F81E37432C}:invalid"

I assume this is happening because I only have the one project open and therefore the LoadPackage has no context of the project and it's project-level connections.

Is there a way to give the LoadPackage the context of the available project-level connections so that it doesn't mark all the connections as invalid?  When I save the one valid change that I made?

Here is the code for reference:

// Initialize an Application and Package object
Application app = new Application();
Package package = null;

// Load the package in package object
package = app.LoadPackage(pkgPath, null);

// Update the Variable
String value = package.Variables["TableName"].Value.ToString();
if (value.IndexOf(".") == -1){
	package.Variables["TableName"].Value = "tstg." + package.Variables["TableName"].Value;
}
// Save the package
app.SaveToXml(pkgPath, package, null);

Thanks in advance,
Jason

VS2012 Closes When Trying to Add ADO.Net Connection Manager

$
0
0

I'm using SSDT-BI 2012 v11.0.3402.0 (I also have VS 2012 Premium w/ update 4). 

When I try to add an ADO.Net connection manager to a package (right-click in Connection Managers & select New ADO.Net Connection), the application window closes, and by that I mean the window disappears, but the devenv.exe process is still running (as seen in Task Manager) & it continues running until it is killed.

Any suggestions.

Thanks

Script Task - In SSIS

$
0
0

Hi All,

In the script task i have chosen Visual basic for scripting,written few scripts , after some time i have planed change C#. In that  what is the way to reuse the same Script Task to do the coding using C#. Please share your comments.

Thanks

Thiru


Thiru

SSIS buffer memory issue

$
0
0

Error: The system reports 86 percent memory load. There are 4294500352

bytes of physical memory with 570355712 bytes free. There are

4294836224 bytes of virtual memory with 2660495360 bytes free. The

paging file has 8587091968 bytes with 6052159488 bytes free.

i m getting error while executing data flow task.

How to export the results of a stored procedure to dynamic excel file with timestamp

$
0
0

Hi,

Is it possible to create a dynamic excel file (destination) ?

I trired the below steps but it is giving the following error:

1--In data flow, drag OLEDB Source, then select data access mode as SQL Command, in pane Write EXEC dbo.YOURPROCNAME, On top you have to select the connection to your database.

2--Now you would have all the records, Drage Excel Destination. Connect them and then create Excel Connection manger by using Wizard. Define where you want to put the file.

3--Creat a variable called ExcelFileName. get the properties of this variable, It will be string type variable. In properties you will see Expressions.. you need to writte the expression here, how you want the name.

Your expression would be something like this... "D:\\MyFolder\\MyExcelFiles\\Report_"(DT_STR,1252)(getdate()... this is just an example you have to replace . with _ in expression, Here is linke , how to create timestamp with file name

 

--Edited:

Expression Script

"D:\\MyExcelFolder\\report_"+Replace(Replace(Replace(Replace((DT_WSTR,50)(getdate()),"-","")," ","_"),":",""),".","_")+".xls"

output will be like this D:\MyExcelFolder\report_20100624_145946_836000000.xls

You can change according to your requirement.

http://consultingblogs.emc.com/jamiethomson/archive/2007/02/07/SSIS-Nugget_3A00_-Construct-a-timestamp-value.aspx

4--Once you will be done, then you need to go to Excel connection manger properites, there you need to go to expressiona and then have to select property--->FileExcelpath and then Expression-- @[User::ExcelFileName]

You might have to set Delay Validation property to true for this connection in propery pane.

5-go to variable property and set it to EvaluteExpression property to True.

The error which i am getting is 

Error: 0xC0202009 at Data Flow Task, Excel Destination [20]: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80040E37.
Error: 0xC02020E8 at Data Flow Task, Excel Destination [20]: Opening a rowset for "Excel_Destination" failed. Check that the object exists in the database.
Error: 0xC004706B at Data Flow Task, SSIS.Pipeline: "Excel Destination" failed validation and returned validation status "VS_ISBROKEN"

Can any one please help me out ? 

Thank you


Viewing all 24688 articles
Browse latest View live


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