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

How to generate a SSIS package by VS to load data from DB2 and output a CSV file?

$
0
0

I have a new assignment to build a SSIS package by Visual Studio to get data from DB2 and produce a CSV file, with which I am not familiar. Currently in SQL server we set up a link server to DB2 and can query the data from DB2.

Can someone give me some idea or sample how to start this SSIS package?


How to avoid package validation in package level?

$
0
0
Hi,
I have a ssis package with more than 20 tasks inside it, inclusive of 5 DFTs,For each loop containers, Execute SQL  tasks and so on.
When I open the package, its taking hell  a lot of time to get into ready postion, because of validating all the tasks.

Is there any option in the package level, where I can enable , so that , no validation happens and the package  opens very fast?

Nested "For Loop Container" causes the outer loop to end

$
0
0

I have an abstracted project consisting of a "For Loop Container" within another "For Loop Container". The definition of the outer loop is:

and the inner loop is:

The default value for @QuitLoop is False.

Within the inner loop I have a script task which reports the values of the @OuterLoop and @InnerLoop variables and I get 100 messages:

However, if I add a step in the script task which sets the @QuitLoop variable to True at a certain point:

if (iOuterLoop == 2 && iInnerLoop == 4)
{
    Variables vars = null;
    Dts.VariableDispenser.LockForWrite("User::QuitLoop");
    Dts.VariableDispenser.GetVariables(ref vars);
    vars["User::QuitLoop"].Value = true;
    vars.Unlock();
}

both loops stop running at this point:

However the @QuitLoop variable should only impact the inner loop. Why would the inner loop be causing the outer loop to stop early?

How to discover all the objects used in a SSIS project?

$
0
0

hi there,

i am just thinking in an automatic way to discover all the staging tables/general objects (udf, stored procedures) that a Integration Services projects is consuming...

I am including even objects that are not shared only created in the own SSIS project

In this concrete case I am talking about 5 .DTSX packages using a large number of tables and objects in a single database and we don't have documentation.

AS essentially every single .DTSX is a XML file, let me know your inputs

Interfacing SSIS with RabbitMQ - SSIS 2016-2017 or superior

$
0
0
Hi,
has anyone used SSIS 2016-2017 in order to interface it with RabbitMQ by source/destination components?
Any helps to me about this subject? Does it exist a (free) specific component to install?
Thanks

How to export share point page content dynamically to any file

$
0
0

Hello,

would be great if any one can help me to fetch the details automatically to any file from below share point url.

https://sharepoint.sun.com/sites/Orders/information/lists/order%20list%20tracker/current.aspx

in this page 3 tabs are there as below and i want to export data to file from current page only 

Please help me on this.

Thank You,

Avis



export multiple results from a single store procedure into multiple tabs of an excel sheet using SSIS

$
0
0

Hi,

I have a stored procedure which returns multiple result set(say, 5 results). All these 5 results are stored in a temporary table.

Now, I need to save these 5 result sets from these 5 temporary tables into 5 different tabs of a single excel file using SSIS.

can someone help me in this as I'm a beginner of SSIS.

Thanks in advance.

Kuttuse

How to extract all Database Objects from SSIS Packages 2014?

$
0
0

Hi All,

I am looking for options to extract Database Objects (Source Query or table/sp/view, Destination Query or table/sp/view, any lookup table, any Execute SQL Task query) from SSIS Packages 2014. 

This is need to prepare data dictionary or create Extraction flow. 

Would like to know has anyone tried this..? any free or paid tool in market to extract Database Objects from SSIS packages...?


Thanks Shiven:) If Answer is Helpful, Please Vote




SQL Job Agent Proxy Fails to Authenticate To Azure File Share

$
0
0

Current Setup

 

  • On-Prem SQL Server 2019 version 15.0.4033.1
  • Azure file Share StorageV2 (general purpose v2)
  • Created a network share on our local machines and SQL server using the following syntax - cmdkey /add:<yourstorageaccountname>.file.core.windows.net /user:AZURE\<yourstorageaccountname> /pass:<YourStorageAccountKeyWhichEndsIn>
  • Confirmed the mapped share was present in Credential Manager on the server and local machines and that we can access the share created above in Explorer window on both the local machines and SQL Server
  • Confirmed UNC pathing was used to reference the share i.e \\xxxxxxxx.file.core.windows.net\share-directory\ in the SSIS job

 

