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

Using output from Data Profiling task (other than Data Profile Viewer)

$
0
0

I would like to be able to use the output from the Data Profiler task as a report to deliver to some business power users who don't have access to the Data Profile Viewer application.  In addition, the Data Profile Viewer doesn't really let me highlight any findings such as oddities that I find, etc, to point out to the business.  Are there any other existing tools, report controls, SSRS options of any kind, etc that I can use to view the XML file other than just straight reviewing and parsing the XML data myself through C# or something?  I really have no interest in doing that!

Thank you!


Use of encriptSensitivewithUserKey

$
0
0

Hi,

     I have a question about encriptSensitivewithUserKey option of package. I have a package which is been developed by some other person, and encriptSensitivewithUserKey  option was selected. When I opened that package for execution,i got a validation error due to this option, so I have changed that to dosavesensitive option. So, how this option help us to protect the package? If other person can change the protection level and execute, what is the significance of this option? 

Email Task, Using Email Address from SQL Data and Adding a parametarised Reporting Services Report

$
0
0

I have the following Table In SQL

This is then used in Reporting Services as a report for each service

The Service parameter uses a lookup table so I can choose a service in the report e.g. ‘Service A’

Service

Date

File

School

Didn’t Import

Email To

Service A

02/07/2013

1111_ServiceA_Test.xls

1111

 

Service_A_Person@test.org

Service A

02/07/2013

1112_ServiceA_Test.doc

1112

 

Service_A_Person@test.org

Service A

02/07/2013

9999_ServiceA_Test.xls

9999

1

Service_A_Person@test.org

Service A

02/07/2013

1114_ServiceA_Test.xls

1114

 

Service_A_Person@test.org

Service A

02/07/2013

1115_ServiceA_Test.xls

1115

 

Service_A_Person@test.org

Service A

02/07/2013

1115_ServiceA_Test.xls

1115

 

Service_A_Person@test.org

Service B

02/07/2013

1115_ServiceB_Test.doc

1115

 

Service_B_Person@test.org

Service B

02/07/2013

1115_ServiceB_Test.mb

1115

 

Service_B_Person@test.org

Service B

02/07/2013

1116_ServiceB_Test.xls

1116

 

Service_B_Person@test.org

Service C

02/07/2013

1111_ServiceC_Test.pdf

1111

 

Service_C_Person@test.org

Service C

02/07/2013

1112_ServiceC_Test.xls

1112

 

Service_C_Person@test.org

Service C

02/07/2013

1119_ServiceC_Test.xls

1119

1

Service_C_Person@test.org

In Integration Services I want to send this report out in an Email to Each Service.

So in the mail Task  I will be setting up Email To as the email for each service (I don’t know how to do this)

The report will be within the body of the email and will be for one service only (Again I don’t know how to do this)

The Email task will probably be in a ForLoop but Im looking for any step by Step guides of incorporating a report with a parameter into separate emails using an Email within the data?

I imagine this is going to be quite complicated so Im a little worried at the moment

Debbie

Date columns changing using derived column task

$
0
0

Hello,

I want to convert my date column mm/dd/yyyy to mmddyyyy using derived column task. Can anyone please explain me steps?

Thanks in Advance.

How to characterize the import Action

$
0
0

In my database, lists are generally revised several times In order to update the database when a new revision is issued, all the imported data should be provided with a Revision Number and a Revision Type.

The Revision Number is the last one for the current data.

The Revision Type is a letter to characterize the import Action.

CREATION OF A NEW ELEMENT


**C**

DELETION OF AN EXISTING ELEMENT


**D**

MODIFICATION OF AN EXISTING ELEMENT


**M**

List of import file fields in excel is like below:

1- Revision Number (numeric)

2- Revision Type (text) ---"C" OR "M" OR "D"---

3- Item Number (text,PK)

4- Old Item Number (text) -- Only when Item Number has been modified—

5- Item Name (text)

6- Item Type Code (text)

Now I like to import this excel file to my table in  database but I have problems:

1- How I have to design my table in access, I must have the same fields of excel file also in table

2- How I have to manage these actions , for example some row in my excel file is for creating by "C" character, some rows are for modification of item number with "M" character and also some rows are for deleting item number by "D"

Please help what is the solution, I like to browse this excel file and then pressing import button on my form and data imported according to Revision Type

Data of my excel file is like below:

RevNO    Rev type    itemnO   olditemNO  item name   type 
1        C         A-1001                TEST1001    T1
1        C         A-1002               TEST1002      T2
2        M        B-001      A-001       TEST3       T3
1        D      A-100                   TEST4       T4
2        M      A-5000                TEST6000       T6

In the access table there are already below data:

