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

Excel destination doesnt preserve leading 0's

$
0
0

I have an ssis apckage that writes data to an excel file from a table. There is a numeric field with values like "0.4258" etc.

these get written to excel as ".4258", I have tried pre-formatting the excel destination with number/text data formats.

converting to text doesn't work as excel expects DT_WSTR datatype only.

If anyone was able to overcome this problem please share the solution with me.


is ssis appropriate for parsing free form text for mood and favorability indicators?

$
0
0
Hi this vague but perhaps there is a must read recommendation if someone is looking to ingest (perhaps in an etl tool) free form text from both the company's captured comments and social media looking for and recording "(un)favorability" indicators that might provide insights into declining sales. 

SSIS read the data from table and insert 2 rows in another table

$
0
0

Hello,

I am new to ssis and i have a requirement to read the data rows from one source table and insert tow different rows in another table

Reading the rows and inserting is working fine using data flow in SSIS

But I have to insert the source rows(split source and insert into 2 rows in destination) based on Common ID

i.e Source System ID and Source System Key in one row and targetSystemID and Target system key in another row with same commonID,RefID

example

Source table columns & Rows

RefID      SourceSystemID    SourceKey               TargetSystemID     TargetKey               CommonID   CommonKeyDate

3              1                        9BFG06E8AD              2                       001351913001         12345         20-02-2010 09:11:43

4              1                        8KIJ67ASG9               2                       002352014005         45678         20-02-2010 09:11:43

Required Destination Column Rows

DataID(AutoIncrement)    RefID      SystemID          SystemKey            CommonID            DateCreated(using getdate())

 

1                                     3             1                      9BFG06E8AD        12345                    getdate()   

2                                     3             2                      001351913001     12345                    getdate()

3                                     4             1                      8KIJ67ASG9          45678                    getdate()

4                                     4             2                      002352014005     45678                    getdate()

                                 

Can anyone assist , please?

thanks


Sri

tool box is empty

$
0
0
Hi i run the community version of vs 2019 in win 10 to develop ssis pkgs.  my toolbox is suddenly empty but i havent used vs on that machine for a number of months.  if i show all i get every tool component known to man except the core  ssis items.  except perhaps for a handful of maint plan components.  i tried x'ing out and choosing tools again in view.  i tried clicking the tool box icon.  all to no avail.  i cannot recall any major installation that might have affected this.  what do people do in this situation?

SSIS Package Running too fast

$
0
0

So I know the SSIS Solution works. 

Please allow me to explain.

  • Allow for a @DateParmOverride Variable in the SSIS Package. If False, then derive the @GlobalStartDate Variable to be the previous Saturday and derive the @GlobalEndDate to be the previous Friday when this is run through SQL Server Job Agent at 4AM on Saturday
  • We then CREATE and INSERT the results of our SQL Server Stored Procedure using the @GlobalStartDate and @GlobalEndDate Parameters into a Global ##Temporary Table in order to determine if we have a result set for the indicated period
  • We then do a SELECT COUNT(*) against that created and inserted Global ##Temporary Table in order to determine if we need to process for the previous week or simply send an Email indicating that there are No Records for that week

Like I have stated, we know this solution works because when we override and set the variable @DateParmOverride to "True" and provide the @GlobalStartDate and @GlobalEndDate variables in the SQL Server Agent Job, the job determines there is a result set and processes accordingly.

Similarly, if we run the Job in SQL Server Agent One Time and during the day using @DateParmOverride being "False", it derives the @GlobalStartDate and @GlobalEndDate variables correctly and processes accordingly.

The only time it seems to choke is when it runs on its normal schedule...on Saturday mornings at 4AM. We get an erroneous Email which states that there are No records to process for the derived prior week dates when we know there are.

Now the queries are going across a linked server utilizing the SSIS Connection Manager and my first thought is maybe the  job is running too fast in the middle of the night...trying to determine the COUNT(*) of the Global ##Temporary Table before the CREATE and INSERT were done. I did add a 

WAITFOR DELAY '00:00:05'
;

in the Execute SQL Task that creates and inserts into the Global ##Temporary Table. But last week it seemed to rip right through again without producing a file when data exists for the derived week.

Has anyone ever experienced anything like this? I hate like hell to re-work through the solution when I know it works and potentially derive the @StartDate and @EndDate parameters within the SQL Server Stored Procedure and handle it that way.

