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

Cannot run SSIS package using SQL server agent

$
0
0
Hi all,

I had import SSIS package to SSIS server  and can run completely if I execute via SSIS.
I have to schedule the package to run at night so I created SQL Server agent job for scheduling.
But I found that the SQL Server agent cannot execute the SSIS package with the following error.

----------------------------
Started:  2:00:01 AM  Could not load package "\File System\UMI_TOPS\MainSequence\SEQ_WEEKLY" because of error 0x80070002.  Description: Unable to find the specified file.  Source: MsDtsSrvr  Started:  2:00:01 AM  Finished: 2:00:01 AM  Elapsed:  0.11 seconds.  The package could not be loaded.  The step failed.,00:00:01,0,0,,,,0
----------------------------

So could you please kindly suggest me about this issue, Thank you in advance :)

SSIS package with Execute SQL task Fails on command that runs successfully on SQL Server Management Studio

$
0
0

Hello,

I have an "Execute SQL task" which executes UPDATE statement on nvarchar(max) column and fails when there are "$(" and "($" symbols in the value.When I add a space between the dollar sign and the bracket, it is running successfully. I want to understand what is the cause of this issue in SSIS.

Thanks in advance,

Nikolay

Loading Excel files using Multiple Dataflow Task

$
0
0

Hi All,

I have following scenarios in my requirement:

Scenario 1:I have a client folder in which there are multiple clients Eg:- ABC, XYZ. I need to take all the client from the client master and check for the clients in the client folder and load the data only for the existing client's data into the database.

My Solution: I am able to achieve the above task using the script task. I get the names of the Sub-folders  ABC,XYZ etc. which are the existing clients.

Scenario 2:  I need to load all the excel sheets present  in ABC folder then XYZ and so on.. only after they are validate in the scenario 1.The clients which I have got in the client folder has multiple format excel workbook with multiple sheets in it. 

Challenges: I get the sub-folder names in Scenario 1 but to populate the multi format excel I need to have multiple dataflow task as the destination table is different for each format. Depending upon the format I need to pass the control to the respective dataflow task.How to handle such complexity in SSIS?  


Thanks and Regards, Franco Lopes. Ask a Question and you are fool for a second but if don't ask a question you are fool forever.

How to build an SSIS package when only 64 bit drivers are available?

$
0
0

I'm trying to build an SSIS package using the experimental Hive ODBC driver (http://social.technet.microsoft.com/wiki/contents/articles/6226.how-to-connect-excel-to-hadoop-on-azure-via-hiveodbc-en-us.aspx)

However this only exists in 64 bit form. I can make some progress by creating a 32 bit DSN but when I try to get column metadata it falls over. Now this may be because the driver is experimental, but it's also quite possible that it's a 64 bit issue.

Problem is, if I can't even build a package in the 32 bit environment, I can't test running it in a 64 bit one...  

So, hoping for some bright ideas on how I can build my package :)


James Beresford @ www.bimonkey.com & @BI_Monkey
SSIS / MSBI Consultant in Sydney, Australia
SSIS ETL Execution Control and Management Framework @ SSIS ETL Framework on Codeplex

GETTING ERROR WHEN LOADING DATA FROM EXCEL TO SQL TABLE

$
0
0

[OLE DB Destination [14]] Error: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80040E21.
An OLE DB record is available.  Source: "Microsoft SQL Server Native Client 10.0"  Hresult: 0x80040E21  Description: "Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done.".

Regards,

Vipin jha


Thankx & regards, Vipin jha MCP

Export multiple Database Tables to csv

$
0
0

Hi all,

Done a search but nothing quite asks what I want to do.

I need to export about 100 tables from multiple database on one server to csv's. These need to include the column names and the name of the csv should take the table name.

The BCP solutions all seem a bit of a kludge so was thinking SSIS should be able to do this.

I am thinking of loading an Object variable with the table names and using a For Each container.

Script to change the csv name every iteration

