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

Mail sending is failed in script task in ssis

$
0
0
Hi guys,

I have an issue in ssis script task. I have a script which sends the mail after completion of ETL.
It is giving the following error when it tries to send the mail in script task.

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Net.Mail.SmtpException: Failure sending mail. ---> System.Net.WebException: The remote name could not be resolved: 'smtp.gmail.com'

when we searched in the web some people are saying that it may be an issue of smtp server. so we have tried to ping the smtp.gmail.com. but when we try to ping smtp server from command prompt for the first time it is not pinging and giving the following error:

"Ping request could not find host smtp.gmail.com. Please check the name and try again."

If we again ping for the second time then it pinging without any loss (0% loss).

we uanble to find out why it is behaving like this.

Please help if anybody has any idea on this.

Thanks in advance.


Nagaraj


Issue with FlatFileDestination

$
0
0

Hi,

When i am trying to load data from SQL table to text file, a column which is having values like comments entered pushes the other column values because of its multi-lines values.

PFA screen shot below,

multi-line issue

Because of this I am not able to use that text file for loading to another table.

I tried some ways of changing the data type to make it aligned to that column only. But nothing is helping.

Please advise how to handle such columns?

Thank you!


--------------------------- Radhai Krish | Golden Age is no more far | --------------------------

how to load csv file to table using ssis

$
0
0

Hi,

i have loaded the csv file to table using ssis, it is working file but record is mismatch.

source data :

col1 col2 col3 col4

aa, bb, this is sample,data for the details, this is 

column delimiter - comma

col3 - record contains comma. so col3 record after the comma is added with the as col4

i need the col3 record with comma.

so what is the column delimiter will use ?

Regards,

abdul Khadir

Date conversion in ssis

$
0
0

Hi Guys

I have a date time column in source(oracle) i am pulling them into sql server staging area.i can able to pull all dates fine

but a date only 31-jan-2004 its become like and its throwing into error rows.

it has only one row.

can any body tell me how to fix this

Thanks in Advance i am in urgency


ADKR

Parallel Script Tasks Using Same Connection Manager are Corrupted

$
0
0

We're seeing a bizarre issues in our SSIS package.  We are using an HTTP connection manager in multiple script tasks running in parallel and the connections seem to be getting mismatched.  Here's the basic flow.

We have 6 containers that run in parallel.  Each container does the exact same work (they are copy/pasted) except we change the value of a variable representing the report to generate that is scoped to each container.  The container runs a query (using a SQL connection manager defined in the package designer) and then uses a foreach container to enumerate the rows.  The variables inside the foreach container are scoped to it so we don't have a scoping issue.  Within the loop we write the variable values to a log table, use a script task to generate an SSRS report and then write all the data and the report to an external system.  Everything is working fine except for the generation of the report.

Within the report script block we acquire a connection to a HTTP connection manager that is defined in the package (just like the SQL connection manager).  We then create a new HttpClientConnection with it and update the URL to include the necessary parameters that SSRS needs to generate the report.  We then download the results and return it back to the container.  Here's the basic code we use

var httpConn = Dts.Connections["ReportServerUrl"];
var clientConn = new HttpClientConnection(httpConn.AcquireConnection(null));
var uri = new UriBuilder(clientConn.ServerURL) { Query = reportQueryInfo };
clientConn.ServerURL = uri.Uri.ToString();
clientConn.DownloadData();

The issue we are seeing is that when 2 of the scripts run at the same time the ServerURLs are getting cross wired such that we see 2 of the same report being requested rather than 1 of each type that we had requested (based upon the SSRS execution logs).  It's almost like we are getting a shared HTTP client connection.  Provided the scripts don't run at the same time everything works correctly.  We are confident our variables are set correctly because we are storing them both before and after in external tables and they are always correct.  The URL calculation logic is also correct because this problem only occurs when 2 requests are sent in parallel.

What am I missing here?

Michael Taylor
http://blogs.msmvps.com/p3net

Script Component to split '|' pipe separated values to different columns

$
0
0

Hello All, 

Thanks for reading this out.

I have a input column having possible values like

NULL

100|1.2|250|1.0|500|0.80|

10|1.5|50|1.4|100|1.1|150|1.0|200|1.8|

10|1.5|50|1.4|100|1.1|150|1.0|200|0.8|250|0.6|

so bottom line is I can have null value or can have many, its more like a key value pair, so it will always be even. but it always ends with a pipe.

