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

varchar in flat file -- encrypted column in table

$
0
0

Hello ALl, 

trying to load a file into table , column in the csv file is varchar, but gets loaded directly into table column is encrypted. 

I changed the connection string to ecryption enabled = true. but stil i get the same error

[Staging Provider Network Master (LHFL) [1006]] Error: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80004005.
An OLE DB record is available.  Source: "Microsoft OLE DB Provider for SQL Server"  Hresult: 0x80004005  Description: 
"Invalid column type from bcp client for colid 666.".

How do i approach this.


How do I define a BINARY Parameter Type?

$
0
0
I have a SQL Server Stored Procedure that uses a LSN BINARY(10) as an input parameter. How do I define that in SSIS? Using an Execute SQL Task in Control Flow to try and Execute the SQL Server Stored Procedure.

The requested OLE DB provider OraOLEDB.Oracle.1 is not registered. If the 64-bit driver is not installed, run the package in 32-bit mode. Error code: 0x00000000.

$
0
0

Hi

I am trying to run the SSIS package abd getting error with oracle 64 bit driver while connecting to Oracle database.

I installed 64 bit 12.2 deiver and I able connect  to oracle databases  from the server. But  When run the packge its faied with this error. On environment varible on server  Path=c:\app\product\12.2.0\client_3\bin

Secondly package is tryint connect through a "Link server" using " OraOLEDB.Oracle" and  did a connection test and connecting is good.

Main Package:Error: The requested OLE DB provider OraOLEDB.Oracle.1 is not registered. If the 64-bit driver is not installed, run the package in 32-bit mode. Error code: 0x00000000.
An OLE DB record is available.  Source: "Microsoft OLE DB Service Components" Hresult: 0x80040154  Description: "Class not registered".
 any one have idea.

Not sure why is that .

Thanks

Blank Data Issue in in XLS vs XLSX

$
0
0

Hello,

I am reading data from Excel .In Excel data some cell are blank and initially client has provided me XLS file.

So, for XLS file I was using Jet Provided with IMEX =1 property and It is treating Blank Source data to  NULL.

Now Client has changed the file from XLS to XLSX extension.

So, for XLSX file  I am using Provider=Microsoft.ACE.OLEDB.12.0 with IMEX=1property and It is treating Blank source data to Blank only and converting Advance Editor output as WSTR.

Can you please help to resolve this issue ? basically i want to keep Blank to NULL only.


Issue with creating a package with account created in AD and login into Management Studio with windows authentication

error code 0xC0202009

$
0
0

Hi,

I've a weird issue, i've a package on SSIS 2017, the source is SQL 2017 DB,  the OLE DB source fails with that error when I run it locally or on the server.

but I can click on "Preview" from the OLE DBSource Editor and see the data.

I can edit the connection string and test the connection successfully.

but at run time it gives this error...has anyone encountered that before?

I tried setting "delay validation" to  TRUE on the package but that didn't help.

Error: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER.  The AcquireConnection method call to the connection manager "conn" failed with error code 0xC0202009.  There may be error messages posted before this with more information on why the AcquireConnection method call failed.


Error converting data type varchar to varbinary

$
0
0

We are performing a SELECT for Change Control and a [LSN] data column, Log Sequence Number. We are storing [LSN] as a local variable as a String data type. We are then using a Data Flow Task and an OLE DB Source to EXEC our SQL Server Stored Procedure.

The [LSN] Input parameters, both @MinLSN and @MaxLSN, are defined as VARCHAR(MAX) within the SQL Server Stored Procedure. And we are then converting them in the SQL Server Stored Procedure by...

CREATE PROCEDURE [Schema].[SPROCName]
    @MinLSN_In VARCHAR(MAX) NULL,
    @MaxLSN_In VARCHAR(MAX) NULL
--WITH EXECUTE AS CALLER, RECOMPILE
AS
SET NOCOUNT ON;