But how do I setup the Connection Manager(s).

I am thinking a For Each container for each separate DB and then break the process down by Databases's

Just seems a bit heavy handed.

Anyone any ideas ?

Many thanks

Adding details to the exit values of Lookup Transformation

$
0
0

HI,

I successfully was able to identify the modified or newly added records after comparing with a txt file and an existing OLE DB table, also sent those data alone to another text file.

Now i need to add an additional column to the destination Text file where the column should give me the detail of either 'Modified' or 'New' according to the nature of either the linked id matched or unmatched.

I am able to add column in the destination txt file. But adding those details im little confused..

Has anyone have acheived this ..?? if so kindly help me out ..

Thanks !


--------------------------- Radhai Krish | Golden Age is no more far | --------------------------


SSIS Package config

$
0
0

Hi

   i create SSIS project,in that project i am having 3 packages these 3 package are different Excel File connection manager,but ole db connection is same for these 3 package..So if i create package configuration and reuse existing its take 1st package excel connection manager so another 2 package will get error..how to fix this in SSIS


replication two databases using one machine (server)

$
0
0

How to replicate two tables  from two mysql databases , they are the same machine ?

thanks


jasminka_d

Parse SQL Query before execution (Ctr + F5 In Manangement Studio)

$
0
0

Hi,

is there any way to parse the SQL Statement for errors, before the execution of Execute SQL Task?

Thanks,

Nikolay


PIVOT TABLE

$
0
0

Dear All,

I want to use pivot table

my query below is

SELECT COUNT(*) SCORE , [PLAN TYPE]  FROM CORNER_EV
GROUP BY [PLAN TYPE]

Output:-

SCORE PLAN TYPE
21 NULL
43 MEDICAID
11 NR – SHORT FORM
4 PPO
130 SHORT FORM
4 SR – INELIGIBLE
2 SR – MEDICAID
3 SR – SHORT FORM

expected output in

SCORE                     NULL MEDICAID NR – SHORT FORM
PLAN TYPE 21 43 11

looking to above output usiong pivot table,

Please help

Regards,

Vipin jha


Thankx & regards, Vipin jha MCP

sql task passing db table name as variable

$
0
0

Hi guys,

I am using a OLEDB connection with an SQL Task

My variable to pass to the SQL Task is the table name, but it does not work.

Passing a value (int) is fine.

Can someone help me?

It looks like this:

Variable User:: DestinationTable;  string; dbo.temptable

Passing parameters: User::DestinationTable; varchar; 0; 50

SQL: Select * from ?

to replace this default dialog please handle the dataerror event

$
0
0

Hi !

I am getting the above error while exploring data from DSV from within SSIS project.

I am trying to explore data from Adventure works 2008 R2 DB's table 'Employee' .. It gave me a long error along with the message 'to replace this default dialog please handle the dataerror event '

Its a sample DB , why am i getting this error ??

Also please let me know how to overcome this error ?

THanks !


--------------------------- Radhai Krish | Golden Age is no more far | --------------------------


executing ssis package remotely

$
0
0

hi,

 i have created ssis packages which loads data from file to sql server table.

i now i am trying to execute ssis packages from my m/c but the destination sql server is on other m/c

i am trying to create dynamic connection where i pass server name at run time

but when i deploy package on integration services and run i get erorr "the acquireconnection method call failed"

plz help me with this , if you want some additional info plz let me know

sys_guid using Execute Sql Task

$
0
0

Hi Everyone,

i have column   name : DATA_U(target)  which is an unqiue constraint column , here

my requirement is i want to assign a unique value i.e, SYS_GUID() value to this column

for this i have took a Global  variable with string Datatype,

in Execute Sql Task:

sql query is:

SELECT RAWTOHEX (SYS_GUID())as DATA_U FROM DUAL

this i am assign to global variable .now  i am using this variable inside  derived column,  assign to that column.

