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

SSIS Development SQL 2014

$
0
0

I've searched and read that SQL Data Tools is gone in SQL 2014. It seems as though it's been replaced, and is currently pulled, by a plugin for VS2013.

My question is this; is SQL Server 2014 not a complete product any longer?  I don't have VS 2013, so what am I supposed to do?  I need to develop/modify my SSIS packages and we're about to migrate to SQL 2014.  I can't believe all the tools I need no longer come with the install of SQL 2014 - this is extremely disappointing.

Thanks in advance


André


while editing the columns in ADo net source not refresh the columns

$
0
0

Hi,

When i am editing the columns in the adonetsource can't able to edit it.

EG:

id       name     sal are the available columns

select id, 'name' as ename,sal from emp.

I Edited this query as :

select  id, 'empname' as ename,sal from emp

It won't affect in the source. & how to change the query using expression. in adonetsource there is no data access mode as from varible.   pls help on it.

Thanks

Telling SSIS how to interpret a date from a file

$
0
0

Hi Everyone.

I'm using SSIS to read a delimited file. The file I'm reading has dates in different formats in different columns. Unfortunately, some columns have the dates with only 2 digits for the year, and this, in some columns, makes SSIS take a bad guess at the date format so that on some values, the year is interpreted as the dd rather than yy and vice versa.

Is it possible in SSIS to specify, per column of the source text file, the format of expected date, similar to the "104" in a TSQL command like CONVERT(datetime, '24.04.2012', 104)?

It seems like all I can do is say that it's a "db_date" or "date" without any qualifier.

Thanks in advance


Unable to access the failure reason inside an SSIS flow, when using DQS Composite domains as part of an SSIS DQS Ceansing step.

$
0
0

Hi,

I have followed the  discussions in the (now closed) post titled:

"Composite Domains in SSIS with spaces in the field"

re. how best to approach composite DQS domains when inside a SSIS flow.

I followed the approach recommended i.e.

" If you map (in SSIS) your 2 individual source fields to both the (DQS) domains in your (DQS)Composite Domain, your composite domain automatically participates in the cleansing activity."

In the example I have, there would be a number of different validation rules  , similiar to the rules in that post which were called 'Circle', 'Square', etc.,, associated with the Shapes&Sides CD.

What I haven't figured out , is how to know from the output of the (SSIS) DQS Cleansing step when I get an Invalid result

- which precise DQS rule (e.g.'Circle', 'Square'..etc) actually failed. ?

So for an input row (if we take the example from that post)  with a 'Shapes' value of 'Square', and a 'Sides' value of '3', I would like to get 'Failed Square' (Square being the DQS rule name) as the reason for failure, and to be able to see that from inside SSIS.

If I use the derived column approach (as discussed at the start of the above discussions) I am able to get this type of output by using the '...._Reason' DQS output corresponding to the derived column .

However I can't use the latter approach because of the issues with the derived column already highlighted in that post.

I am also able to get the failed rule displayed when working fully inside the DQS client (no derived columns of course, just working with the DQS Composite Domains).                                                                                                                

However , as I say, I don't seem to be able to find out how to get it (the failed rule) when I map the individual cols separately to the individual domains.                                                                                             

I do get an SSIS overall 'Record Status' = 'Invalid' but I dont know which rule failed.                                                                                                                                                                                         

I hope I am missing something, as otherwise I don't see how a user is going to figure out why the record is 'Invalid', given that there would typically be multiple rules, any one of which could be causing the record's 'Invalid' status.                                                                                            

Any help would be much appreciated.

Thanks,

Martin


Replacing @@ERROR Based Error Handling With Structured Exception Handling

$
0
0

Could please any one explain 

Thanks

Text Qualifier -- Loading data from flatfile --Error if there are 2 text qualifiers at the same place

$
0
0

Hello,

The ssis package uses a flat file connection manager in which I have used a text qualifier " which is double quotes.
The column separator is set to be | which is pipe.

I am having the data as shown below and I am getting the below error.

Column data.

|"\"Anil& kumar, SE.\""|

Error:

Please suggest

Thanks,

Anilkumar

Dtexec Code 0xC202009 Description SSIS Error code DTS_E_OLEDBERROR code 0x80040E37

$
0
0

