Quantcast
Channel: SQLServerCentral » SQL Server 2005 » SQL Server 2005 Integration Services » Latest topics
Viewing all 1193 articles
Browse latest View live

How to know which DTSX file was deployed in a server.

$
0
0
Hi all!!! I inherited an interface process (Oracle text file to SQL Server table) which uses a SSIS 2005 package developed in Visual Studio 2005. I'm new to SSIS, and need to do a change in the file to table mapping, since more columns will be added to the Oracle file. I found there are several DTSX files with the same name as the package being executed, but haven't found which one is the actual package being executed. Is there a way to know from within SSIS what is the package file name and where it is located?Thank you,

Integration and Browser services stopped

$
0
0
Hi all,In our server Integration and Browser services are stopped by its own.I dono why its happening daily and manually I am running both services.Kindly suggest some solution to this issue......Note : I install MS SQL SERVER 2008 R2 silent installation on our server.Thank You.

SSIS Error to use the oracle String

$
0
0
HI alli m getting 1error when i connect my oracle Table using connection String when i click on table ,its display from the list but when i click on Preview Its give me error ... i cannot Use this table as source or destination. Other table are working good in same Schema,ERRORError at Data Flow Task [OLE DB Destination [14]]: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80004005.An OLE DB record is available. Source: "Microsoft OLE DB Provider for Oracle" Hresult: 0x80004005 Description: "Unspecified error".An OLE DB record is available. Source: "Microsoft OLE DB Provider for Oracle" Hresult: 0x80004005 Description: "Oracle error occurred, but error message could not be retrieved from Oracle.".An OLE DB record is available. Source: "Microsoft OLE DB Provider for Oracle" Hresult: 0x80004005 Description: "Data type is not supported.".Error at Data Flow Task [OLE DB Destination [14]]: Opening a rowset for ""MY_TABLE_NAME "" failed. Check that the object exists in the database.

How to make group of continuous tasks to execute based on single condition

$
0
0
Hello All,Could you please help me out here, i am totally stuck here,i have total 20 tasks in my ssis package (dataflow, execute sql task, etc)at 16 dataflow task i want to check something in db table, if condistion satisfied then it will execute the remain tasks, if not then it should n't execute 16, 17, 18 tasks then 19 as usualhow to achieve thisplease help meThanks in adavnceasiti

ssis package configuration

$
0
0
could anybody help me how to configure dynamic my ssis package to all environment like development, QA, productionmy ssis package functionality creating a text file from a table.i need to figure how to create the package config file dynamic to all environment

Possible to determine the datetime range of loaded data to staging table?

$
0
0
Hi all,I have created a SSIS package. In the control flow i have a Execute SQL task which will truncate my staging table and followed by a Data Flow task that loads the source data to my destination staging table. Currently, my Data Flow consist of only a OLE DB Source and a OLE DB destination. However i would like to define the life range of data in my staging table but i do not know how to achieve that. Meaning i will only extract a specified range of data from source and load it into the staging table. In my source, there are two varchar fields EVENT_D and EVENT_T. So for example, if i run my package at 26/12/12 11:00:00, Data to be extracted and load into staging are data with EVENT_D + EVENT_T between 23/12/12 07:00:00 to 26/12/12 08:00:00and if i run my package at 27/12/12 14:00:00 my loaded data will be between: 27 Dec 0800 - 73 hours TO 27 Dec 0800.and if i run my package at 27/12/12 07:59:00(which is v rare) my loaded data will be between:23/12/12 07:00:00 to 26/12/12 08:00:00Is this achievable? I guess one of the problem would be my two varchar field and it is in the format of DD/MM/YYYY hh:mm:ss Thanks,10e5x

I want to give a conditional statement in dervied column

$
0
0
I want to give conditional statement in dervied column by adding a new column.In band column if Band is B1 then in new column it should be Manager like this If band=C1 then in new column it should be as Developer and if Band=B2 then in new column of that row should be as Tech Lead.How to do this

Issue with script component when used as destination

$
0
0
Hi all,Need help in solving an issue.i have a SSIS pkg deployed in INT & Dev env respectively. The data flow is like thisOne oledb source and script component component (using it as Destination)Inside oledb source component i'm using an stored procedure as Sql Command. Please see the attached screenshot of my DataFlow.Now the issue is:If i execute the pkg in Dev env i'm getting one output file generated in the shared path, however if i execute the same pkg in INT env i'm getting two o/p files getting generated in the shared path , with the header created in one of the o/p file and the data records divided among these two o/p files equally.Now if i deploy the INT stored procedure version in dev env then multiple o/p files are again generated :( and i have compared both the version of stored procedure and they are same... :(I'm not sure why the script component is generating multiple o/p files.:unsure:Please advice.Thankssam