What we have confirmed works

 

  1. The job runs fine locally in Visual Studio
  2. The job runs fine when executing from SSISDB catalog from the server console when logged in as the proxy account defined for use within the SQL Job Agent. i.e Log onto the server using the domain account defined in the SQL Job agent proxy. In the SSISDB right click and execute.
  3. The job runs fine when logged into the server console as the proxy account and executing DTExec from the command line.

 

What is not working is when we try and execute the job via SQL Job Agent via proxy account. The job runs to completion but fails to see the files in the Azure file share. Similar problem is described in this article https://techcommunity.microsoft.com/t5/sql-server-support/ssis-packages-executed-through-sql-agent-job-scheduler-fails/ba-p/319047

 

Reading this article confirms our setup followed the same steps but a review of the process monitor trace described in the article reveals that the call from ISServerExec.exe to the share actually results in a “LOGON FAILURE” message. Does anyone know why the SQL Job Agent Proxy account can’t see /authenticate to the Azure file share when running within the SQL Agent Job?

ssis packages deployment error 2012 :Microsoft SQL Server, Error: 27203

$
0
0

HI .

  when i was  deploy the ssis packages in same server  vs 2012. am facing  this issue : and how can solve the  this issue . please provide me another way of deployment in ssis packages.  

Microsoft SQL ServerError27203,

Error: 0xC001000E at Package2: The connection "" is not found.

$
0
0
I meet the errors when I execute the ssis package.
Error: 0xC001000E at Package2: The connection "" is not found. This error is thrown by Connections collection when the specific connection element is not found.
Error: 0xC02020EA at Package2, Log provider "SSIS log provider for SQL Server": The connection manager "" is not found. A component failed to find the connection manager in the Connections collection.

Please help! -Script task Error - Exception has been thrown by the target of an invocation

$
0
0
Hi,
I have a ssis 2012 package. Inside it, there is a script task. The package works fine in dev through SQL Server agent job. When I tried to run in QA using sql agent job, I am getting error as 'Exception has been thrown by the target of an invocation'.

I am really confused because same package didn't throw any error in DEV. 

Can someone please help me on why the script task throws that error?

Reading Excel file in different cells

$
0
0

Good day,

i have to import data based on the header being in a cell and collumns or rowd next to it contains the value

its not a stright header file, please help. Date = 23/04/2020

How to - Write custom logs into text files, text files to be created daily and it's date as its file name.

$
0
0

Hi

I would like to know how can I write custom logs as in, writing my own text into a log file after every step in the package is completed. Say, if the connection is successful, there should be message such as "Connection Successful" written to the text file. How do get the package to detect the date and create each log file daily. The package will be run every 3 minutes, so I would need the text file to be appended and if it's a new day, a new text file should be created. 

Does sqlserveragent account needs full control on a fileshare to modify a excel ?

$
0
0

I have a SSIS package which formats data using c# code in ssis script task .I can run it using sqlserveragent account which hasfull control permissions on the file share folder in DEV but in QA when I try to run I get error innvocation error at c#\script task.

The sqlserveragent account has modify permissions set on the file share folder in QA 

The flow of ssis package is as follows.

Prep data and dump it in a sql table and then use the table to write data in excel over a oledb connection . Once the data write is done format using c# /script task . 

SSIS 2014 and SQL server 2014.

Excel format- .xls






SSIS google-bigquery Simba ODBC - two scenarios

$
0
0

SSIS ODBC source will show preview of the first 200 row for both scenarios. But it will pull in Columns for only scenario one NOT scenario two. It seems caused by metadata confusion of the query output. Please help.

Google BigQuery Scenarios one:

 

WITH Example as

(

  select 5 as x, 'foo' as y

  union all

  select 6 as x, 'bar' as y

)

 