RevNO   itemnO  old itemNO  item name    type code
  1     A-001               TEST1       T1
  1     A-5000              TEST5000    T5
  2     A-100               TEST4       T4

After import of excel file like data of access table was like below:

RevNO   itemnO  old itemNO  item name    type code

2          B-001            TEST3       T3
2         A-5000            TEST6000    T6
1         A-1001              TEST1001  T1
2          A-1002           TEST1002    T2

My questions: 1- How to import data according to revision type after pressing button on the form 2- How to browse excel file before pressing button.

SSIS Merge join component issue

$
0
0

Hi,

SSIS/SSDT 2012

I am issue with Merge join component (used as inner join.). My two tables are on diff server's, and I needed to join two tables. I am using SQL query in ole db sources and has ordered key columns in both queries. I have also set IsSorted to True on advanced editor page. My both columns are of uniqueidentifier data type. I am not getting any rows written to my final table.

In order to test, if I manually run queries on both server's SSMS, I do get result set based on inner join !!! Is this a bug in this component?


Thanks, hsbal

using config file for SSIS 2008 project

$
0
0

Hi ,

I have used data flowtask inside Foreach file enumerator & due to deployement i have enabled config file.
 So do i need to change connection string of foreach container as well as conn string of source file components? or just changing conn string of foreach comp is fine? i need to migrate to QAfrom Dev. I tried with using just Foreach file but no luck

Thanks..

copying Tables with SSIS in special cases

$
0
0

hi, I want to create an SSIS package with copies tables from one DB to another.

but there is special criteria which tells me when to copy.

1. table does not contain the field named 'dataareaid': complete table has to be copied

2 table contains field named 'dataareaid' : only rows with specific value in the 'dataareaid'-field have to be copied

How can I easily manage that


SSIS Master Package taking long duration / gap between two sub package execution.

$
0
0

Hi All,

I have a master package which runs other sub packages and its schedule to run in back end, in master package each Execute package task transfers control to other on "Success", we have used logging in each sub packages to report start time and end time of the package execution in sysssislog table.

The problem is if i query sysssislog table there is huge gap between end time of package A and start time of package B. I don't understand what is happening in between.

If i run the same in front end from IDE this doesn't happen at all, I don't understand how to debug this.

Please help me.

Regards,

Harshit Vasa

Email Task - Using a Record set to send emails to different email addresses. Can you also include an attachment specifically for this email

$
0
0

Hi I have (For example) an Object variable EmailHeaderRecordSet

And 3 variables:

Service String (Expression set to true)

Header string (Expression set to true)

Email string (Expression set to true)

Then I have a Data flow Task

SQL table

Service    Header                                              Email

'A' ,          'For Service A there are 3 files',       EmailA@Test.uk

'B' ,          'For Service B there are 10 files',       EmailB@Test.uk

'C',           'For Service C there are 2 files',       EmailC@Test.uk

Which is connected to a record Set.

In the record set the VariableName is set to EmailHeaderRecordSet

Input Columns, Service, Header and Email

And next comes a ForEach Loop Container containing an email task

For Each Loop The Enumerator is Foreach ADO Enumerator

The Ado Object Source Variable is EmailHeaderRecordSet

And the variable mappings Service 0, Header 1 and Email 2 (In the same order as the incoming columns)

And the Email Task

Expressions Subject Header

ToLine Email

This brings back emails for each service to the correct email address. However what I really want to do is include a table of the files sent.

I know I could add a File Attatchment but I dont know how to go about doing this.

I could have another SQL Table which could create a csv or something.... e.g.

Service FileName

A          Test1.xls

A         Test2.xls
A         Test3.xls                                                                                                                                                                  And I could use the Service to match to the other table. But Im clutching at straws here. There might even not be a way of doing this. Any help would be appreciated. Even if its to let me know what this cant be done. Debbie

Oracle Home not found.

$
0
0

HI All-

I'm getting the below error while trying to connect oracle database. I have installled oracle 11g client 64 bit.

Please help me

TITLE: Microsoft Visual Studio
------------------------------

Error at Package3 [Connection manager "Oracle Connector 1"]: Oracle Home not found.



------------------------------
ADDITIONAL INFORMATION:

Test connection failed

------------------------------

Error HRESULT E_FAIL has been returned from a call to a COM component. (Microsoft.SqlServer.DTSRuntimeWrap)

------------------------------

Error HRESULT E_FAIL has been returned from a call to a COM component. (Microsoft.SqlServer.DTSRuntimeWrap)

------------------------------
BUTTONS:

OK
------------------------------

Using SIS to move a file to an IP address

$
0
0

I have an SIS package that is running on a Cloud Server.

I have an IP address that I need to send the file to but when trying to setup the connection the connection manager won't accept it.

How can I configure the SIS package to send a file to a IP address

