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

problem when include parameter do backup execute sql task sql statement

$
0
0

within sql statement

Backup to network drive

BACKUP DATABASE AAA TO DISK = '\\' + ? + '\etlbk\AAA.bak' + '-' + 'with format' go

Incorrect syntax near '+'

How to fix it?


how is it that with config no errors , without configs there are errors

$
0
0

hi we run 2014 enterprise.  we are trying to explain something having (we think) to do with configs. 

I can post more details but might get there quicker by asking this way...

in vs2013 as we develop our pkgs ,  is it possibly true that validation is delayed on configs that start from an environ var that maps to a sql server?  and where does  vs 2013 think the environ var is even coming from in the items i'm showing below when there is no such environ var on our locals?  one peer thinks in vs 2013 specifically its from the dns alias showing in the config mgr's server name.  but if there is validation, that should generate an error. the config mgr showing in the 2nd image is named as the config target object in image 1.

do we have to start over if we forgot to enable configs

how does ssis know the table name to look for to get configs?

$
0
0

hi our servers know to look for [master].[dbo].[SSIS Configurations]  when configs are to be extracted.

is that a default name or set up somewhere as some sort of sql property?

Slowly changing dimensions and ODBC connection

$
0
0

Hi,

I'm trying to implement a slowly changing dimension (SCD) with the wizard but noticed that it only allows for OLE DB type of connections. Since I have PostgresQL with an ODBC connection, I was looking at options to make this happen.