But above mentioned query generates  value which is same  for every row., first record will enter , next  value is same,this column is unique so it will not accept same value into this.

error message is :

[Oracle Destination [487]] Error: OCI error encouneterd. ORA-00001: unique constraint (SYSSS.SYS_C00295113) violated

i can make use of script component  :
http://social.msdn.microsoft.com/Forums/en-US/csharpgeneral/thread/86c375c2-98fa-4fc3-b9be-2e11aa1aacdd

but i want to make use of Execute sql Task, with variable, then this variable can be used in different dataflow task, because when ever i am using script component it is taking some time to load. is this possible to make use of Execute sql Task.

Please Suggest me.


karteek_miryala


SSIS package does not respond after some time.

$
0
0

i have created a package which loads data after transforming it. the source database and destination databases are on different servers. currently, the source table has 11,855,790 records. when i run package, after particualr number of records, the package does not respond. i do not get any error. the DFT (data flow task) remains yellow (in execute mode) and nothing happens even if i keep it for hours.

i tried to load data from diferent database which was on same server and has less records. the package runs successfully. after that i tried to load data again from database on different server but taking only 1,000,000 records. it worked fine. after that i tried again taking 5,000,000 records. it did not work. package stopped responding after processing particular records.

as there is not error/warning message i am not able to figure out the problem. Please suggest if there is any way to fix it.



Error in Excel Destination

$
0
0

[Excel Destination [1663]] Error: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80040E21.

[Excel Destination [1663]] Error: Cannot create an OLE DB accessor. Verify that the column metadata is valid.

[DTS.Pipeline] Error: component "Excel Destination" (1663) failed the pre-execute phase and returned error code 0xC0202025.

[DTS.Pipeline] Information: "component "Excel Destination" (1663)" wrote 0 rows.

Task Data Flow Task 1 failed

SSIS 2005 using .NET 4.0 components

$
0
0

I have a set of SSIS packages written in the 2005 environment. Currently, though I have heard this shouldn't work, these packages reference some custom .NET 3.5 assemblies, and they work fine

For reasons I won't go into here, those assemblies must be upgraded to .NET 4.0. Should the old SSIS packages from 2005 work with references to .NET 4.0 assemblies?

Thanks,

Jeff

Lookup Transformation - Lookup No Match Output columns

$
0
0

Hello all -

I am using a lookup transformation to add new rows from a source table that don't exist in the destination table.  I have the lookup setup as follows:

- Full Cache

- Old DB conneciton manager

- Redirect rows to no match output

Everything works fine (without error) but no rows get passed to the destination (100k are passed from the source, and about 15k of those are missing in the destination, so 15k should be passed to the destination).  After opening the advanced editor I noticed that under Input/Output Properties -> Lookup No Match Output -> Output Columns ...there are no columns. 

What am I missing?

Thank you!


Bonediggler

SSIS does not recognize CRLF as the en of line

$
0
0

Hi all,

I'm having a strange behavior here, or maybe I'm doing something wrong, I'm not sure.

 

Anyway, I have a csv file, the Flat File Connection Manager is configured like this:
Row delimiter: {CR}{LF}
Column delimiter: {;}

For some rows in my file the last two columns are empty and the there is no semicolon for these empty rows but these rows are still ended by a CRLF but SSIS does not consider the CRLF as the end of the row, it consider the first 2 columns of the next row as the last 2 columns of the current row.

Sample:

CSV file:
Col 1;Col 2;Col 3;Col 4;Col 5
AAAA;BBB;CCC;;
AAA1;BBB1;CCC1;;
AAA2;BBB2;CCC2
AAA3;BBB3;CCC3

Imported rows in SSIS:
Col 1      Col 2       Col 3    Col 4    Col 5
AAAA    BBB        CCC
AAA1    BBB1      CCC1
AAA2    BBB2      CCC2   AAA3   BBB3;CCC3

Any idea ?

Sébastien

Viewing all 24688 articles
Browse latest View live


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