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

Error handling in ssis

$
0
0

I have two control flow items ..Execute SQL task and Script task...

Execute sql task i am just reading a data..

and in script task i am calling .net class.

How to handle error for both of the task.


Taking a mySQL dump of the package process

$
0
0

I have created a ssis package in 2005... i have been to take a mySQL dump of the process? not quite sure how to do this?

I guess they want a script that investigate what the package is doing

How to get list of file names from SFTP server folder.

$
0
0

Hello,

How to get list of file names from Server folder location using VB.net code in SSIS 2005.

Appreciate your help. Thanks.

Vaishu


Vaishu

SSIS - sql job fails

$
0
0

I have a SSIS package , it has a for each loop container and file system task.  The file system tasks move files from folder A to folder B.  It sometimes fails if the file it is moving is being written to , which is normal.  I set the container to continue to next step ,which works. the process completes fine.

the sql agent job , shows the job as failure , when it cannot move a file that is open.  Is there anyway to show the job not as failure , even though it cannot move one file.  The rest of the job finishes fine

can we create SSIS and run from Code behind for export excel

$
0
0

Hi ,

I want to use export excel using SSIS because SSIS much better in performance,

here what i want to achive:

want to pass data or query for header and rows. and generate query

if records more than 65K should create new Sheet and do in new Sheet.

and want to send these thing from Code behind so when client run for export it should work, dont know doable or not

Thanks

A-


Ashok

SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred

$
0
0

Hi Guys Wroking on this SSIS Error .

Error: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80004005.
An OLE DB record is available. Source: "Microsoft SQL Server Native Client 10.0" Hresult: 0x80004005 Description: "Protocol error in TDS stream".
An OLE DB record is available. Source: "Microsoft SQL Server Native Client 10.0" Hresult: 0x80004005 Description: "Communication link failure".
An OLE DB record is available. Source: "Microsoft SQL Server Native Client 10.0" Hresult: 0x80004005 Description: "TCP Provider: An existing connection was forcibly closed by the remote host.
".
An OLE DB record is available. Source: "Microsoft SQL Server Native Client 10.0" Hresult: 0x80004005 Description: "Communication link failure".
An OLE DB record is available. Source: "Microsoft SQL Server Native Client 10.0" Hresult: 0x80004005 Description: "TCP Provider: An existing connection was forcibly closed by the remote host.
".

If Anyone can suggest solution would be great help.

Thanks 


Please Mark As Answer if it is helpful. \\Aim To Inspire Rather to Teach A.Shah


Configuration File Prob

$
0
0
Is there  a way to enforce a SSIS package to use only the connection string it needs from a config file. I have one config files that lists all the connection strings  from  packages. Now not every package needs all the listed connection strings in the config file.  A work around was to create a dummy connection string even though it doesn't really need it- but thats not a long term solution. any ideas?

Split a row into multiple rows on multiple columns

$
0
0

I want to single rows in multiple value columns to rows. there are more than 90 columns in the table. some of them have multiple values divided by'&$&', some columns are not.

for example

customerid    field1                                   field2 .....  field 99

1                   English &$& French

2                                                              d&$&f                1&$&b

-->

customer id   field1                   field2 ......... field99

1                   English

1                   French

2                                            d                    1

2                                            d                     b

2                                            f                      1

2                                            f                       b

How can I accomplish this?? Thank you so much!!


conditional split error

$
0
0

hi

i m getting this error:

[Conditional Split 1 [14]] Error: The expression "[Expiration Date] != [Expiration Date_LookUp] || BAC == "X" || ISNULL(BAC)" on "Conditional Split 1.Outputs[Case 1]" evaluated to NULL, but the "Conditional Split 1" requires a Boolean results. Modify the error row disposition on the output to treat this result as False (Ignore Failure) or to redirect this row to the error output (Redirect Row).  The expression results must be Boolean for a Conditional Split.  A NULL expression result is an error.

how to solve it

Calling Stored Procedure in Data Flow task

$
0
0

Hi,

I have a table that has one column that I need to look up or join with the result set of stored proc (sp) and find some information. This sp takes one input parameter (source table column value) and gives result set. How will I pass the input to the sp? Once input is passed, sp gives result set, and then I need to join one of the sp (result set) column to the incoming data, and bring additional columns in the pipeline.


Thanks, hsbal

