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

using SSIS to call a stored procedure on AS400 iseries DB2

$
0
0

I have developed an SSIS Package which uses an ODBC connection to an AS400 iseries stored procedure. I use an Execute SQL Task. The query is Call Doctrack.PubFeed(?,?,?,?). The procedure takes 2 input parameters and 2 output parameters (3rd and 4th parameters) The data types of the output parameters are  an integer and varchar.   As part of the procedure data is inserted into a table on the iseries. 

When I run the package using breakpoints to view the values of the variables I see that the stored procedure returns values for the output parameters  and the execute SQL task is a success and proceeds to the next task in the package.  The whole package ends successfully.

However, when the table on the iseries is checked nothing has been inserted into it.  To test further,  I manually run the procedure on the iseries using the same parameters.  The run is successful.  And when the table is checked, there are in fact new rows inserted.

What can possibly be the issue since I am not getting any errors when I run the package?  Oh I should add that prior to the execute Sql Task,  there is a data flow task which moves data from a SQL Server database  to a table on the iseries (successfully) using the same ODBC connection.  The execute sql tasks uses that information for the Stored procedure.


Copy the CSV Files from one location to Archieve Folder need to Rename with Currentdate

$
0
0

Hi Folks,

I have Developed ETL Package Which Supplying the CSV File, if I run the package Next time if Same File name  is there I need to Rename the that File with Currentdatetime need to move in to Archive Folder. if that File is not exist in that location no need to move the file into Archive file.

Can you please give me your tips Will grateful to you.

Many Thanks.

Space Issue while using Cache Transformation in SSIS 2012

$
0
0

We are using the cache transformation in our project , while doing the cache transformation our disk space goes to 0 MB free and SSIS package execution not completes even after 3 hr..

Initially we have around 34 GB free space on C: drive .Our server configuration is 64 RAM. We are caching the data from table which contains around 21 million records.

We changed the path in properties (“BLOPTempStoragePath”,”BufferTempStoragePath”) of Data Flow task of SSIS in which we are using Cache Transformation.

Can you suggest the solution for this?

SSIS Truncation error (Tried dataconversion, changing output columns but nothing works)

$
0
0

Example of offending row

I'm unable to find a solution to this truncation error on google.

This happens only on one field which has comments. The offending Excel row/column has text that was entered in two lines i.e they entered the data and pressed "enter" and wrote a new line in the same row.

Im using an Excel file source in SSIS and an OLEDB Destination (SQL Server) but one column keeps erroring out and I have tried to do the following:

1) Change output column width in advanced editor (still errors)

2) Data conversion tool between the source and destination (still errors)

Any help would be appreciated, thank you.


-- Please mark my post as an answer if I helped you to resolve the issue or vote up if it helped, thank you--

SSIS Variables in SQL Task

$
0
0

Hi,

I am wondering if this is possible and how to do it. I need to use the same SQL update task in 2 different package, what I want to do is to replace the table name and the field name in my SQL with variables instead of changing them manually. The data I need to process is so screwed up, I need to write at least about 35+ update statement just to keep up

I have set it up in the following in my script task editor:
UPDATE @TableName
SET @FieldName = 'BREUVAGE'
WHERE @FieldName = 'BREUVAGES'

I have create 2 variables and map them properly in the parameter mapping window but the execution is failling with the following error: must declare the scalar variable @tableName ...... Same thing for the @FieldName

Thanks

Copy infomation from a header into eveyline on a report

$
0
0
<p></p><p>I need a way to get that information to appear on every line. that information will change as every page changes on this report. this information is pulled from a SAP report.&nbsp; I was using monarch and that was working but the dts is going away and I need to get this info updated via SSIS.&nbsp; Any help would be greatly appreciated. I have all the other columns pulling in correctly </p><p><img alt="" src="https://social.msdn.microsoft.com/Forums/getfile/665138" /></p>

Using an if then statement in devried comlumn to count rows

$
0
0

Hello I am hoping there is a way to write an if statement for a derived column to count rows?

for example:

Row 35: PRI      7010

Row 100: PRI 7011

I am hoping for a froumlua that when it gets to row 100. it will go back and look at 35 and use that data if the 7010 = 7010, if not use 7011,,,

thanks

CSV File Issue

$
0
0