SQL Server 2012, W2008 Server SP2.

Importing Excel file into SQL Server tables

Any ideas??

Import and Export Data (32-bit) Problem

$
0
0

I'm trying to import a FoxPro table into SQL Server 2012 using 'Import and Export Data (32-bit)' but when I select the FoxPro OLE DB driver as my data source and click on properties, I get the following message:

    An error occurred which the SQL Server Integration Services Wizard was not prepared to handle.

    Additional information:

    External component has thrown an exception. (Interop.MSDASC)

All the other OLE DB drivers appear to work and I've tried reinstalling the FoxPro OLE DB driver (vfpoledb.dll) but that didn't help.

Any suggestions?


how do i put this into a vaiable expression

$
0
0

I am creating a varaible and putting the syntax below into an expression using the property window  it so I can use the table or view from a variable but it gives me the following error.

syntax.

SELECT 
       [BATCH_AGENCY]
      ,[BATCH_DATE]
      ,[BATCH_TYPE]
      ,[BATCH_NO]
      ,[DOC_INDEX]
      ,[LINE_NO]
      ,[FUND_SPLT_SEQ_NO]
      ,[DUP_REC_IND]
      ,[RECORD_NO]
      ,[FISCAL_MONTH]
      ,[TRANS_CODE]
      ,[MODIFIER_IND]
      ,f.[FISCAL_YEAR]
      ,f.[AGENCY]
      ,[CHRGE_UNIT]
      ,f.[EA] 
      ,f.[SUBJOB]
      ,[PROGRAM]
      ,[ELEMENT]
      ,[COMPONENT]
      ,[TASK]
      ,[APPN_SYMBOL]
      ,[FUND_NUMBER]
      ,[FUND_DETAIL]
      ,[FUND_SOURCE]
      ,[CONTRIBUTOR]
      ,[AGREEMENT_NO]
      ,[AGREEMENT_SFX]
      ,[REFERENCE_CODE]
      ,[OBJ_DETL]
      ,[ACTIVITY]
      ,[REVENUE_SOURCE]
      ,[AGENCY_SOURCE]
      ,f.[OPERATOR]
      ,f.[AUTHORIZER]
      ,[TERMINAL_ID]
      ,[VENDOR_NO]
      ,[VENDOR_SFX]
      ,[INVOICE_NO]
      ,[DOCUMENT_DATE]
      ,[CUR_DOC_NO]
      ,[CUR_DOC_SFX]
      ,[REF_DOC_NO]
      ,[REF_DOC_SFX]
      ,[CHECK_NO]
      ,[STATE_FORCE_ORDER]
      ,[VENDOR_NAME]
      ,[PROCESS_DATE]
      ,[D43_EA_TYPE]
      ,[D46_EA_STATUS]
      ,[TRANS_FISCAL_YEAR]
      ,[WARRANT_IND]
      ,f.[REL_EA]
      ,f.[REL_SUBJOB]
      ,f.[RESPONSIBLE_UNIT]
      ,[ET_EA_TYPE]
      ,[ET_EA_STATUS]
      ,[FLEET_CODE]
      ,f.[FUEL_TYPE]
      ,[AT_VENDOR_NO]
      ,[AT_VENDOR_SFX]
      ,[FED_FUND]
      ,[FED_RD_SYS_ID]
      ,[FED_PROJ_ID]
      ,[FED_CATLG_NO]
      ,[ORG_LEVEL]
      ,[ORG_LEVEL_1]
      ,[ORG_LEVEL_2]
      ,[ORG_LEVEL_3]
      ,[ORG_LEVEL_4]
      ,[ORG_LEVEL_5]
      ,f.[EA_FINAL_STAT]
      ,[CATEGORY]
      ,[OBJECT]
      ,[TRANSACTION_AMOUNT]
      ,[TRANSACTION_QTY]
      ,[EFFECTIVE_DATE]
      ,[REMIT_ADVICE_DESC]
      ,[FHWA_OVRIDE_IND]
      ,[DUE_DATE]
      ,[CHECK_WRTN_DATE]
      ,[RATE_OBJ_DETL]
      ,[AGREEMENT_TYPE]
      ,[BILL_METH_IND]
      ,[ENACT_YEAR]
      ,[ABIS_BDGT_ACCT_ORG]
      ,[SFMS_CASH_FUND]
      ,f.[ITEM_CODE]
      ,f.[FED_AID_STATUS]
      ,[MMS_ROAD_CLASS]

      ,[UNIT_OF_MEASURE]
      ,[COUNTY]
      ,[STATE_ROUTE]
      ,[FHWA_CLASS_CODE]
      ,[VENDOR_TYPE]
      ,[VENDOR_STATE]
      ,[AGENCY_STATE_CODE]
      ,[SFR_OBJ_ID]
      ,[SFR_ORG_ID]
      ,[FUND_TYPE]
      ,[SFR_SOURCE_ACCT_ID]
      ,[BANK_ACCOUNT_NO]
      ,[RESP_UNIT_LEVL_1]
      ,[RESP_UNIT_LEVL_2]
      ,[RESP_UNIT_LEVL_3]
      ,[RESP_UNIT_LEVL_4]
      ,[RESP_UNIT_LEVL_5]
      ,[CONTRACT_NO]
      ,[CONTRACT_SFX]
      ,[LAST_UPDATE_DATE],