--Create @MinLSN_LOCAL and @MaxLSN_LOCAL Variables To Local Variables to Prevent Parameter Sniffing!!
--Reference: https://social.msdn.microsoft.com/Forums/sqlserver/en-US/b818092b-9439-48cd-9f01-cf5e798c2fcb/error-converting-nvarchar512-to-varbinarymax?forum=sqlintegrationservices
DECLARE @MinLSN_BINARY  VARBINARY(MAX),
        @MinLSN_LOCAL   VARCHAR(MAX),
        @MaxLSN_BINARY  VARBINARY(MAX),
        @MaxLSN_LOCAL   VARCHAR(MAX),
        @OrderInvoiceID INT;

--SET Local Variables to prevent Parameter Sniffing!
SET @MinLSN_LOCAL = @MinLSN_In;
SET @MaxLSN_LOCAL = @MaxLSN_In;

--The @MinLSN_In and @MaxLSN_In Parameters will come from the SSIS Package and the derivation
--of each based on the Change Control LSN. SSIS forces you to store the LSN as a String
--so that is what is actually passed to this SQL Server Stored Procedure and the LSN will
--need to be converted back to BINARY in order to perform the Change Control LSN lookups.
SELECT @MinLSN_BINARY = CONVERT(VARBINARY(MAX), @MinLSN_LOCAL, 1);
SELECT @MaxLSN_BINARY = CONVERT(VARBINARY(MAX), @MaxLSN_LOCAL, 1);

NOTE THE REFERENCE TO...

 https://social.msdn.microsoft.com/Forums/sqlserver/en-US/b818092b-9439-48cd-9f01-cf5e798c2fcb/error-converting-nvarchar512-to-varbinarymax?forum=sqlintegrationservices

I tried all of that and am still getting the error:

An OLE DB record is available.  Source: "Microsoft SQL Server Native Client 11.0"  Hresult: 0x80040E07  Description: "Error converting data type varchar to varbinary.".
Error: 0xC004701A at Data Flow Task, SSIS.Pipeline: OLE DB Source failed the pre-execute phase and returned error code 0x80040E07.

Can anyone shed any light on this? Please!

Thanks for your review and am hopeful for a reply.

Not able to connect Integration Services through SSMS in SQL Server 2016

$
0
0

Hi Team, 

Please help on bellow issue

TITLE: Connect to Server
------------------------------
Cannot connect to <ServerName>.
------------------------------
ADDITIONAL INFORMATION:
Failed to retrieve data for this request. (Microsoft.SqlServer.Management.Sdk.Sfc)
For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft%20SQL%20Server&LinkId=20476
------------------------------
Connecting to the Integration Services service on the computer "<ServerName>" failed with the following error: "Class not registered".
This error can occur when you try to connect to a SQL Server 2005 Integration Services service from the current version of the SQL Server tools. Instead, add folders to the service configuration file to let the local Integration Services service manage packages on the SQL Server 2005 instance.

For help, click: http://go.microsoft.com/fwlink/?LinkId=506689
------------------------------
Connecting to the Integration Services service on the computer "<ServerName>" failed with the following error: "Class not registered".
This error can occur when you try to connect to a SQL Server 2005 Integration Services service from the current version of the SQL Server tools. Instead, add folders to the service configuration file to let the local Integration Services service manage packages on the SQL Server 2005 instance.

For your reference am added error screenshot.

Already I have provided all access to user.

 


Thanks Bala Narasimha


Issue during create a new Catalog in Microsoft SQL Server Management Studio 18

$
0
0

Hi,


Is there any ways to create a new Catalog in Microsoft SQL Server Management Studio 18 without using Azure account.


Since in SQL Server Management Studio 2014, i can create a new Catalog without Azure account.

Convert string to date in SSIS

$
0
0

Hi Team, 

I have a string value from a file which is in the below format: 

dd-mmm-yy

01-jan-15

03-sep-19

Which are to be in this format in the destination: 

yyyy-mm-dd

2015-01-01

2019-09-03

Please help me if there is any SSIS expression to do so in derived column component. 

Thanks,

Vikram 

excel sheet name

$
0
0

How do you get SSIS to read excel sheet names with a space ie in the excel source?

Select * from [My Report$]

SSIS data not fully loading into SQL server DB

$
0
0
Hi,I am trying to load data by using SSIS to SQL server. The package run perfectly without any error, but the problem I am getting that all the data from source file are not transfering into SQL server DB table. For  example, in my source table I have 38,037rows but while run the ssis package its only transfer few data, not the exact number of data as it is on the source table.Please help me to solve is issue if anyone can.