take Backup Of MYSQL database

$
0
0

Hi

I need to take Backup Of MYSQL database on weekly basis using SSIS.

I have taken backup of SqlServer but have no experience with MYSQL

Kindly help me.

Thanks

Custom DataFlow component causes - "Value of 'null' is not laid for 'stream'." Exception in SSDT 2012 w/BI

$
0
0
Hi I developed a custom data flow component in SSDT 2012 (VS2012) as a C# assembly. I signed it, built it, copied it to ..\program files (x86)\Microsoft Sql server\110\assemblies\pipelinecomponents and registered it in the GAC and everything appears normal. when i add it to the data flow of an SSIS package created in SSDT2012 an connect the source adapter, i double click the custom component to edit it and it throws the following exception: "Value of 'null' is not laid for 'stream'." The annoying thing is there is no further info. Thinking I missed something. Tried the same SSDT 2012 component in an SSDT 2010 created package and all seems ok and I can seethe editor UI for the component. Ami missing something n SSDT 2012? Regards Barry

SP result set to a table, having problems

$
0
0

I am running a vendors SP.  They put in 4 parameters.  I have those set up as user variables.  Now i am trying to run the SP with those variables as parameters and I want to put the results into a table in my database.

The first thing I tried was Data flow task.  I tried using EXEC myspname ?,?,?,? and setting the parameters.  When I try to preview I get No value given for one or more required parameters.  So I read you could set a variable with the execute command and then do a sql command from variable.  If I use that I get results back.  But no columns so now I can't use a Destination.

The next thing I tried was running a Execute SQL Task with a Full result set and sticking that in a variable.  I think that worked but how do I get the results inserted into a table?

This doesn't seem like it should be that complicated, but I am stumped right now.

Data Flow Task failing to drag-and-drop onto SSIS Control Flow

$
0
0
This morning, I started having problems with Visual Studio 2005 on XP when I tried to create an SSIS project; I was getting an error message about the failure to create an SSIS runtime object, with the reference "Unable to cast COM of type 'Microsoft.SqlServer.DTS.Runtime.Wrapper.PackageNeutralClass' to interface type". Digging here and elsewhere on the Net, I used regsvr32 to re-register msxml3.dll, msxml6.dll, and dts.dll. This allowed me to create a new SSIS project, but I was unable to add a data flow task to the Control Flow pane -- when I dragged the control onto the pane, nothing happened, and when opened the Data Flow pane and clicked on the 'No data flow task has been defined. Click here to create a data flow task" link, I got a 'Failed to create the task. The designer could not be initialized." error. Searching here and on the Net, I uninstalled and reinstalled the SQL Server 2005 workstation tools.

After doing this, I am still unable to create a data flow task by dragging the task out of the toolbox; the pointer assumes the right form for the drag-and-drop, as it does for other tasks, but when I release the mouse button, nothing happens. However, when I go to the Data Flow pane and click on the 'click here to create a new data flow task', it creates the task, and I am able to use copy-and-paste to make copies of the data flow task and then change them as I want, so I've got a sort of workaround, but I want to identify why I can't just drag the task onto the pane.

Other suggestions for addressing related problems suggested using regsvr32 to reregister DTSPipeline.dll, but that failed to do anything visible.

I was using the program without a problem yesterday, and had made no configuration changes; I suspect that a GPO update may have been pushed to the computer overnight, causing the problem, but I don't know what could do this.

SSIS Package failed with following errors -Parameter Information cannot be derived from SQL statements with sub-select queries. Set parameter information before preparing command

$
0
0

Trying to execute the SSIS package in BIDS-2005 and keep getting same error. While same package works in BIDS 2008 very well. I downgraded package from 2008 to 2005 also made it from scratch using BIDS-2005 but still same error.

passing BatchID1 as ? in below querry. BatchID is column in dbo.my_table.

trying to load row count from my_db.dbo.xyz to dbo.my_table

UPDATE dbo.my_table SET SrcRecCnt = (select COUNT(*) from My_db.dbo.xyz)
WHERE BatchID=?" failed with the following error: "Parameter Information cannot be derived from SQL statements with sub-select queries. Set parameter information before preparing command.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.        Any one has face this issue and can help me with solution would be great help               Thanks


Please Mark As Answer if it is helpful. \\Aim To Inspire Rather to Teach A.Shah