case 
when e.EA_STAT in ('E4', 'U4', 'P5', '02', '03', '04','B2','B3','B4','12') 
then CAST('PROJECT' AS VARCHAR(15)) 
else CAST('NON PROJECT' AS VARCHAR(15))  
end as EA_PROJECT_GROUP_DESC
FROM
	STG_FMPROD_V_AUDITTRAIL_BI_13 as f
	JOIN DW_FDI_OLAP.dbo.DIM_BIENNIUM as b
		ON b.fiscal_year = f.fiscal_year
		AND CAST(f.fiscal_month as tinyint) = b.fiscal_month_no
    JOIN (SELECT MAX(EA_SK) AS EA_SK, EA, SUBJOB, EA_AGY, EA_STAT FROM DW_FDI_OLAP.dbo.dim_EA GROUP BY EA, SUBJOB, EA_AGY, EA_STAT) e
        on f.EA = e.EA
		AND f.SUBJOB = e.SUBJOB
		AND f.AGENCY =  e.EA_AGY

error

Package migration from msdb to SSIS catalog

$
0
0

Hi,

I've been asked to create a process document for how to migrate SSIS packages (including configurations etc.) from the msdb to the SSIS catalog on 2012.

Is there a standard procedure for this or any best practices I should look at?

Thanks so much in advance!

Zoe

problems running pkg from dos - perhaps related to project params and conns

$
0
0

Hi.  We run 2012 enterprise and i am trying to run a pkg from the dos command prompt with the dtexec utility etc.  But the pkg was developed with project params and project conn managers. 

How do u run the pkg from dos and avoid the errors that complain about these params and conns not being known?

Questions About Script Task

$
0
0

I'm following the example here.

http://www.singhvikash.in/2013/05/ssis-how-to-loop-through-multiple-files.html

I think I have everything setup right, but something is not working here.  I followed all the steps, and for the scripting part, I did this:

Project > Add New Item > Class

I have a red squiggle lined under these two lines of code:

System.AddIn.AddIn

(int)ScriptResults.Success;

Here's an image.

I've done a bit of C# dev work, but not much really.  Also, I'm pretty new to SSIS.

Thanks, in advance, for the help.


Knowledge is the only thing that I can give you, and still retain, and we are both better off for it.

How To Use xp_cmdshell to Execute SSIS and Get Result ?

$
0
0

I'd like to know how I can execute SSIS via xp_cmdshell and get result which is calculated by SSIS ? The sample code I find is all about returning SSIS execution log (output).  My calculated result is 1~10 records per batch so I wonder if there is way to keep this results in memory, no need to store in physical table. 

Need your advice. Thank you!

Importingg Excel to DB using SSIS

$
0
0

excel source

I have the above excel source file format which I download from a third party system. I need to import data from this file into a table. As highlighted it has data for different program, I want to select all the rows for each program , and set the program name in table as that program for all the rows and insert into the table. Basically, select rows between each program.There is no fixed number of rows between 2 programs , it is random.

The table structure is

Program name,Applicant Name , Case Name, WMS Case Number ,CNNX Case Number,CNNX stage Type

How can I acheieve it using SSIS?