What a I want is all keys in key1, key2, key3, key4, key5 and so on and same with the values.

So any help on this would be great. Thanks again!

Need to convert DTS packages to SQL Server 2012 environment.

$
0
0

Hi Friends,

As Part of the Project Requirement,we need to convert DTS packages to SQL Server 2012 environment.

Please sugest me best approach.

Thanks

Facing NULL value for first Empty 8 records in Excel while Import Excel to SQL Database by Using SSIS

$
0
0

While Importing Excel to SQL Database Table by using SSIS Package

Excel One Column ( first 8 Records had empty ) had  Data Type like below mentioned

General

General

General

NUmeric

NUmeric

NUmeric

NUmeric

NUmeric

NUmeric

text

Text

 Records like in see in Image


So that column,

Case 1).I had done Text to Column in Excel -Data< Text To column/ Even by VBA MACRO Code , but  It has not converted to text

Case 2).So again I have done by Right Click< Format Cells< Text<then it converted to Text.

but I am doing regularly by Case 1 (for Text To Column)and run the SSIS Package to Load in SQL Database Table

NOW My question if I do regularly Case 1 and Run Package then I faced the NULL value while data with First 8 rows had Empty...i.e, Case 1 Not worked

 How can I Do case 2 in  VBA Macro code/Automation part  or any other Resolution ?? (if possible other than(REGEDIT) TypeGuessrow=8 to 0)

Thanks

Madhu



Loading 1 TB of Data in MSSQL Server

$
0
0

Hi guys,

Please I need a little assistance from you. I am trying to load over 1TB data from an SQL table (SQL Server 2008) to another table in another server (MSQL Server 2012) using SSIS.

I started this load 5 days ago and so far I have not been able to load up to 10% of the data.

Please do you any faster approach i can use to load the data in a shortest possible time.

Thanks


me

create bat file

$
0
0
I'm trying to dynamically create a '.bat' file within SSIS and to execute it.    I know how to execute it, but would anyone have an example of how to create it?

How to delete a directory using SSIS 2012 file system task

$
0
0

Hi, I am using SSIS 2012 file system task to process and archive files into a directory these are many different .csv & .txt files we get daily, once processed files gets archived a processed_ 03162015 and lets say I have directories since start of march 2015 I would like to delete 2 or 3 oldest directories (i.e. processed_ 03012015, processed_ 03022015, processed_ 03032015) after each process. 

Thanks in advance.......


Ione

cannot open data file

$
0
0

i have sql server agent job where i am using proxy account.

now i have given local path to my file and give full control to that proxy sever, 

still i am getting erro cannot open data file.

what to do

Cannot Execute Package from Remote Integration Services Catalog involving double Hop

$
0
0

Hi All,

I have a SSIS 2012 package deployed to the Integration Services Catalog. I believe the package involves a double-hop authentication.  If I right click the package in the Integration Services Catalog (ISC) through SSMS on the server and select execute it fails with the 'Access Denied' error - Can't open the file in the shared location. However, when I try to call the package using a SQL Server agent job, it works perfectly fine.  

I understand that the Agent uses the service account while executing the package and when I manually execute the package through SSMS it uses my credentials. However, my credentials has full access to both the database server and the shared locations. In fact, if I execute the package within SQL Server Data tools using my credentials, the package runs fine without any issues.

Package Descriptions: The package simply copies a text file from one location to another.  I also tried creating another package in which data is extracted from one of the SQL server tables and is written to a text file and I encounter the same error.

My double hop scenario: (the one which FAILS)

Shared location in Server A

Catalog database is hosted on Server B

RDP to Server A, connect to SQL Server B using SSMS and execute the package from the Integration services catalog. – Fails with ‘Access Denied error’

Another scenario: (the one which SUCCEEDS)

Shared location in Server A

Catalog database is hosted on Server A

RDP to Server A, connect to SQL Server A using SSMS and execute the package from the Integration services catalog. – Bingo! Works fine.

Steps taken: 

* Enabled Kerberos authentication. Followed article: http://www.sqlscientist.com/2014/01/setup-kerberos-authentication-for-sql.html . However, it has no bearing as the package call through the SQL agent job works perfectly fine even without enabling Kerberos.

* The shared location has full control to everyone.

