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

pass parameter date=currentdate in Sql agent job

$
0
0

hi everyone

i have ssis package that has parameter messagedate  as input.

i am making sql agent job in that i want  parameter MessageDate is autometilcally take getdate()


SSIS/SSRS in VS 2015

$
0
0

I have an SSIS and SSRS project created using VS 2013 and SQL Server 2012.

We have now upgraded to VS 2015 and SQL Server 2014.

When I open the project in VS I am prompted that this version of VS is unable to open the following project -The application which this project type is based on was not found.

Any ideas? Do I need to install an earlier version of VS - maybe 2013 or do I need 2012 to open and modify these projects?

execute Sql task Raising error storeprocedure no found

$
0
0

Hi All,

i had taken execute sql task with ADo.NET connection and execute store procedure with parameter .i had test connection its work good and SQLStament look like exec storeprocedurename.

input parameter are set on parameter. and i had checked parse query is also success.

then what should be reason for this error"0xC002F210 at Execute SQL Task, Execute SQL Task: Executing the query "exec [EtlProcessing].[EtlLoadConvictionsWithdrawls..." failed with the following error: "Could not find stored procedure ''.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly." 

SSIS Package failing with message DTSER_FAILURE (1).

$
0
0

I have a small SSIS package which contains a single script task. This package is running under proxy account which have access to databases this package is using. The main operation inside script task is we are connecting to Teradata environment and updating some record there. Few months back this package was running fine and suddenly it starts failing intermittently with Teradata connection time out issue so we increased the connection time out. After few days we observed that this package again start failing intermittently with below error.

Code: 0x00000001
Source: Email Sending For IDAccess
Description: Exception has
been thrown by the target of an invocation. End Error
DTExec: The package execution returned DTSER_FAILURE (1).
Started: 11:58:22 AM Finished: 11:59:50 AM
Elapsed: 88.531 seconds. The package execution failed. The step failed.                                                                                                Any idea or suggestion will be very helpful. For Teradata we are storing the connection string in sql database and using it.


can we extract all my DTS packages into *.bas with single script

$
0
0
can we extract all my DTS packages into *.bas with single script, i have to do this for legacy database sql server 2000.

Varun Jha

Connecting to Oracle database from SSIS 2010 previews and imports no rows

$
0
0

Hi all,

I have recently upgrade SSIS from 2005 to 2010 and migrated the solution to a new environment. I import data from Oracle tables to SQL 2012. All of the package work apart from one. This does not fail but no data can be previewed and no data is imported. I do now know why this one package is not working. I have recreated the connection but the same issue occurs. The same connection type, Microsoft OLE DB Provider for Oracle is being used for all packages. I have both the oracle 12c 32 and 64 bit clients installed. This is baffling and frustrating as this issue is holding me up. I would appreciate any suggestions. 

Thanks in advance,

Nathan

Script Task: Enable line numbers?

$
0
0

When you click Edit Script within a Scrip Task, the visual studio editor pops up, but line numbers are not enabled within the script.  How can I enable them?  In regular visual studio, it's under "Tools > Options > Text Editor > All Languages", but I don't see that option when editing a Script Task.

Thanks.

Call Oracle Package with Input/Output Parameters from ExecuteSQL task

$
0
0

I'm trying to call an Oracle Package from an ExecuteSQL task.

The Oracle package takes 3 parameters - all VARCHAR2.  Parameter 1 is OUTPUT and parameters 2 and 3 are INPUT.  The SQL Statement Source I'm using is: { CALL IFSAPP.intface_header_api.start_job( ?, ?, ?) }.  This all worked on the existing platform (SQL Server 2008R2/Microsoft OLEDB Provider for Oracle/Oracle 11g)

We are migrating the system to SQL Server 2012/Oracle Provider for OLEDB/Oracle 12c.  On the new platform, I continually get the error: ORA06502: PL/SQL: numeric or value error: character string buffer too small

I have not found any combination of command, expressions, etc. which work.  I have tried initialising the variable for the output parameter to 2000 bytes and 8000 bytes.  I have tried configuring the parameter length in the Task Editor.  I have tried using the OUTPUT keyword in the SQL.  In desperation, I have even tried making it INPUT instead of OUTPUT.  None of these measures have made any difference.

The package is in a proprietary database and I don't have access to the code.

Any suggestions?


SSIS Date format issue

$
0
0

Hi All,

I have most of the records in the format "2016-03-23 00:00:00.000" and there is no issue with this type of format.

But I have one input record "2016-03-23 22:34:10.587" in this format and because of  this my package is failing with the error.

[DC_All_Upd [656]] Error: The "component "DC_All_Upd" (656)" failed because truncation occurred, and the truncation row disposition on "output column "Var_LoadStartTimeStamp" (686)" specifies failure on truncation.

The Derived Transformation has column like 

ISNULL((DT_STR,20,1252)LoadStartTimeStamp) ? "" : SUBSTRING((DT_STR,20,1252)LoadStartTimeStamp,1,16)

The destination field in the target table has a datatype as Datetime.

When destination table field is Datetime, Input field is datetime then why my package is failing?


SSIS 2008: importing flat file with " text qualifier & empty fields

$
0
0

I am trying to import a file that looks like this (tab {t} separated):

"Name"{t}"Score"{t}"Manual score""John Doe"{t}"20"{t}"""Mike Rowe"{t}"25"{t}""

The problem is that when there is no score (and actually, every row ends with ""), the error

The column delimiter for column "Manual score" was not found.

is raised.

Other info:

  • Preview looks OK... It does show "" as the value for column Manual Score, but I don't use that column anyway.
  • I don't have control over the input... the column is there, and it always has the ""

Things I've tried:

  • Using alternative Data Flow Sources: Delimited File Reader (sample) and Delimited File Source (on CodePlex somewhere). The problem with those is that they are unable to provide me with the file name, which is critical. Some of the file name needs to be parsed and included in the destination.
  • Not setting the text qualifier, in which case my column names and values are enclosed in ", which I can deal with. However, the same error still comes back.
  • Changing the data type of the Manual Score column (or the length setting). Does not help.

I've read countless other posts on the subject, and it seems the only possible answer that the Flat File Source is essentially broken that way. (I've voted for 3 items on Connect that had some reference to this.)

I am really wondering if there is no workaround by now other than a script task... Is there another component that can handle it AND give me the file name?

TIA,

SA.

Why didn't all the rows in my data flow task get loaded to SQL Server?

$
0
0

I can't figure out where the missing 100,000 rows went.

The input text file is very large - 1.8 gigabytes with each row being about 4500 bytes.

I have been able to detect that the first 99,999 rows are not on my SQL Server table, perhaps the other missing row is the last one.

Has anyone seen this kind of problem? To the best of my knowledge, the source file is correct. I am treating the rows as fixed length in my data flow task.

Connecting to https://.app.box.com from SSIS and down files

$
0
0

Hi,

My vendor is using https://www.box.com/home/ customized for his company for uploading all his input files. Hence the source url for downloading the files will be like  https://<vendor>.app.box.com/Files.

Currently I am manually downloading the files from this url and then using in my ssis packages for my operations. I want to automate this process and I am looking for connecting App.box.com using SSIS and download automatically. But I have tried many ways and I am not able to achieve it till now. Many are suggesting to use WinScp or FileZilla for this. I have tried those also and still I am not able to achieve this. 

Can anyone help me to connect this server and download my files automatically using SSIS. Here file names in the server will be getting changed. Hence I cannot hard-code file names to download files. I want to download all the files within a folder.

Let me know if anyone have solution.

Thanks,

Rajesh S Hegde 

SSIS

$
0
0
I need to do a comparison of SSIS and other integration tools. With criteria such as scalability, monitoring, point or environment based, etc.  Does anyone know where I can find such a comparison?

Applying the column width changes best approach

$
0
0

Hi Experts,

We have a few changes in the source system.

The column widths are changed and the sizes are bigger in the new system.

I am just wondering if there is a best approach for applying these changes in the packages?

I am going to manually run the scripts to change the staging and the final DWH table column widths but not sure of implying the changes in SSIS packages.

I appreciate any help on this. Thanks in advance.

Regards,

Shyam.

SSIS framework

$
0
0

Can someone tell me what is SSIS framework or any link that can help me on the same?

Any Help Would be Highly appreciated!!


SSIS package for Table copy

$
0
0

Hi,

I wants to copy a table structure along with Data dynamically using SSIS 2012 from a DB server to another DB server. Server and Database exists physically. User would provide 5 parameters. Source Server name, Source DB name, source table Destination Server name, Destination DB name. I tried multiple ways but couldn't able to do this using SSIS. Please let me know solution for this.

Thanks,

Surendra


Package won't run in SSIS DB Catalog on different server accessing same files

$
0
0

Morning.

I am testing a piece of work currently, and the SSIS package reads a CSV file in a network location and processes the data to a SQL server.

I have run  the work in SSDT locally & this works fine.  I have deployed to the development environment and this runs fine also when run through the Intergration Services Catalog.  However when I deploy to out test server, when the package is executed  i get the following:

Process Questionnaires:Error: Flat File Source - Questionnaires failed the pre-execute phase and returned error code 0xC020200E.

The 2 environments use the same service account for SQL Server Agent, and they both try to get to the same file location.  Am I missing something obvious here?

Thanks in advance!

$xlnm #_filterdatabase sheet in excel source

$
0
0

I have bunch of sheets in excel file. when I am looping the sheets its picking "$xlnm #_filterdatabase" as excel source.

How can I ignore loading "$xlnm #_filterdatabase".

Thank you

Raj


Raj

Package Performance Issue

$
0
0

Hi All,

Let me describe the scenario-

I am running approx 60 packages  from a Master Package. The last one to run is a Fact Load package which load a fact table.

When i run the master package from SQL Agent job, all pkg run successfully but this package fails due to memory issue. I have done the change in the OLEDB destination in the package  by decreasing the commit size (Fast Load option). After that it runs successfully but only when the  source data is less. Otherwise it fails.

Any opinion on how to resolve it permanently.

Regards,

Avhilash

SSIS date format has changed in CSV file from source

$
0
0

When I run same query in SQL server data import and export wizard, it generates date in mm/dd/yyyy hh:mm:ss format in CSV file(as expected)

In SSIS Package,

when I use same query in SSIS package, OLEDB source Preview shows date format as expected (mm/dd/yyyy hh:mm:ss)

But Flat file destination  preview shows date format as  yyyy-mm-dd hh:mm:ss, CSV file contains this format only.

Please help me to resolve my issue

Query used:

DECLARE @start_date DATETIME
DECLARE @end_date DATETIME

SET @start_date = DATEADD(hour, 00,DATEDIFF(DAY, 1, GETDATE()))
set @end_date   = DATEADD(hour,23,DATEDIFF(DAY, 1, GETDATE()))
set @end_date   = DATEADD(MINUTE,59, @end_date)


SELECT CONCAT(CONVERT(VARCHAR(10), [CALL_START_DATETIME] , 101),' ',CONVERT(VARCHAR(10), [CALL_START_DATETIME] ,108)) AS [CALL_START_DATETIME]
      ,CONCAT(CONVERT(VARCHAR(10), [CALL_END_DATETIME] , 101),' ',CONVERT(VARCHAR(10), [CALL_END_DATETIME] ,108)) AS [CALL_END_DATETIME]
     
  FROM [TESTDB].[dbo].[TestTable]
  where CALL_START_DATETIME>=@start_date and CALL_END_DATETIME<= @end_date

Viewing all 24688 articles
Browse latest View live


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