I have a CSV file and which has the last column contains Grand Total and some thing like '---' to all of the columns.I know we can get rid of these things through an SSIS expression.Can anyone suggest me for a good solution.Thanks .

Eg of the file: 

Grand Total:---------------------     .

MathewBhavana


SMO Connection Manager Not Working

$
0
0

I'm using SSDT 2012 to create SMO Connection Manager for transferring server objects. However the connection is not working, it always returns error message something like "server is not found". I tried to connect multiple servers, with both Windows and SQL authentications, none of them works. I found the SMO.dll is already installed in the specific folder on my development machine. What would be the reason of this error? Thanks.

----

-------Edited----------------------------------------------------

Added the error message below. I can connect the server using OLEDB or ADO.NET. So my question is, is there a service, protocol or port .... to get SMO Server ready for responding?

Derived Column Expression

$
0
0

Hello Everyone,

I have one column CandidatePlaced (Data type Boolean).

Using data conversion i changed data type to DT_WSTR and then i used derived column to manipulate the data. Ex. 1 = "Yes" and 0 = "No"

[Candidate Placed ?] == "1" ? "Yes" : "No"

But at end of result i got all the columns as No. Some should be Yes.

Please tell me where i'm wrong.

Regards

Parth Patel

MAS90 4.0 ODBC and MS-SQL 2012 Connection Freezes all the time

$
0
0

Hi,

I'm trying to use SSIS in MSSQL 2012 to extract data from MAS90 database.

The connection string is tested to be working, because I can extract successfully using the same one in Excel.

I follow the wizard of import data in management studio, but after selecting the tables and mapping all those things, when clicking finish, the management studio always freezes.

Any idea why? or any alternatives please?

Many thanks!

Getting data from JSON files and load into DW table

$
0
0

Hi All,

I have JSON files download to some folder in network drive - \\comp-nt1\shared\JSON. There are 30 files in JSON folder. I have to get the data from these files and load into DW table using SSIS. I tried using script compnent, but it didn't work. I am not good in .net. Are there any workwrounds on that? Any help is appreciated.

Thanks,

Punia

Oracle Connectors (3.0) with SSDT (2013)

$
0
0

In previous versions of BIDS we were able to customize the DataFlow toolbox to incorporate the Oracle Source and Oracle Destination items - however, it appears this is no longer the case in SSDT (no option to customize toolbox).  I've installed the 3.0 Microsoft Connectors for Oracle - when I create a new connection in the Connection Manager I can see the Attunity drivers, but under Other Source/Other Destinations in the Toolbox I cannot find the Oracle Source/Destination components.

Any help would be greatly appreciated!

Deploy or Import a SSIS package

$
0
0

Hi,  Is it possible to deploy or import an SSIS package developed in visual studio 2010 onto a 2008 R2 intergration server?

package: developed in vs2010, 

SQL Server: SQL Server 2008 R2. 

Trying to deploy the package onto the server.

Thank you.


rani

Documenting SSIS Packages

$
0
0

Hello,

What is the best way of documenting SSIS packages?

I am not interested in purchasing any software, but I would appreciate it if anyone had a general template that covers the key information of any SSIS package that should be defined and documented.

Thanks,

Kajo


Kajo

Upgrade SSIS packages

$
0
0

Hi ,

Can anyone tell me the detailed steps to upgrade the SSIS packages. We are migrating from SQL 2005 Enterprise Edition to SQL 2014 Standard Edition. Database migrations are happening smoothly , but i am facing difficulty in SSIS package migration.

What are the best practices for migrating/ upgrading the SSIS packages ? Does the Editions of SQL (2005 Enterprise to SQL 2014 Standard) impact the package upgrade.

Your help would be much Appreciated. Thanks in Advance :)

SSIS 2014 - Analysis Services Processing task - Connection cannot be made

$
0
0

Hello,

