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

Error trying to make an SSIS package use an encrypted connection

$
0
0

Hi

We are trying to make an encrypted connection (for traffic that goes between two domains).

1) on a SQL server on domain 1 (where the data lives), we have configured a SQL instance to use a certificate (using SQL config manager etc)/ Force encryption is still set to False (as we dont want all connections to be encrypted)

2) on domain 2, in data tools, I have created a package - with an OLEDB datasource, that uses a connection manager.

This connection manager has two properties:

Use Encryption for Data and Trust Server Certificate.

If I try Use Encryption for Data = TRUE, and Trust Server Certificate = True

- then the connection works (as the client (data tools) is being forced to "blindly" trust the domain 1 server cert. This is as expected.

However, If I try Use Encryption for Data = TRUE, and Trust Server Certificate = False - then the connection fails - I get an error message saying

“Test connection failed because of an error in initializing provider. Client unable to establish connection SSL provider: The certificate chain was issued by an authority that is not trusted”

But we want to use this combination  - and I am told that the relevant intermidate certifcates (from our PKI infrastrucutre) have been installed on both the server and client machine (and ditto for the server where the SSIS package will be run from.

Can anyone see anything  wrong ?

Is there any way to show where the certificate chain is breaking down ?

Thanks

G

If its relevant, in SQL config manager, network config, protocols for MSSQLSERVER, only Shared Memory and TCP/IP are enabled.



manager

$
0
0
Is there a ssis oledb deiver for ibm ims

SSIS All Execution Report #Error

$
0
0

Hello community,

I was troubleshooting some issues in a SSIS package in SQL Server 2016, but when I open the All Execution Report, it show me the following error on the report:



Does somebody know why this is happening and how to fix the issue, sometimes I just wait or close the SSMS, and then everything starts working as usual, but I would like to have more information about this.

Regards,

Active directory and SQL join

$
0
0

Hi,

Please refer to the link below for the question as I have cross posted this in other c# platform.

https://social.msdn.microsoft.com/Forums/en-US/11c46c1d-6ee2-422d-a178-4d2149f78266/query-ad-for-user-info-and-join-with-sql-table?forum=csharpgeneral

Thanks!

Copy User-defined Table Types with Transfer SQL Server Objects Task SSIS

$
0
0

Hello,

It's possible to copy user-defined table types with Transfer SQL Server Objects Task in SSIS. I tried, bu i can't find this option. I found User-defined Data Types and User-Defined Types but can't find Table types. 

If it is not possible, exists other way to copy this types?

SSIS Package fail on the server

$
0
0

Hello SSIS folks,

The SSIS package fails with the below error message

Information: The buffer manager failed a memory allocation call for 10431000 bytes, but was unable to swap out any buffers to relieve memory pressure. 54 buffers were considered and 15 were locked. Either not enough memory is available to the pipeline because not enough are installed, other processes were using it, or too many buffers are locked

it is SSIS 2012

Please let me the what is the best solution ?

Thanks

Mahesh

What parts of package are being processed right now?

$
0
0

For a report, I need to know what sub-components (parts of the control flow) of a SSIS package are being processed right now. I know about the catalog view catalog.executable_statistics, but it seems a record is added there after the execution of a given execution path is finished.

Is there a way to check what execution paths already entered pre-execute phase and not yet entered the post-execute phase? In other words, what is the package working on right now?

I prefer a solution that would work with the default logging level, if possible.

We use SQL server 2016 Enterprise edition.


Error: 0xC0024104 at Transfer Database Task 1: The Execute method on the task returned error code 0x80131500

$
0
0

I have two servers with the same SQL and Windows Version.

I'm trying to use a transfer Database Task, to copy a Database, but I got the error in the title.

I search in Google and discovered that this error is about an user configured. I deleted all users from this BD and got the same error.

I tryied to use this transfer with a blanck BD and function well. With a pupuled BD i get this error. Can you help me, please?


Populating Sharepoint list with data from SQL table

$
0
0
I have an OData source, but not a destination option in SSIS. I need to have a Sharepoint list get loaded nightly from a SQL database. Is SSIS the right tool to use? Can I do it directly from Sharepoint? What's the best way to go about this?

Exception from HRESULT: 0xC020801C getting this error while trying to execute programitically built SSIS package

$
0
0
Hi experts,


I'm developing a SSIS package programitically using C#.net, every thing is fine til i acquire the connection, i'm struck here, i'm getting COM exception i.e HRESULT: 0xC020801C, i went through many threads but i could not find any proper solution, so i'm posting this query again, i need the solution badly.

here goes my code...


PipeLineWrapper.CManagedComponentWrapper managedOleInstance = managedOleInstanceDestinationComponent;
            // setting the connection
            if (destinationComponent.RuntimeConnectionCollection.Count > 0)
            {   // If connection is necessary
                destinationComponent.RuntimeConnectionCollection[0].ConnectionManagerID =
                    destinationDatabaseConnectionManager.ID;
                destinationComponent.RuntimeConnectionCollection[0].ConnectionManager =
                                DtsConvert.ToConnectionManager90(destinationDatabaseConnectionManager);

            }
            // Set the custom properties.
            managedOleInstance.SetComponentProperty("AccessMode", 0);                  
            managedOleInstance.SetComponentProperty("AlwaysUseDefaultCodePage", false); 
            managedOleInstance.SetComponentProperty("DefaultCodePage", 1252);          
            managedOleInstance.SetComponentProperty("FastLoadKeepIdentity", false);    
            managedOleInstance.SetComponentProperty("FastLoadKeepNulls", false);
            managedOleInstance.SetComponentProperty("FastLoadMaxInsertCommitSize", 0);
            managedOleInstance.SetComponentProperty("FastLoadOptions", "TABLOCK,CHECK_CONSTRAINTS");
            managedOleInstance.SetComponentProperty("OpenRowset",
                string.Format("[{0}].[dbo].[{1}]", DatabaseName, TableName));

            // Now activate a connection and create the mappings
            // =========================================================================
            // Establish a connection
            managedOleInstance.AcquireConnections(null);         --------------------------> this is the point where i'm getting the exception
            // initialize the metadata
            managedOleInstance.ReinitializeMetaData();
            // Get the destination's default input and virtual input.
            PipeLineWrapper.IDTSInput90 input = destinationComponent.InputCollection[0];
            PipeLineWrapper.IDTSVirtualInput90 vInput = input.GetVirtualInput();


i'm using csv file as sourece and sql server as destination, sql server is running in the local system  here goes my connection string

Data Source=1DTWN0023;Initial Catalog=AdventureWorks;User ID=sa; Password=sa@123

would be very happy to see the response.. thanks in advance

Warm regards
--
murali

Dynamic connection mgr parameters between environments

$
0
0

Hi All,
Somewhat new to SSIS.  Read several posts on this topic, but still having connectivity issues after deploy to ISC(Rel environment) and subsequent job run.   Not sure I am architecting this solution properly though. 

Created a simple ssis pkg(reading from sql server table and writing to a flat file).   I'm using project level connection managers and project.params(created from connection manager). 

 
See attached images for details. 

  
Thoughts?    

Thx  Robert

Does SSIS use the SQL Server login BUILTIN\Distributed COM Users?

$
0
0

Our group User Access Management people are reviewing the set-up of our SQL Servers (2016). They want to remove the above login. I know nothing about it but one of my colleagues has said that he thinks it is used by SSIS. Is that correct? Is it always used or only for certain types of package?

I need to have more info to go back to the UAM people and tell them to leave it alone.


Nick Ryan MIS Programmer Analyst, ANZ Bank

SSIS Job which downloads files from websites using script task failing after few runs.

$
0
0
         

I have a weird issue when downloading some zip files from websites.

My solution is working fine when I run from Visual Studio manually.

When I deployed on to the server, it did not run.

Below is the error I am getting.



I RDP'ed on to the Server on which the jobs are scheduled and opened the browser, typed one ( any one out of many job ursl) URL Manually. After this was done, my Jobs( on SQL Server Agent )started running successfully.

But It ran successfully for few runs( I scheduled my job to run every 15 mins) and then stopped again with the same error message.



FYI... I am using a Proxy Account to run my Jobs on SQL Server Agent.

Below is the code I am using in Script Task to download my files.


        public void Main()

        {

            try

            {

                // TODO: Add your code here

                bool fireAgain = true;

                Dts.Events.FireInformation(0, "Download File", "Start downloading " + Dts.Variables["ServerURL"].Value.ToString(), string.Empty, 0, ref fireAgain);



                // Create a webclient to download a file

                WebClient mySSISWebClient = new WebClient();

                mySSISWebClient.Credentials = new System.Net.NetworkCredential(Dts.Variables["ServerUserName"].Value.ToString(), Dts.Variables["ServerPassword"].Value.ToString());

                mySSISWebClient.DownloadFile(Dts.Variables["ServerURL"].Value.ToString(), Dts.Connections["myProductFile"].ConnectionString);



                // Logging end of download

                Dts.Events.FireInformation(0, "Download File", "Finished downloading " + Dts.Connections["myProductFile"].ConnectionString, string.Empty, 0, ref fireAgain);



                // Quit Script Task succesful

                Dts.TaskResult = (int)ScriptResults.Success;

                //Dts.TaskResult = (int)ScriptResults.Success;

            }



            catch (Exception Ex)

            {

                Dts.Events.FireError(0, "ERROR", Ex.Message, null, 0);

                Dts.TaskResult = (int)ScriptResults.Failure;

            }

        }


Visual Studio 2010 - SSIS project Delay Notification and error

$
0
0

Hello, I created a new SSIS project in Visual Studio 2010 to publish on SQL server 2012.

When I double click on the Data Flow I'm getting this error back:

===================================

Value cannot be null.
Parameter name: obj (Microsoft Visual Studio)

------------------------------
Program Location:

   at Microsoft.Internal.VisualStudio.PlatformUI.Utilities.GetObjectType(IVsUIObject obj)
   at Microsoft.Internal.VisualStudio.PlatformUI.DataSource.SetValue(String name, Object value)
   at Microsoft.VisualStudio.PlatformUI.MainWindowDataSource.set_IsActive(Boolean value)
   at Microsoft.VisualStudio.PlatformUI.MainWindow.OnDeactivated(EventArgs e)
   at System.Windows.Window.HandleActivate(Boolean windowActivated)
   at System.Windows.Window.WmActivate(IntPtr wParam)
   at System.Windows.Window.WindowFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at System.Windows.Interop.HwndSource.PublicHooksFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

If I delete the package and start over It's the same.


Error when Download the wsdl file in Webservice Task

$
0
0

1. I create a new HTTPConnection, add the url https://myurl/service?wsdl provide the credential and add the certifcate. And click test connection. It said "Succefully".

2. I create a new Web Service Task. Choose the HTTPConnection, provide a empty wsdl file and set override to True, and then Click the download wsdl. Then I got an error.

How Can I solve it?

TITLE: Web Service Task
------------------------------

SSL certificate response obtained from the server was not valid. Cannot process the request.


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

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


How to connect to Adobe DB from SSIS version 2012

$
0
0

Hi All,

I have requirement to connect to Adobe Database and retrieve data for few tables using SQL Server Integration Services 2012 version. Could somebody please help on this.


SSIS Package Run only if SSMS start as Administrator

$
0
0

Hi All,

I have SQL server Management Studio (SSMS) 2016. I fi right click and run this as administrator and login to SSIS .

I can right click my packages deployed in SQL . I right click and run package and it run successfully

But if I double click on SSMS and login to integration services , I right click on my deployed packages and run but its gives error that Access is denied .

Same way If i drop and execute package task and try to run package its gives same error. but I can run the package in Visual studio.

How to send a dynamic files attachment by send mail task?

$
0
0

Hello All,

Hopefully someone out there will have an idea as this is driving me nuts.

I want to send a dynamic files in attachment  files ny send mail task that file name has change follow datetime.

I try to use the expression but I can't use it.

please tell me for this problem.

Any suggestions appreciated,

Thanks.

VB.NET Scripting handle JSON

$
0
0

Hi,

Please cannot any one help?

I am accessing an API to retrieve a SessionID.  The sessionID is then used as the key for further API calls.

The API returns JSON data.

I'm using Newtonsoft.Json to convert the Json string and my syntax seems correct, but the script always fails on the JsonConvert line.

I am using Visual Studio 2017 (v14), Target Framework is currently .Net 4.  This is an SSIS package caling a Script Task using MSVB 2010 Script (As below) to populate User Variable SessionID.

Imports System
Imports System.Data
Imports Microsoft.SqlServer.Dts.Runtime
Imports System.Net
Imports System.IO
Imports System.Text
Imports Newtonsoft.Json<Microsoft.SqlServer.Dts.Tasks.ScriptTask.SSISScriptTaskEntryPointAttribute()><System.CLSCompliantAttribute(False)>

Partial Public Class ScriptMain
    Inherits Microsoft.SqlServer.Dts.Tasks.ScriptTask.VSTARTScriptObjectModelBase

Public Sub Main()

        Dim Request As WebRequest = WebRequest.Create("[API web address here]")
        Request.Method = "GET"
        Request.ContentType = "application/x-www-form-urlencoded"

        Dim credidentials As String
        credidentials = ("[User Name]" + ":" + "[Password]")
        credidentials = Convert.ToBase64String(Encoding.Default.GetBytes(credidentials))

 Request.Proxy = Nothing
        Request.Headers.Add("Authorization", "Basic " + credidentials)

Dim Response As WebResponse = Request.GetResponse()

Dim ResponseStream As System.IO.Stream = Response.GetResponseStream()

Dim StreamReader As New System.IO.StreamReader(ResponseStream)
        Dim Result As String = StreamReader.ReadToEnd

'---------------This Line causes Failure
Dim Res As JSON_result = JsonConvert.DeserializeObject(Of JSON_result)(Result)
'---------------

Dts.Variables("User::SessionID").Value = Res.SessionID

Dts.TaskResult = ScriptResults.Success
    End Sub

    Public Class JSON_result
        Public Property SessionID As String
        Public Property UserName As String
        Public Property CanWrite As String
    End Class

End Class

The line "Dim Res As JSON_result = JsonConvert.DeserializeObject(Of JSON_result)(Result)" is causing failure.

If I set "User::SessionID" variable = to 'Result' (raw stream read) then I get the full Json response (ie, "{""SessionID"":""YSAkjkjdfg54546465a5asdf554aDdEfgg="",""UserName"":""Joe Bloggs"",""CanWrite"":false}")

Json Convert Error in SSIS package calling VB.Net script to access API.

$
0
0

Hi,

Please cannot any one help?

I am accessing an API to retrieve a SessionID.  The sessionID is then used as the key for further API calls.

The API returns JSON data.

I'm using Newtonsoft.Json to convert the Json string and my syntax seems correct, but the script always fails on the JsonConvert line.

I am using Visual Studio 2017 (v14), Target Framework is currently .Net 4.  This is an SSIS package caling a Script Task using MSVB 2010 Script (As below) to populate User Variable SessionID.

Imports System
Imports System.Data
Imports Microsoft.SqlServer.Dts.Runtime
Imports System.Net
Imports System.IO
Imports System.Text
Imports Newtonsoft.Json<Microsoft.SqlServer.Dts.Tasks.ScriptTask.SSISScriptTaskEntryPointAttribute()><System.CLSCompliantAttribute(False)>

Partial Public Class ScriptMain
    Inherits Microsoft.SqlServer.Dts.Tasks.ScriptTask.VSTARTScriptObjectModelBase

Public Sub Main()

        Dim Request As WebRequest = WebRequest.Create("[API web address here]")
        Request.Method = "GET"
        Request.ContentType = "application/x-www-form-urlencoded"

        Dim credidentials As String
        credidentials = ("[User Name]" + ":" + "[Password]")
        credidentials = Convert.ToBase64String(Encoding.Default.GetBytes(credidentials))

 Request.Proxy = Nothing
        Request.Headers.Add("Authorization", "Basic " + credidentials)

Dim Response As WebResponse = Request.GetResponse()

Dim ResponseStream As System.IO.Stream = Response.GetResponseStream()

Dim StreamReader As New System.IO.StreamReader(ResponseStream)
        Dim Result As String = StreamReader.ReadToEnd

'---------------This Line causes Failure
Dim Res As JSON_result = JsonConvert.DeserializeObject(Of JSON_result)(Result)
'---------------

Dts.Variables("User::SessionID").Value = Res.SessionID

Dts.TaskResult = ScriptResults.Success
    End Sub

    Public Class JSON_result
        Public Property SessionID As String
        Public Property UserName As String
        Public Property CanWrite As String
    End Class

End Class

The line "Dim Res As JSON_result = JsonConvert.DeserializeObject(Of JSON_result)(Result)" is causing failure.

If I set "User::SessionID" variable = to 'Result' (raw stream read) then I get the full Json response (ie, "{""SessionID"":""YSAkjkjdfg54546465a5asdf554aDdEfgg="",""UserName"":""Joe Bloggs"",""CanWrite"":false}")

Error Message on execution of Script task;

   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
   at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
   at Microsoft.SqlServer.Dts.Tasks.ScriptTask.VSTATaskScriptingEngine.ExecuteScript()

Viewing all 24688 articles
Browse latest View live


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