Thanks in advance for any suggestions

Wayne

How to check row wise all the columns are null or empty using conditional split in ssis

$
0
0

Hi,
i have 5 column in flaffile source.
all the columns are mandatory. so each and every column does not allow the empty or null values
if any column record is empty or null, that record is omitted.

how to implement this concept in conditional split

Regards,
Abdul Khadir

Script Task Error - Could not load file or Assembly

$
0
0

Hi,

I know there are a million threads just like this one, but I can't figure out what I am doing wrong even after double-checking all the advice out there.

I have a script task in an SSIS 2008R2 package which references a customer assembly.  The assembly is strong named and is installed in the GAC.  This runs fine in debug and it runs fine when I execute it via SQL agent locally.

However, once I deploy it to the dev server, it throws the above error.  I've reinstalled the dll to the GAC on the sever and I can see it when I browse to it.  However, it still will not run.

Any thoughts on what I am missing?

Mark

SSIS Service not installed

$
0
0

I have a SQL Server 2012 installation which appears to have Integration Services included - I can see it listed in the Installed SQL Server features discovery report. However, the service is not listed in SQL Server configuration manager or in services.msc. I have tried doing a repair install but to no avail.

Is there some way I can fix this without having to do a complete reinstall? 


The process could not be created for step 1 of job reason: %1 is not a valid Win32 application

$
0
0

Hi,

               We have an DTS package developed by some one else. When we execute it from Integration Server it executes. But when we schedule it from SQL agent Jobs. It gives above

Message
Executed as user: DNC_ERP\Administrator. The process could not be created for step 1 of job 0xA5C691E22515A14FB84166350A40BB15 (reason: %1 is not a valid Win32 application).  The step failed.

Thanks & Regards

Dnyati

 

SSIS 2012 - Configuration for connection managers

$
0
0

HI, All

I have a few project level connection managers and parameters which are used to configure connection strings those connection managers. After deployment the project to the server I see several atuomatically created parameters in the system table catalog.object_parameters for each connection manager:

CM.my connection.InitialCatalog

CM.my connecion.UserName

Cm.my connection.Password

Cm.my connection.ConnectionString

I dont want to configure all of them by creating many env variables - Connection String is enough for me, the problem here is that I cannot execute the package untill all of them defined as env variables (i am executing the package through SQL AGENT job). Is there any way to avoid defining all those attrubutes as env variables ?(i want to have only connectionString).

 



SSIS Package with a Task which launches a CMD.EXE command

$
0
0

Hello!
My 3rd Task is a SCript Task which calls a cmd.exe window with parms. If the processing is successful it will say at the end of the command window that it is successful (1). If it Fails , it will say that is Fails (0). Is there anyway to trap the Return Code of 0 or 1 in the command window. What is happening is that the if the Task fails I don't want the other sequential tasks to run , however, now when it fails all the following tasks are run which is corrupting my data. I hope I explaned this well enough.

Please help! I need to know if the command.exe appliction suceeds or fails so I can handle it in my SSIS Package.

Thanks!
Mike


Mike Kiser

Ole DB Command calling a store procedure with a GUID parameter (Error Converting String to Uniqueidentifier)

$
0
0

Hi,

I hope someone can help me on this, Ive been struggling for days and read a lot of forums.

I created a String Variable to use in a for each loop component and Derived Column to transform it first into (DT_STR,36,1252)@[User::ID_Provider] and then a second Derived Column to transform it to (DT_GUID)provider_id  with the value in the format I want I send it to an OLE DB Command to call to a store procedure. 

The store procedure receives the parameter as a varchar(36) (on the oledb command the @ external columns are declared as DT_STR.  On the Input Column the column is declared as DT_GUID (last derived column).   Inside the store procedure the varchar 36 parameter inserts into a table that has a uniqueidentifier column. 

When I run my package this is the error I get.  Ive tried a lot of thing but nothing seems to work.  Do you have an idea of what can I do to success on this task?

"Conversion failed when converting from a character string to uniqueidentifier.".

Thank you in advance !!!

Regards

Adriana

Specific Format to Flat File Destination

$
0
0

Hi,

Im new to formatting flat files destinations, any help is really appreciated.

I have a for each loop container that creates one flat file per certain filters so each iteration would have only one record. 

What I want to accomplish is to switch the column names or headers to be in the rows and then start showing the value of that column all this as a Flat File. 

Something like this:

FROM THIS:

Col 1     Col 2     Col 3    Col 4

   a          b            c         d

TO THIS:

Col 1:   a

Col2:    b

Col3:    c

Col4:    d

Can this type of formatting can be accomplished?

Thank you guys !

Regards,

Adriana

Viewing all 24688 articles
Browse latest View live


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