Any thoughts or insights would be really helpful? I have read articles, which suggests that SQL Server Integration Services does not support the delegation of credentials, sometimes referred to as a double hop. However, I fail to understand how it succeeds when I try to call the package through SQL server agent?

It makes me think if I should simply execute the package by doing an RDP to the server which also hosts the catalog database for manual execution of the packages.

Thanks for your time.



Send MAil Task - Invalid Email Address

$
0
0

Hi,

I have a requirement to send 1000+ emails using ssis package. I have been given with a CSV file which contains the file name and the email address. Using this file I have to attach the particular file and send the email to the corresponding email address.

My questions are:

1. If the email address is invalid, the package is getting failed, and not send mails to the rest of rows in CSV file. How to continue the package execution though it is failed for invalid email address.

2. What is the max limit of email address length in CSV file?

Many Thanks in advance.

How can I use UC4 instead of SSIS Master Package deployed using project deployment model?

$
0
0

Hi Folks,

My team is planning to opt UC4 for scheduling the SQL Jobs and I have to come up with a plan to integrate it. 
As of now, I do not have software licence in place to do some research. 

If you have worked on it, can you tell me that how can I schedule SSIS packages using UC4. 

Also, we are using SSIS project parameters (Project deployment Model). What kind of changes I have to make in SSIS packages to support UC4. Is it possible to pass parameters to SSIS package through UC4? If not, is there any alternativ?

Appreciate your help!

Gaurav Gupta


Microsoft (R) SQL Server Execute Package Utility Version 10.50.2500.0 for 64-bit Copyright (C) Microsoft Corporation 2010. All rights reserved. Argument "Data connector" for option "connection" is not valid. The command line parameters are invalid.

$
0
0

sql server:- 2008 r2 stardard edition

os:- 64

Package is password procted.

following is command line in ssis package .

/FILE "E:\PostgressToSql_IPMS\PostgressToSql_IPMS\PostgressToSql.dtsx"
 /DECRYPT  /CONNECTION "Server.user";"\"Data Source=server;
User ID=user;Provider=SQLOLEDB.1;Persist Security Info=True;
Application Name=SSIS-Package-{DD33AC67-4A45-40D6-AF70-4BBD421931C1}BPOSQLDB01\BPOSQLDB01.log4BPO;
Auto Translate=False;\"" /CONNECTION "server.conn 1";
"\"Data Source=server;User ID=log4BPO;Initial Catalog=edb1;
Provider=SQLOLEDB.1;Persist Security Info=True;Auto Translate=False;
Application Name=SSIS-Package-{665E3825-6AFC-4DD3-ABC8-50B5F0F18EEB}server.conn 1;
\"" /CHECKPOINTING OFF /REPORTING E


Need change something? Seperate configuaration file required ?

Argument "10.2.8.391435.Process" for option "connection" is not valid. The command line parameters are invalid.

$
0
0
Hello,
I am running a sql job which runs SSIs pakcage imported from Integration Service Sever..
it give me this error.... the server is :10.2.8.39 and the database is process
how can I fix It? 

SSIS package having password protected, is that required configuration file or it will run sql agent ?

$
0
0

mssql :- 2008

operating system:- 64 bit

Error: unable to retrieve column information from the data source

$
0
0
Hi,

I am trying to set up a data flow task. The source is "SQL Command" which is
a stored procedure. The proc has a few temp tables that it outputs the final
resultset from. When I hit preview in the ole db source editor, I see the
right output. When I select the "Columns" tab on the right, the "Available
External Column List" is empty. Why don't the column names appear? What is
the work around to get the column mappings to work b/w source and
destination in this scenario.
 
 
In DTS previously, you could "fool" the package by first compiling the
stored procedure with hardcoded column names and dummy values, creating and
saving the package and finally changing the procedure back to the actual
output. As long as the columns remained the same, all would work.
Thats not working for me in SSIS.

Thanks in advance.
Asim.

Execute package task to call external package

$
0
0

Hi all,

I'm developing a SSIS project, I need an "execute package task" to execute a packahe stored in the SSISDB catalog of a SQL Server 2014 Instance.

If I choose "External Reference" I can choose from "File System" and "SQL Server" but if I point to the last one I can't see package stored in the SSISDB, it seems to me that the new SSISDB catalog is not supported in Visual Stusio (I'm using VS 2013).

Hey Microsoft developers, when you are at the coffe break, please talk each other!!! 

Viewing all 24688 articles
Browse latest View live


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