Returning Values from a Stored Procedure (SQL TASK, SSIS)

$
0
0
Hi all,Here the problem:I have the following stored procedure:[font="Courier New"][size="2"]ALTER procedure [admin].[up_SetLogicalDate] @QueryDate datetime ,@LogicalDate datetime OUTPUT ,@LogicalDate_Start datetime OUTPUT ,@LogicalDate_end datetime OUTPUT--with execute as callerasbegin DECLARE @filter nvarchar(255) --Set the configuration filter value ,@ConfigDate datetime SET @filter = 'LogicalDate' --A null @date implies an increment: @date = @date + 1 IF @QueryDate IS NULL begin --Fetch the existing date select @ConfigDate = convert(datetime, ConfiguredValue) from admin.Configuration where upper(ConfigurationFilter) = 'LogicalDate' --Increment it by 1 day set @LogicalDate = DATEADD(DAY,1,@ConfigDate) END SET @LogicalDate_Start = @LogicalDate SET @LogicalDate_End = @LogicalDate + 1 SELECT @LogicalDate as [LogicalDate] ,@LogicalDate_Start as [LogicalDate_Start] ,@LogicalDate_End as [LogicalDate_End] --Write the new @date to the table update admin.Configuration set ConfiguredValue = convert(datetime, @LogicalDate, 102) where upper(ConfigurationFilter) = 'LogicalDate' update admin.Configuration set ConfiguredValue = convert(datetime, @LogicalDate_Start, 102) where upper(ConfigurationFilter) = 'LogicalDate_Start' update admin.Configuration set ConfiguredValue = convert(datetime, @LogicalDate_End, 102) where upper(ConfigurationFilter) = 'LogicalDate_End' end [/size]--proc[/font]In short it [i]optionally [/i]recieves a QueryDate and then returns a LogicalDate, LogicalDate_Start, LogicalDate_End.Within SSIS I have used an SQL Task using an OLEDB connection with the parameters mapped to ordinals as shown below:[img]http://lh4.ggpht.com/fishbone46/SNjtiDvXYaI/AAAAAAAAACs/MGsDRat-ZlY/s912/sql_sp_problem.jpg[/img][img]http://lh6.ggpht.com/fishbone46/SNjtiUW4SnI/AAAAAAAAAC4/PUosW_UtOfs/s912/sql_sp_problem-parameters.jpg[/img]However, when I run the procedure I get the following error: [size="2"][font="Courier New"][Execute SQL Task] Error: Executing the query "exec [admin].[up_SetLogicalDate] null, ? output, ? output, ? output" failed with the following error: "Error HRESULT E_FAIL has been returned from a call to a COM component.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly. [/font][/size]I have tried the query string without the 'output' for each question mark, I have also tried using parameter names such as @LogicalDate (which I then mapped in the parameter mapping screen), but no success. I can't see what I've done wrong! I would be grateful for any help thanks.

The attempt to add a row to the Data Flow task buffer failed with error code 0xC0047020.

$
0
0

Hi,

I am trying to transfer the data from flat file to sql server.When I am running the package on local server(network server) it works fine.But when I user it to transfer the data to online server it starts and shows 2771 rows transfered and remains on that only. when i stop the execution I get the following errors:

[DTS.Pipeline] Error: The pipeline received a request to cancel and is shutting down.

[Loose Diamond File [1]] Error: The attempt to add a row to the Data Flow task buffer failed with error code 0xC0047020.

[DTS.Pipeline] Error: The PrimeOutput method on component "Loose Diamond File" (1) returned error code 0xC02020C4. The component returned a failure code when the pipeline engine called PrimeOutput(). The meaning of the failure code is defined by the component, but the error is fatal and the pipeline stopped executing.

[DTS.Pipeline] Error: Thread "SourceThread0" has exited with error code 0xC0047038.

Can any one help me to find what the problem is.

Thanks in advance.

Problem with sql statement in vb script using variables.