I was thinking of creating one myself as I read that the standard SCD component does not scale well with dimensions that for example have 10-30 million records however most of the custom made solutions that involve lookups and conditional splits in the end also require an OLE DB object to perform an update or insert statement that an ODBC destination component does not offer (at least I didn't see any option for that). 

Is the only solution to get a commercial license for an OLE DB connector to PostgresQL (corporate standard)?

Roland

the selected method contains incompatible arguments Web services Task

$
0
0

Hello,

I am trying to consume a web service that a company sent me, but it shows this error. I really don't know much about web services, could you please help me and so consume the web service.

the message I get is the following.

the selected method contains incompatible arguments

how is it that with config no build errors , without configs there are build errors

$
0
0

hi we run 2014 enterprise.  we are trying to explain something having (we think) to do with configs. 

I can post more details but might get there quicker by asking this way...

in vs2013 as we develop our pkgs ,  is it possibly true that validation is delayed on configs that start from an environ var that maps to a sql server?  and where does  vs 2013 think the environ var is even coming from in the items i'm showing below when there is no such environ var on our locals?  one peer thinks in vs 2013 specifically its from the dns alias showing in the config mgr's server name.  but if there is validation, that should generate an error. the config mgr showing in the 2nd image is named as the config target object in image 1.


SQL statement with parameters in OLE DB

$
0
0

Okay, I'm using a 3rd party (Intellisoft) OLE DB connector to Postgres to do an update for a dimension in the context of a slowly changing dimension.
To do so, I created an update statement in the OLE DB destination component with 3 parameters like this (see also attached picture).

update test.dim_acnt_test
set open_dt = ?
, close_dt = ?
where acnt_dim_id = ?

But when I look in the column mapping, I only get to see the open_dt and close_dt in the available destination columns that are already automatically mapped (see 2nd attached pic.). I've tried to create a 3rd one for the acnt_dim_id in the external columns in the input and output tab, but after a refresh it defaults back to only the 2 columns I already had.

Roland


SSIS Package Issues while caliing Powershell with Agent job

$
0
0

Hi Everyone,

We are having issues running a Powershell scipt in an SSIS package.  I’m using an Execute Process Task to run the script.  When I run the package under my own authority, the package runs fine.  But when the SQL Server Agent runs the job, it gets this error:   In Executing "PowerShell.exe" "-ExecutionPolicy Unrestricted -File "D:\PowerShell\GetActiveDirectory.ps1" "XX" "YY" "ZZ" " at "", The process exit code was "-196608" while the expected was "0".

The SQL Server Agent service is running as a service account and that account has been granted every permission possible
Any suggestions how to troubleshoot further?

I am passing 3 parameters to Power shell from SSIS.

Thanks in advance.

Email Send ETL

$
0
0

Buenas tardes, podrian ayudarme con el siguiente error? 

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

Saludos cordiales

mapping excel to SQL - datatypes problem

$
0
0

I seem to come up against this issue each time I try to load some excel rows into SQL.
I have a very simple spreadsheet with a single row that I am going to load into a very simple SQL table (at this stage this is just a prof of concept). I have mapped the columns but get errors for theDate, received, onsite and resolved.
In the DB the columns for these are date, time, time, time respectively.
The data in the spreadsheet is held as: 18/06/2020, 1:00, 1:10, 1:15 respectively.
The errors are

The column "theDate" can't be inserted because the conversion between types DT_DATE and DT_DBTIMESTAMP is not
The column "Received" can't be inserted because the conversion between types DT_DATE and DT_DBTIME2 is not supported.

So I go to the advanced editor for the SQL destination and to the Input and Output properties tab. Under external columns I can change the datatype from DT_DBTIMESTAMP to DB_DATE, click ok but when I go back to the tab the datatype has reverted back to DT_DBTIMESTAMP.
Can someone help me understand what is happening here and what I need to do in order to get past this?


 

SSIS Stuck In Pending Execution and logs a COM error

$
0
0
We have an SSIS package that is on a SQL 2016 system that makes a call out to a database on a SQL 2014 system.  The SSIS was working normally for quite some time, but now when it is run it reports Pending Execution with the following error displayed:

Exception details:

System.Runtime.InteropServices.COMException (0x80004005): Error HRESULT E_FAIL has been returned from a call to a COM component.

  at Microsoft.VisualStudio.Shell.Interop.IVsShell5.LoadPackageWithContext(Guid& packageGuid, Int32 reason, Guid& context)

  at Microsoft.VisualStudio.Platform.WindowManagement.WindowFrame.GetPackage()

  at Microsoft.VisualStudio.Platform.WindowManagement.WindowFrame.ConstructContent()

   Anyone have any idea how to identify the COM component that is failing so we can determine what the issue may be?

Thanks


Lou Davis Software Engineer E2B Teknologies

conditional split to multi streams

$
0
0

Hi

I have a conditional split component with two output streams that detect changes 
for certain columns. Stream 1 checks for changes in the open and close dates and the second stream 
for changes in product and status code and description (see screenshot)

My understanding from running the job is that the conditional split outputs to only the first stream as soon as the 
first condition is valid and no longer to the second one if the second condition is met as well.

I would like to have the incoming data stream go to both if both of the conditions are valid. Do I need to use a multicast component
instead to generate two data streams followed by two associated filter conditions? I guess the filter conditions would need to be implemented
through a conditional split as well as I didn't see any dedicated filter components.

I'm not entirely sure what the proper design is in this case.

Roland

Load Nested XML to SQL Server Table

$
0
0

Hi All 

I have the following xml data and want to load in to sql server , Can you please let me know how do i achieve this using ssis, When using XML source i am getting multiple Column Headers


Thanks


SCD component - connection issue

$
0
0

Hi,

I'm trying to play around with a SCD (slowly changing dimension) component. To that end, I downloaded a trial version of an OLE DB connector (Intellisoft) to connect to a PostgresQL database to meet a prerequisite. However as soon as I want to create a connection to a dimension with the SCD component for which I already created one on the project level, it's not able to do so or recognize the existing one and I'm just seeing a blank list of connections (see screenshot). Not sure what I'm doing wrong.

Roland


SSIS (VB Script Error)

$
0
0

Hi,

I have a SSIS package and it has a VB script where it tries to create and process SSAS cube partitions.

When I execute this package from inside Visual Studio 2017 it runs without any errors.

If I try to execute this same package from a SQL Server job I receive this error message: Exception has been thrown by the target of an invocation.

I've tried everything, but I coundn't find the problem yet.

Thank you.


Benedito R. Almeida Filho - BI

Unable to open the SSSIS package in diagramatic view, opening in XML code in visual studio

$
0
0

Hi Everyone,

SQL server Integration services is running in the server(shared server), when i,m choosing it from Visual studio as new project it is not showing in the wizard.

Can someone suggest us how to solve the above problem.Thanks in Advance

Thanks,

Bhargavi

load table incrementally based on updated timestamp

$
0
0

What is the best way performance wise to load fact table incrementally when history data changes.We do not want to store the history record but i am not sure how to delete the record that exist in target and reload the new/updated records coming from source table.Example,after identifying the records that got updated and created in source since last extract/load date in target,how do i identify old rows to be deleted from target and then insert all rows from change set.

There is no key or uniqueness in fact table.How to handle this for fact table.Not sure Merge is ideal for facts.

how to create export-.sln file

$
0
0
Hi..I want to export my existing SSIS solution and create  (.sln) file with all the components so that i can send the same to other team member. How can i do it 

catalog.create_execution through Script Task returns "The formal parameter \"@use32bitruntime\" was not declared as an OUTPUT parameter, but the actual parameter passed in requested output."

$
0
0

Given the following code:

OleDbCommand sqlCreateExec = new OleDbCommand("[catalog].[create_execution]", sqlSSISDB);
sqlCreateExec.CommandType = CommandType.StoredProcedure;

sqlCreateExec.Parameters.AddWithValue("@folder_name", folderName);
sqlCreateExec.Parameters.AddWithValue("@project_name", projectName);
sqlCreateExec.Parameters.AddWithValue("@package_name", packageName);
sqlCreateExec.Parameters.AddWithValue("@reference_id", envRefId);

OleDbParameter execId = new OleDbParameter("@execution_id", SqlDbType.BigInt);
execId.Direction = ParameterDirection.Output;
sqlCreateExec.Parameters.Add(execId);

sqlCreateExec.ExecuteNonQuery();

why would I get the error:

The formal parameter "@use32bitruntime" was not declared as an OUTPUT parameter, but the actual parameter passed in requested output.

Since the "@use32bitruntime" parameter is an optional/input parameter, I'm confused why it's absence in the command is returning this error.

Thanks.

Viewing all 24688 articles
Browse latest View live


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