error 0x8000401A

$
0
0

Hi , 

I often get the error when I run the package in ssis.

 Microsoft (R) SQL Server Execute Package Utility  Version 11.0.2100.60 for 64-bit  Copyright (C) Microsoft Corporation. All rights reserved.    Started:  2:00:00 AM  Error: 2019-05-09 02:00:03.66     Code: 0xC0024104     Source: Refresh Microsoft Excel Task     Description: The Execute method on the task returned error code 0x8000401A (Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 8000401a The server process could not be started because the configured identity is incorrect. Check the username and password. (Exception from HRESULT: 0x8000401A).). The Execute method must succeed, and indicate the result using an "out" parameter.  End Error  DTExec: The package execution returned DTSER_FAILURE (1).  Started:  2:00:00 AM  Finished: 2:00:03 AM  Elapsed:  2.87 seconds.  The package execution failed.  The step failed.

can anyone help me in solving this issue?

Create Tables Dynamically from Flat Files and load Data in SSIS

$
0
0

Hi I'm using VB 2017 I need a code that i can create new tables with the headers in my text files as the column names.

they all in Tab Delimited

--

Perform Delete/insert

$
0
0

Hi Team,

I have one problem to create a ssis package where i need to perform delete/insert. I have one excel file  having data like

year  month product amount

2019  jan     cloth     300

Now what i need , i need to check combination and delete this data by inserting same combination only changes in amount like example

year  month product amount

2019  jan     cloth     500

Can anyone help me to sort out this problem?

Any help is appreciated.

Regards,

Shilpi


Export Sql server table into a pdf file

$
0
0

Hi 

I am practicising SQL Server and want to export my sql server table into a pdf file is that possible without using a front-end language like CSharp.

I want to perform this task on SSMS.

Can someone please help me out

Thanks in advance

OLE DB Source to Multiple destination with Different Column

$
0
0

What will be best way to handle a use case where-

1. I have a old -db source containing 10 columns

2. This source data need to go to three places  with different fields from source

  • -Excel 1 ( 5 fields from Source ) 
  • - Excel 2 with different field than previous excel
  • - SQL server table to with another combination of fields


Script task to chose column seems to be an option.Multicast does not provide ability to pick and chose specific column.

Thank you


Bulk XML Files Import (2000) files, need to speed up import

$
0
0

Good day, Urgently need help. Bulk XML Files Import (2000) files, need to speed up import

I have over 2,000 XML files that import every 15min. And move to a drive on the server

Loop > XMLsource to oracle destination > then move file, I am importing 1 files every 3 seconds.

Instead want to do a bulk insert after reading all files, I do not want to open/close connection every time when importing a file

so I was thinking of storing the values I want to insert into variables and append as it loops then do a bulk insert and then do a directory copy compared to individual inserts and 1 file move

Sql table is not fast enough (open/close connections), I thought I could append a record destination but it gets overwritten everytime the loop iterates. Can I perhaps use the onvariablevalue changed event or something to store the field values to variable

please help, I need to do this this evening :(

Regards

varchar in flat file -- encrypted column in table

$
0
0

Hello ALl, 

trying to load a file into table , column in the csv file is varchar, but gets loaded directly into table column is encrypted. 

I changed the connection string to ecryption enabled = true. but stil i get the same error

[Staging Provider Network Master (LHFL) [1006]] Error: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80004005.
An OLE DB record is available.  Source: "Microsoft OLE DB Provider for SQL Server"  Hresult: 0x80004005  Description: 
"Invalid column type from bcp client for colid 666.".

How do i approach this.

Run-Time error '-2147352567 (80020009)': Cannot move the items

$
0
0

Hi,

           Can you help me with this error?

ExitSub:
   Exit Sub
ErrHandler:
Dim s As String
s = Err.Description
   If vSQL.State = 1 Then
      vSQL.Close
   End If   pMailItem.Move vCCDAutoReplyErrFolder       --- the error pointing on this
   Resume ExitSub

End Sub

Please help.

Regards,

Jerzon

Viewing all 24688 articles
Browse latest View live