Does anyone have any explanations...work arounds...I know back in the COBOL days I could put a READY TRACE and DISPLAYS to try and de-bug. Does anything like that exists in SSIS and running a SSIS Package through SQL Server Job Agent?

Thanks soooo much for your review and am hopeful for a reply.

[Execute SQL Task] Error: Executing the query ...

$
0
0

Hi,

Here is my setup:

User Defined Variable:

Tab: General

DELETE FROM TmptblCase WHERE RequestDate > ?

Parameter Mapping:

Result Set:

Error Message:

[Execute SQL Task] Error: Executing the query "DELETE FROM TmptblCase
WHERE       RequestDate > ?" failed with the following error: "Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.

What wrong here?

Regards

Unable to deploy SSIS package due to A required Prvilage not held by the client

$
0
0

I have an instance of SQL Server 2016 and I'm using SSDT VS 2017. I've created a simple package that loads data from a flat file source and loads it to a database. I have full administrative rights to the machine and SQL Server and the package runs fine in the designer. I have already created a catalogue however when I come to deploy the package i get the following error:

TITLE: SQL Server Integration Services
------------------------------

A .NET Framework error occurred during execution of user-defined routine or aggregate "deploy_project_internal": 
System.ComponentModel.Win32Exception: A required privilege is not held by the client
System.ComponentModel.Win32Exception: 
   at Microsoft.SqlServer.IntegrationServices.Server.ISServerProcess.StartProcess(Boolean bSuspendThread)
   at Microsoft.SqlServer.IntegrationServices.Server.ServerApi.DeployProjectInternal(SqlInt64 deployId, SqlInt64 versionId, SqlInt64 projectId, SqlString projectName)
. (Microsoft SQL Server, Error: 6522)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft%20SQL%20Server&ProdVer=13.00.5081&EvtSrc=MSSQLServer&EvtID=6522&LinkId=20476

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

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

I even tried to export the package and create an agent job to run it that way but that errors out too, although I can't find the reason why and it's not something I am familiar with. I've searched the internet far and wide but no matter what I try I cannot seem to get any SSIS job working. Any ideas where to begin?

thanks in advance

ODBC suddenly fails in Visual Studio 2019/SQL Server Integration Services SSIS

$
0
0

About 6 weeks ago I patched Visual Studio and now when I try and connect to an ODBC source in SSIS it craps out. I created a fresh VM....same issue. My server still runs fine and nothing else on the network has been changed....I am curious if anyone else has experienced this and if there's a solution? Thanks!



How to Insert to Specific Column of Excel

$
0
0

Hi All,

Would like to get advise how we insert to specific Column of Excel. my script is to get total after execute store procedure and insert to L2 as shown below (Beside Total).


I tried to select specific column from the [excel$] but it get error as below and the DTSX file auto close 

Kindly Advise.



SSIS Execution Process consuming all memory vs DataTools 2015 execution

$
0
0

hi folks,
I have created a very small dtsx package that dumps data from Oracle (11g) to SQL Server (2014 Std). The package runs fine at design time, within the DataTools 2015 environment (consumes little memory and finishes normally), however, any time I deploy the package within SSISDB and run it through SQL Agent, it starts consuming all of the RAM on the machine, currently 32gb RAM, then starts using the swap file big time and it eventually fails with "There is insufficient system memory in resource pool 'default' to run this query"

I have tried to change the FastLoadMaxInsertCommitSize of the Destination DataFlow Component, redeploy, rerun, but the package at runtime still takes the entire RAM and eventually runs out of memory.  At design time, as mentioned, runs beautifully, within the 32 bit IDE environment.

Are there additional memory limiting params that can force SSIS Execution to limit the used RAM?  (There are no transforms, sorts or any other complex operations, just a simple source to destination dump.)

thanks bunches,
Cos




SSIS Agent JOB Failing to run JOB

$
0
0

Hi Guys,

I have a small package that is using Attunity for Oracle as a data source. The package runs well in Visual Studio but its failing when I try to schedule the JOB using SQL Server Agent, getting the following message:

1. Failed to decrypt protected XML node "OraPassword" with error 0x8009000B Key not valid for use in specified state.....

Have done some searches on the internet and most of the suggestions where saying something to do with creating registry entries and have tried that too but ended up getting the following msgs as I have tried to run the Agent Job;

Package Connection Manager ..... Failed to load OCI DLL 

Can any one help.

Thanks a lot,

Alec

How to check 1st character of a file using SSIS VB script task?

$
0
0

