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.
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.
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
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
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
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
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.
Please Mark As Answer if it is helpful. \\Aim To Inspire Rather to Teach A.Shah
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!!
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
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
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
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.
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
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?
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.
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!
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
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!!!