$
0
0
Hi all,I have been trying to resolve this for hours but failed, hence have to post here. I have this vbscript:[code="vb"]Private Function CheckNeedSendMail() As Integer Dim startFilterDate As DateTime Dim endFilterDate As DateTime endFilterDate = CType(Dts.Variables("StgEndDate").Value, DateTime) startFilterDate = endFilterDate.AddHours(-25) Dim strStart As String = startFilterDate.ToString() Dim strEnd As String = endFilterDate.ToString() Dim sqlConnStr As String = "Data Source=" & RdVarStr("DB_Server_Name") & ";Initial Catalog=" & RdVarStr("DB_Init_Cat") & ";Integrated Security=True;" Dim rowCounter As Integer Using sqlConn As New Data.SqlClient.SqlConnection(sqlConnStr) sqlConn.Open() Using sqlCmd As New Data.SqlClient.SqlCommand("SELECT Count(*) from RPT_TACS_ACCESS_DTL where EXIT_DT >= " & startFilterDate & " and EXIT_DT <= " & endFilterDate & " and WORKED_HRS >= (select VALUE from TERMACCESS_CONFIG where MODULE = 'SSIS TACSReport' and [KEY]= 'Var_WorkHrs_Limit') +':00'", sqlConn) Dim sqlDtReader As Data.SqlClient.SqlDataReader sqlDtReader = sqlCmd.ExecuteReader() While sqlDtReader.Read() rowCounter = sqlDtReader.GetInt32(0) End While sqlDtReader.Close() End Using End Using Return rowCounter End Function[/code]I keep hitting incorrect syntax near '7' and '+' when i dont even have this two value.... what went wrong?????

HTTP: GET from SSIS Script Task

$
0
0
Hi I need to make a HTTP GET from a script task, I'm not using not Activex Script because I' not that familiar with it.My test code is this:[code="other"] Dim strURL, oBrowser Dim serverPath Dim scriptPath serverPath = "http://www.hr-technologies.com/content/" scriptPath = "page.asp" strURL = serverPath & scriptPath oBrowser = CreateObject("Microsoft.XMLHTTP") oBrowser.Open("GET", strURL, False, "", "") oBrowser.send() msgbox(oBrowser.responsetext) oBrowser = Nothing Main = DTSTaskExecResult_Success[/code]But I'm getting an error on the CreateObject call, my guess is that I'm not including the correct refernces - but I dont know how to fix.Any help most welcome!ThanksAllen

SSIS & Environment Variables

$
0
0
I've been struggling w/ some quirky issues lately regarding use of environment variables with package configurations in my SSIS packages.When does a package read the value of an environment variable? We’ve got into a position where we need to regularly change the value of an env var. We were hoping a package references the value at runtime, but we thought we found that it was in fact when a package was deployed.To make it worse, we’re finding that this may not even be the case. When the value of an env var is changed, sometimes the package picks it up, sometimes not, even after a redeploy.This little problem is quite reproducible, and for the env var values that the change doesn't get picked up by the package, I've verified, as the service account that is running the packages, in the 3 places I know to look that the env value is in fact changed and correct in all three places it just isn't right in the SSIS package when it runs:Places I checked:1) My Computer>Properties>Advanced...2) DOS "SET" command3) The registry.Is anybody else experiencing similar problems with Environment Variables?Is there anywhere else I should be checking to see the current value of an env var?I've got a lot more detail I can provide, but I was trying to keep things breif.

Open SSIS package

$
0
0
Hi All,I need to modify an SSIS package. The package is all about getting excel files from ftp and loading the data in sql database. But, all I have is Windows Batch File, Integration Services package and Integration Services Configuration files. I don't have the solution file. How do I open this and see what is there in the package.Please help.

SSIS: A buffer failed while allocating 10485104 bytes; The system reports 98 percent memory loaded

$
0
0
I have a SSIS package and it has Fuzzy Lookup with reference table with almost 2 million records(The reference table will keep growing). When I run the SSIS package it gives me the following error message:A buffer failed while allocating 10485104 bytes; The system reports 98 percent memory loadedAny help will be appreciated.

Weird SSIS recordset issue

$
0
0
Hi all,I have a weird SSIS recordset issue. In my first data flow, I am summing and outputing some data (Only 2 colums, a count coulmn and a sum column) to a SSIS recordset. This is mainly for reuse purposes. In my second data flow task, I load the recordset into a .net datatable object and use the data in that task. In a third dataflow task when I attempt to use the data again (the same way) from the recordset object it crashes. I went back and checked the third data flow task and there were no records. So my question is this: can the SSIS recordset be used more than once? Does it get cleared after first use of it?Note: I have a work around in which I basically reloaded the recordset object with the same data after the first use of it in the second data flow task. But was just curious. If the recordset gets emptied after use.Thanks,Strick

SSIS XML Destination