Execute Process task

$
0
0

Hi ,

I want to Update/ Insert  records in salesforce from my SQL Server DB.

XP_cmdshell and sql Agent is disable in my company.

we are third party tool DBAmp to insert and update records.

I have used below command

C:\Program Files\DBAmp\DBAmp.exeUPDATE IPfolio__Cost__c vdbi1dn199\IPREPOSID01 “IPREPO” SALESFORCE_DEVELOPMENT in Command Prompt.

In SSIS i want to use execute Process task , but don't lnow how to implement above code in SSIS ,as i am not aware of arguments of Process Task in SSIS.

Please Help...Urgently.

Thanks In advance. ;)


Long wait before package execution

$
0
0

Hello

I have problems sometimes with a package.

There is and SQL Agent job that starts a package (from a file system using cmd command). Usually job takes 8-10 minutes. But sometimes it get stuck for a long time (1+ hour).
DTexec process can be found with procmon, but it seems it just not doing anything (And package is not logging to file Start of the execution) After long wait it just runs a package quickly.

I've moved a package to SSIS catalog to try to get more detailed logging, but with no luck.

Job starts at 1 PM, package execution starts at 1:49 PM. Without any messages about the execution in SSISDB log.

First I've thought it might be long validation problem, but when package executes validation messages are there and they perform quick.

Regards,

Olegas

ssis convert between unicode & non-uncode string

$
0
0

i got the following error when i run the ssis.

Column "XXX" cannot convert between unicode and non-unicode string data types. 

but sometimes i can run successfully.

does the data casues this error or table column's data type problem?

why i can run successfully sometimes run failure?

Pass Input Parameter With Blank To SSIS Get Strange Result

$
0
0

Hi! I stuck for a while when executing SSIS from stored procedure with input parameter. My input value is not consistent with output one. If I pass value with blank , SSIS seems gets second part. For example , if I pass "CALL FROM SP", SSIS get"FROM" only. 

I use Execute SQL Task to store input parameter. Here is the SSIS snapshot.

And here is the sp snippet

DECLARE @Path VARCHAR(200),
@Cmd VARCHAR(4000),
@ReturnCode INT,
@QUERY_STRING VARCHAR(70),
@BATCH_NO VARCHAR(14)

SELECT @Path = 'xxxxxx'
SELECT @QUERY_STRING = 'CALL FROM SP'
--BatchNo = YYYYMMDDHHMMSS
SELECT @BATCH_NO = CONVERT(VARCHAR(10),GETDATE(),112) + REPLACE(CONVERT(VARCHAR(8),GETDATE(),108),':','') 


SELECT @Cmd = 'DTexec /FILE "' + @Path + 'Package1.dtsx" /MAXCONCURRENT 1 /CHECKPOINTING OFF /REPORTING EW ' + '/Decrypt ALCM '+ ' /SET \Package.Variables[User::BATCH_NO].Properties[Value];' + @BATCH_NO + ' /SET \Package.Variables[User::QUERY_STRING].Properties[Value];' + @QUERY_STRING

My test are

   input parameter write to TESTTB correctly ? any error?  
 execute SSIS in design mode CALL FROM SSIS YES 
 execute SSIS by sp CALL FROM SP NO Option "FROM" is not valid.
 execute SSIS by sp CALL_FROM_SP YES 


Anyone could give me some hint ? 

Thank you so much!!


with SSIS C# task how to verify if a dimension has data before running process update

$
0
0

Hi

I have the following code:

foreach (Dimension CommsDim in dbComms.Dimensions)
                   CommsDim.Process(ProcessType.ProcessUpdate);

It works fine if the dimensions have data in them, but if they are empty it fails.

How do I verify if the dimensions have data in order to decide if to run ProcessUpdate or ProcessFull

I could not find the correct propety or method.

SSIS ETL does not pick the file from Share point when it execute through SQL Agent job

$
0
0
I have created one SSIS packages, which pick the file from the Share point document library. its work successfully, once it execute through the VS project application. 

But when i create a job in SQL Server Agent for this package then it does not pick the file and job getting fail. 

Just for more update, SQL Server has been install in Cluster mode and using BIDS 2012 with SQl Server 2012.
Viewing all 24688 articles
Browse latest View live


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