SELECT * FROM Example;

Google BigQuery Scenarios two:

 

CREATE TEMP TABLE Example

(

 x INT64,

 y STRING

);

 

INSERT INTO Example

VALUES (5, 'foo');

 

INSERT INTO Example

VALUES (6, 'bar');

 

SELECT * FROM Example;



Error: SSIS Runtime Object could not be created.

$
0
0

I am using SQL Server 2005 Version  9.00.1399.06 (Intel X86).

Whether I try to start a new Integration Services project in Visual Studio or try to import data into a database I receive the following error: 

SSIS Runtime Object could not be created.  Verify the DTS.dll is available and registered.   The wizard can not continue and will terminate.

Unable to cast COM of type 'Microsoft.SqlServer.DTS.Runtime.Wrapper.PackageNeutralClass' to interface type
'Microsoft .SqlServer.DTS.Runtime.Wrapper.IDTSContainer90'
This operation failed because the QueryInterface call on the COM component for the interface failed due to the following error:  Library not registered.  (Exception from HRESULT:  0X80028010) (TYPE_E_LIBNOTREGISTERED)).

I have no idea why I am getting this error and would appreciate any help.  I'm sure some of you SQL Server Gurus will know right away.

 

 

Load List of users and UserGorups from AD into SQL Server table from SSIS

$
0
0

Hi Everyone,

Can you please help in the below situation.

I am trying to implement the Dynamic Role based security in the Tabular model by getting the list of users and AD groups from Active directory , load to SQL table and use this in the model for the RBAC.

I found couple of options to access AD with LADP but this is not working from SSIS as expected. I cant create any linked services or use any external components to achieve this because of the restrictions. I prefer to use existing options from SSIS. Please can you suggest the best way to get the details to a table from SSIS.

Also, How can we see the LDAP is running or not.

I have tried SELECT cn FROM 'LDAP://xx.dir.net' WHERE objectClass='User', this is not working from SSIS execute SQL task.

I am running SSIS from Azure VM. (windows server 2012 R2).

Thanks in advance.

error in download json from api - System.Net.WebException: 'The request was aborted: Could not create SSL/TLS secure channel.'

$
0
0

Hi All,

i'm trying to get data from rest api with token with "script component" in ssis.

 when the code is reaching the part of   return client.DownloadString(downloadURL) it fails

and return the error: System.Net.WebException: 'The request was aborted: Could not create SSL/TLS secure channel.'

this is what i'm getting in the script component: runtime error:

   at System.Net.WebClient.DownloadDataInternal(Uri address, WebRequest& request)
   at System.Net.WebClient.DownloadString(Uri address)
   at System.Net.WebClient.DownloadString(String address)
   at ScriptMain.DownloadJson(String downloadURL) in c:\Users\320049665\AppData\Local\Temp\Vsta\624378d242724fcc9e5bf1dbf2294601\main.cs:line 26
   at ScriptMain.PreExecute() in c:\Users\320049665\AppData\Local\Temp\Vsta\624378d242724fcc9e5bf1dbf2294601\main.cs:line 17
   at Microsoft.SqlServer.Dts.Pipeline.ScriptComponentHost.PreExecute()

this is the code:

using System;
using System.Net;
using System.Collections.Generic;
using System.Web.Script.Serialization;

[Microsoft.SqlServer.Dts.Pipeline.SSISScriptComponentEntryPointAttribute]
public class ScriptMain : UserComponent
{
    string json;

    public override void PreExecute()
    {
        base.PreExecute();
        string url = "https://www.xxx?Authrization=Bearer eyJhbGciOiJIUzxxxv4_NP7wg";
        json = DownloadJson(url);
    }

}

    public static string DownloadJson(string downloadURL)
    {
        using (WebClient client = new WebClient())
        {
            return client.DownloadString(downloadURL);
        }
    }

please help

how do run “bteq” script in command prompt using "ssis"?

$
0
0
how do run “bteq” script in command prompt using "ssis"?
Viewing all 24688 articles
Browse latest View live


Latest Images

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