$
0
0
Hi guys,Using SSIS pacakge i want to get the XML format dataset output from the OLEDB soure dataIs it possible? If it is then which control items/ Data flow component will work on this

Why Use SSIS?

$
0
0
Basically the issue is-If i run t-sql srcipts, to pull data from the staging area, remove duplicates, validate , data and perform lookups i can do it for each of the 6 channels that i pull data from in one day.However, replicating the same using SSIS packages takes about a day(at best!!) for [b]Each[/b] channel. I used these tools/packages to basically automate all my ETL/Data cleansing tasks, it works perfectly fine, but takes agonizingly long. What can i do to improve the performance? i mean i have done all the basic things like setting the cache levels when i do a lookup etc. Or should i just use my T-SQL scripts.

Migrating Informatica Packages to SSIS

$
0
0
Hi ,First come First i like to keep my request in front of you all. i got a new requirement its a upcoming project but the requirement is they ask me to migrate Informatica Packages in to SSIS . i'm having jus knowledge about Informatica but i never had a working experience . but i like to Know the steps involve in migrating from Informatica to SSIS . If, anybody helps me out of this situation i will be great thank full for them .If anybody came across these kind of scenarios or worked on Migration project pls help me out. Very Urgent!Regards,Sabarinathan

Unable to run my SSIS 2005 package using bat file...

$
0
0
Hi all,I had a simple batch file to run my ssis package. But i keep getting this error which i seriously dont uds why. I cross checks the name of my project and dtsx file name numerous time... This is the error:[code="sql"]Microsoft (R) SQL Server Execute Package UtilityVersion 9.00.4035.00 for 32-bitCopyright (C) Microsoft Corp 1984-2005. All rights reserved.Started: 2:20:42 PMCould not load package "\File System\TA_Report\TA" because of error 0x80070002.Description: Unable to find the specified file.Source: MsDtsSrvrStarted: 2:20:42 PMFinished: 2:20:42 PMElapsed: 0.032 seconds[/code]This is my bat file:[code="sql"]@echo off&SETLOCALrem set project && package name, ssis server IPset ssis_project=TA_Reportset ssis_package=TAset ssis_server=localhostrem set command name and log pathset run_ssis_cmd=dtexecset run_log_dir=D:\EW\TARpt\Logsrem set parameterset para=%1if "%para%"=="" ( set para=Default)rem set up log file suffixFOR /f "tokens=1-4 delims=/-. " %%G IN ('date /t') DO (call :s_fixdate %%G %%H %%I %%J)call :s_date_endif "%dd%" == "02" call :archive_enddel %run_log_dir%\%ssis_package%_log.txtecho Continue processecho .echo start to run %ssis_project%\%ssis_package%...%run_ssis_cmd% /DTS "\File System\%ssis_project%\%ssis_package%" /MAXCONCURRENT " -1 " /CHECKPOINTING OFF /REPORTING V /SET "\Package.Variables[User::Exec_Dt].Properties[Value];%para%"> %run_log_dir%\%ssis_package%_%log_suffix%.log"C:\Program Files\7-Zip\7z.exe" a %run_log_dir%\%ssis_package%_%log_suffix%.log.zip %run_log_dir%\%ssis_package%_%log_suffix%.logdel %run_log_dir%\%ssis_package%_%log_suffix%.loggoto :eof:s_fixdateecho in s_fixdateif "%1:~0,1%" GTR "9" shiftFOR /f "skip=1 tokens=2-4 delims=(-)" %%G IN ('echo.^|date') DO ( set %%G=%1&set %%H=%2&set %%I=%3)goto :eof:archive_endecho in archive_endecho Deleting old log files...cd %run_log_dir%echo del %run_log_dir%\archive\%ssis_package%_*.zipdel %run_log_dir%\archive\%ssis_package%_*.zipecho Moving last month log file to archive...echo move %run_log_dir%\%ssis_package%_*.zip archivemove %run_log_dir%\%ssis_package%_*.zip archiveecho Finish moving archive logs...goto :eof:s_date_endecho in s_date_endset yy=20%yy%FOR /f "tokens=*" %%G IN ('time/t') DO set _time=%%GSET _time=%_time:~0,2%%_time:~3,2%set log_suffix=%yy:~-4%%mm%%dd%rem echo %log_suffix%goto :eofENDLOCAL[/code]Whats wrong? Someone please help me. I read the other similar post and that guy problem is spaces problem...I dk if mine is the same but i tried renaming my files... still the same
Viewing all 1193 articles
Browse latest View live


Latest Images