I've a request from a dev team to create a SSIS package where it simply has a Analysis Services Processing task which what it does is to refresh SSAS analysis services database cube.
I've been working with SQL Data Tools project from scratch where I have setup correctly the connection to the SSAS server, the Test Connection works fine, I execute the package via SQL Data Tools, it works fine too.
But when I deploy the package to the SQL server SSIS Catalog, after the deploy I can't execute the package successfully via SQL Server 2014 Management Studio, it simply gives the error "A connection cannot be made. Ensure that the server is running", but if I create a SQL Agent job and have configure a step with that SSIS package, and run that job manually, it run's fine.
Also I've tried in SSIS package to use impersonation and even tried with the domain administrator account which as permissions as sysadmin in SQL Server and Administrator permissions in SSAS service, and the problem of executing the package manually via SQL Management Studio still persists.
In SQL Profiler when I start the SSIS package via SQL Agent, appears as started by the configured user proxy "Administrator", when started manually in SSIS Catalog in SQL Studio Management, in SQL Profiler only shows Login and Logout of an Anonymous User?!
Since this does not make sense this behavior, I think that this might be a bug. Can someone give some help or any ideia in what am I doing wrong?

Notes: This situation happens in a Production environment, but also happens in a test environment using the AdventureWorks DB with the Analysis Services in Multidimensional and Tabular mode with demo projects of AdventureWorks cubes where the error results are the same.

Notes-2: I've attached to this post print screens of SQL Profiler with Event's filtered by Audit Logons, with logs of the SSIS package working via SQL Agent and another print screen with logs of the same SSIS package started manually via SQL Studio Management in SSIS Catalog where it gives the error.

Notes-3: This problem is reproducible if trying to execute manually the SSIS package via SQL Management Studio but you must connect to the SQL server remotely, and SQL Engine and SQL Analysis Services must be installed in 2 separated servers in same AD domain

Thanks for your attention,

Best Regards

PS: This situation is also published with print screens in Microsoft Connect - Microsoft SQL Server Feedback:
https://connect.microsoft.com/SQLServer/feedback/details/1391769/ssis-2014-analysis-services-processing-task-connection-cannot-be-made


Audit Logging in Table with multiple OLEDB Destination and OLEDB Command

$
0
0
Hi,
In my package there are 10 DFT.
Each DFT have source > Tranformation > Conditionsplit > Rowcount_Transformation  >   Oledb Command
                                                                                > Rowcount_Transformation1 >  Oledb Command1
                                                                                > Rowcount_Transformation2 >  Oledb Command2
                                                                                > Rowcount_Transformation3 >  Oledb Command3
All update hapend on diffrent Table.I want to log in Audit table .
My audit table like
Table_Name   Insert_count  Update_count

How can I log the package having multiple OLEDB Destination.

Please suggest.

Thanks in Advance




Thankx &amp; regards, Vipin jha MCP

execute sql in ssis foreach loop container

$
0
0

I am attempting to use the SSIS foreach loop container to loop through the files in a folder and insert the names of those files in a database table. 

I setup the foreach loop editor as a "Foreach File Enumerator", I then set the location of the folder and set the name of the file as tipsheet*. I set the Retrieve file name to "Name and extension". I then set the Variable Mapping to"User::fileName" with an index of 0.

I then add an Execute Sql object in the Foreach Loop container. 

For the Sql Query I've tried

INSERT INTO dbo.OriginalFileList
VALUES([User::fileName])

and

INSERT INTO dbo.OriginalFileList
VALUES(@[User::fileName])

and 

INSERT INTO dbo.OriginalFileList
VALUES(?)

I set the result set to "Single Row"

I set the Parameter Mappering to 

Variable name: User::fileName

Direction: Input

Data type: Varchar

Parameter Name: fileName

Parameter Size: 100

Below is the error I am getting

[Execute SQL Task] Error: There is an invalid number of result bindings returned for the ResultSetType: "ResultSetType_SingleRow".

Any advise would be appreciated.

Thanks

Royal


Royal

Generate a csv file dynamically with a fixed amount of rows

$
0
0

Hi All,

I need to generate a csv file from another csv file, seems to be simple but let's go the trick thing:

Needs to have maximum 1000 lines, if I reach to this, I need to create another csv and fill that new one.

Exemplifying:

I have a csv file called fileA and this has 2000 lines and another csv called fileB with 1500 lines.

I need to loop a folder and get the fileA, create an output called FileAOutput and start to fill that, if I reach to 1000 lines, I need to create a FileAOutput_2 and fill the other 1000 lines...so I'll go to fileB and do the same thing, but in the second case, I'll have 500 lines in the second output.

It is possible to do ? 

Thank you very much.


Viewing all 24688 articles
Browse latest View live


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