Foreach Loop Error Handling

$
0
0

Hi All,

In VS 2005 I am using a series of each loops to load different .csv files and then move them a archive folder, this works fine. But now I am trying to get the loops to send an email when the file doesn't exist. But the loop is not failing and is staying green even when the file isn't in the folder location and the moves on to the next loop. I have tried setting FailPackageOnFailure to True but stays green.

I have setup a string variable @SATSYDPROD in the variable mappings in each loop, then use this as the connection string for the flat file.

After the Data Flow task I have tried using a precedence; eval:constraint value:failure to pass the data to the mail task. The event handlers for loop and data flow task have been enabled for the event 'on error'(with no objects). I found the information on setting the system variable propagte to False so the other loops can still run. But as I said the loop isn't failing so it isn't getting to that event.

Can anyone assist?

Component has no available input columns

$
0
0

I have a OLE DB Source and Flat File Destination in my DFT

SET NOCOUNT ON -- script to show if the FreeSpaceGB <= 1 GB for C: -- and <= 20GB for drives not equal to C: IF EXISTS (SELECT * FROM tempdb.dbo.sysobjects WHERE ID = OBJECT_ID('tempdb..#ServerName') ) DROP TABLE #ServerName SELECT DISTINCT servername into #ServerName FROM DiskFreeSpace IF EXISTS (SELECT * FROM tempdb.dbo.sysobjects WHERE ID = OBJECT_ID('tempdb..#DiskFreeSpaceT') ) DROP TABLE #DiskFreeSpaceT CREATE TABLE #DiskFreeSpaceT( [ServerName] [varchar](50), [DeviceID] [varchar](21), [SizeGB] [numeric](18, 2), [FreeSpaceGB] [numeric](18, 2), [InsertDate] [datetime] ) DECLARE @svrn char(25) WHILE exists (SELECT top 1 servername from #ServerName ) begin select @svrn = servername from #ServerName delete FROM #ServerName where servername = @svrn insert INTO #DiskFreeSpaceT SELECT ServerName,DeviceID,SizeGB,FreeSpaceGB,InsertDate from DiskFreeSpace where ServerName = @svrn and DeviceID = 'c:' and FreeSpaceGB <= 1.6 -- 1 and CONVERT(varchar(10),InsertDate,101) = CONVERT(varchar(10), GETDATE(),101) union ALL SELECT ServerName,DeviceID,SizeGB,FreeSpaceGB,InsertDate from DiskFreeSpace where ServerName = @svrn and DeviceID <> 'c:' and FreeSpaceGB <= 100 -- 20 and CONVERT(varchar(10),InsertDate,101) = CONVERT(varchar(10), GETDATE(),101) end SELECT ServerName,DeviceID,SizeGB,FreeSpaceGB,InsertDate from #DiskFreeSpaceT order by servername, DeviceID

My SQL Code In OLE DB Source is as follows and I am not able to see the columns in the Flat File Destination

Here is the image

The picture is too big but I hope it explains the point.

Thanks.

how to copy data to a falt file at UNC location with password protection?

$
0
0

Hi,

I have hard time setting this up. The destination has its own credentials(acct/password), but it is not on the same AD domain as the sql server. I am not sure if the other end is a window box. It might be an unix.

I can't run my package in BIRD because my window acct got access denied on the destination UNC.

I think I could configure sql server agent with the given credentials to do the job. But when I got into creating sql credential, it needs "Identify", which must be a AD account.

Thanks!


Using SharePointListAdapters for SSIS 2008-2008R2-2012

$
0
0

Hi,

I'd like to know your experiences with SharePointListAdapters for SharePoint 2010 and SSIS 2008 or SSIS 2008 R2 or SSIS.

I've already used them in past with good results with MOSS 2007 and SQL Server 2005.

Thanks

Array like facility in SSIS

$
0
0

I have  got a task in SSIS in which I have to create a variable of type OBJECT in the parent package and retrieve all the rows of a column of a table. And then I need to insert the required values to their respective variables in the child packages.

Earlier I have used SINGLE ROW RESULT SET to store the result of the query and then with the help of Package Configurations I have assigned the value of parents variable to the respective child package variable. But this is laborious work as I have many such values to assign.

How can I do this with FULL RESULT SET ?

PLS HELP!!!

Viewing all 24688 articles
Browse latest View live


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