Hi Everyone,

I have a fixed width file where we have 1 header row, N number of Detail rows and last row is the Trailer row. Header row starts with 'H', All detail rows starts with 'D' and trailer row starts with 'T' always. If all these rows starts with respective characters then only I need to do my operation else I need to ignore the file. How can we check this using SSIS VB script task?

Thanks in advance

SSIS Package hangs while performing validation on execution

$
0
0
I have a SSIS package which just transfers the data from Excel file to SQL server data base table. When i execute the package in SSDT it works fine but scheduling it through a SQL Server job it just hangs while exeuction. I enabled logging for my package and observed that during On Progress validation, the job is struck in execution. I have performed numerous checks like SQL Server agent account permissions, dcom permissions and etc but nothing seems to be resolving the issue. Any help will be appreciated.

Can't deploy SSIS Package due to "deploy_project_internal"

$
0
0

I have an instance of SQL Server 2016 and I'm using SSDT VS 2017. I've created a simple package that loads data from a flat file source and loads it to a database. I have full administrative rights to the machine and SQL Server and the package runs fine in the designer.

Also I have gone into the dcomcfg.exe and added priv to the ssis tasks 

But everything I do and read no matter what I still get the error below

TITLE: SQL Server Integration Services

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

A .NET Framework error occurred during execution of user-defined routine or aggregate "deploy_project_internal": 
System.ComponentModel.Win32Exception: A required privilege is not held by the client
System.ComponentModel.Win32Exception: 
   at Microsoft.SqlServer.IntegrationServices.Server.ISServerProcess.StartProcess(Boolean bSuspendThread)
   at Microsoft.SqlServer.IntegrationServices.Server.ServerApi.DeployProjectInternal(SqlInt64 deployId, SqlInt64 versionId, SqlInt64 projectId, SqlString projectName)
. (Microsoft SQL Server, Error: 6522)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft%20SQL%20Server&ProdVer=13.00.5081&EvtSrc=MSSQLServer&EvtID=6522&LinkId=20476

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

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

I even tried to export the package and create an agent job to run it that way but that errors out too, although I can't find the reason why and it's not something I am familiar with. I've searched the internet far and wide but no matter what I try I cannot seem to get any SSIS job working. Any more ideas where to begin?

thanks in advance

Login failed error when using service account credentials in SSIS connection manager

$
0
0

Hi,

I am trying to create a SSIS package to load data from MySQL server to SQL server. I do not have access to the SQL servers so I am using service account credentials while creating the connection. But, when selecting "Database" after providing server name, user ID and pwd, a pop up appears with error "Login failed for user".

The credentials are valid credentials since I am able to run SSMS with these credentials by clicking on "Run as different user" and I am able to connect to the server this way.

Do you know what is causing the error "Login failed"?

Any help much appreciated,

Thanks in advance!


harshac


SSIS with Rest API

$
0
0

Hi,

I used to use SSIS for my ETL processes and now i came across a project where i need to call REST API with basic authentication (authentication pre-emptively) to populate a sqlserver database (relacional).


I already know that there are third party products that make the job easier, but I can't use them.

So I came to documents that teach how to use rest api in ssis: "Tutorial: Create a web API with ASP.NET Core ".

Am I on the right path? can I use this procedure until I can receive data from one WebS and write that data directly to the database?

Someone who can help ?

thanks in advance

Ricardo

changin data type in Advance editor of Output column in Excel Source is not working

$
0
0

i need to load my excel file through  ssis ,and the column is currency data type .The source column having 8 digits after decimal.But in preview it is showing only 4 digit after decimal. 

 I tried changing output column datatypes in Advance editor of Excel source  , but it is not working.


GOVINDARAJ P

Using DMA (Data Migration Assistant) for Integration Services assessment

$
0
0

We got SQL 2012 & 2014  On-Premise instances with SSIS and we are planning to migrate these to new OnPremise SQL2019 Servers (parallel upgrade).

When I run DMA (latest 5.0 version) and select "Integration Services" under "Assessment Type", with "SQL Server" as source, the only options under Target Server type are "Azure SQL Database" or "Azure SQL Database Managed Instance". I don't see options like "SQL Server" or "SQL Server on Azure VM" which I get when Database Engine is selected for Assessment.

Can anyone confirm if we cannot do assessment for SSIS if we are not migrating to "Azure SQL Database" ? or I just need to continue selecting with one of the Azure SQL Database target type and continue with assessment ?

SSMS SQL Server-Import/Export-Assistant Export to Paradox BDE File Issues

$
0
0

I use the SSMS SQL Server-Import/Export-Assistant to export a table of an MSSQL Server to a local paradox bde file (.DB).

The Goal is to export the slected table columns to a bde file. I need the database in this format for a specific Software applcation that only accepts paradox databases.

I use the following Connection string acoording to my ODBC Driver Settings:

"Driver={Microsoft Paradox Driver (*.db )};driverid=538;defaultdir=c:\basytec\organisation\;dbq=c:\basytec\organisation\;collatingsequence=ASCII;readonly=false"

I simply use this SQL string to select the Input value:

"select [NumberFormatted] from dbo.TXQV_Tests where Status < 8 and ProductType = 'Cell' and LabFieldIdent = 27"

for the Export I use the create function as follows. this should create a .db file and fill in the in Import selected table:

"CREATE TABLE "Abfrage" ("NumberFormatted" AlphaNumeric(48)

The process doesn't work as expected. The created bde file is empty with existing headers but no content. This is the error Code in german: roughly translated: the operation Needs to use an updateable query.

  • Es wird kopiert in ""Abfrage"" (Error) Messages Fehler 0xc020844b: 1-Datenflusstask: Ausnahme beim Einfügen von Daten. Die vom Anbieter zurückgegebene Meldung lautet: ERROR [HY000] [Microsoft][ODBC Paradox Driver] Operation muss eine aktualisierbare Abfrage verwenden. (SQL Server-Import/Export-Assistent) Fehler 0xc0047022: 1-Datenflusstask: SSIS-Fehlercode "DTS_E_PROCESSINPUTFAILED". Fehler bei der ProcessInput-Methode in der Komponente "Ziel - Abfrage" (19) mit dem Fehlercode 0xC020844B beim Verarbeiten der Eingabe "Destination Input" (22). Die identifizierte Komponente hat einen Fehler von der ProcessInput-Methode zurückgegeben. Der Fehler ist komponentenspezifisch. Es handelt sich jedoch um einen schwerwiegenden Fehler, sodass die Ausführung des Datenflusstasks unterbrochen wird. Möglicherweise wurden bereits Fehlermeldungen veröffentlicht, die weitere Fehlerinformationen beinhalten. (SQL Server-Import/Export-Assistent)

I know, that there is an index definition missing. But any Version of CONSTRAINT z PRIMARY KEY doesn't work such as:

CREATETABLE"Abfrage"("NumberFormatted" AlphaNumeric(48),PRIMARYKEY("NumerFormatted"))

This only brings up another error: the databasemodule can't find the index 'Index_6994414E_8E0F_44DF'

Fehler 0xc002f210: 1-SQL-Task "Vorbereitung": Fehler beim Ausführen der Abfrage "CREATE TABLE "Abfrage" ( "NumberFormatted" AlphaN...": "ERROR [42000] [Microsoft][ODBC Paradox Driver] Das Datenbankmodul kann 'Index_6994414E_8E0F_44DF' nicht finden. Stellen Sie sicher, dass es sich um einen gültigen Parameter oder Alias-Namen handelt, der keine ungültigen Zeichen oder falsche Zeichensetzung enthält und dessen Name nicht zu lang ist.". Mögliche Ursachen sind folgende: Probleme bei der Abfrage, nicht richtig festgelegte ResultSet-Eigenschaft, nicht richtig festgelegte Parameter oder nicht richtig hergestellte Verbindung.

Does anyone have an idea, how to deal with this problem?

Upgrade SSIS from SQL2012/2014 to SQL2019 (side-by-side upgrade)

$
0
0

We are upgrading our SQL 2012/2014 on-premise Servers to new SQL2019 on-premise server (side-by-side upgrade). We got several packages (100-150) and some of these were developed by people who have left. We are not sure if got the source code (project solution) for all the packages,  so we are tring to avoid the using the option to re-deploy the packages using source code.

Can any one advise on other different ways to migrate whole SSISDB like-to-like from 2012/2014 to 2019 SQL Server ? (Can we configure SSIDB Catalog on new Server, restore SSISDB from old Server with encryption key and then perform "Database upgrade" ?)

https://docs.microsoft.com/en-us/sql/integration-services/catalog/ssis-catalog?view=sql-server-ver15#upgrade-the-ssis-catalog-ssisdb

Viewing all 24688 articles
Browse latest View live


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