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

hashing/checksum functionality

$
0
0

I use the HASHBYTES function on virtually every SSIS project i work on, its invaluable for performantly allowing checking for new/updated rows.

Is there any plans to add this functionality as a package shape that can create a has in memory and in the data flow?
All i can find are 3rd party options on codeplex that work but can be buggy and have no support.


SSIS Project Deployment - no message in operation_messages Procedure deploy_project, Line 139

$
0
0

I'm trying to deploy my SSIS project to production for the first time. It works in non prod (using the same ispac file).  There is no message in the operation_messages view. Here are the commands I used in production:

DECLARE @ProjectBinary as varbinary(max)
DECLARE @operation_id as bigint
Set @ProjectBinary = (SELECT * FROM OPENROWSET(BULK '\\DB-ABCDE\Packages\migration\ICE_main_project.ispac', SINGLE_BLOB) as BinaryData)
Exec ssisdb.catalog.deploy_project @folder_name = 'ICE', @project_name = 'ICE_main_project', @Project_Stream = @ProjectBinary, @operation_id = @operation_id out
Msg 27203, Level 16, State 1, Server DB-ABCDE\ABCDE, Procedure deploy_project, Line 139
Failed to deploy project. For more information, query the operation_messages view for the operation identifier '50'.

The error messages is not logged into SSISDB. I just started working with the data base and there aren't any rows 
in [SSISDB].[catalog].[operation_messages] yet.
  select count(*) from [SSISDB].[catalog].[operation_messages]
  0

There is a row in [SSISDB].[catalog].[operations] that is not helpful.
SELECT count(*) FROM [SSISDB].[catalog].[operations]
  where operation_id = 50
  1

I can deploy the same exact ipac file to the non prod server.
Command(s) completed successfully.

Difference between ODBC and OLEDB Connections in SSIS?

$
0
0
When we use ODBC and  OLEDB Connections in SSIS.

Dynamically assign the OData Collection value

$
0
0

I am using an OData source to retrieve information from a SharePoint list and this works fine. The name of the Collection changes, dependent upon the date, and I have a Script Task which determines the name to use.

However, I can't use the variable to set the Collection name as the OData source doesn't allow this (as far as I can tell). The closest I've managed is to use a parameter in the Data Flow Task that contains the OData source but I can't make this dynamic. To do this I have to use two packages - with the child parameter set from the parent variable - but I'd like to run the solution from a single package as it'll be controlled by a SQL Agent job.

So my questions are:

  • can a parameter value be updated from a variable?
  • can an OData Collection value be set from a variable?

Thanks.

Import a .xls file to load into SQL database Via SSIS package.

$
0
0

Microsoft Visual Studio 2008 (version 9)

I created a SSIS package were I import a .xls file to load into SQL database. 

So I created a connection with the following properties:

(connectionString : Provider=Microsoft.Jet.OLEDB.4.0;Data Source=\\fld6Filer\BRDProduction_SurveyFiles$\Incoming\TestingSurveyFiles\MyleneTestingFiles\CriticalList\CriticalList.xls;Extended Properties="EXCEL 8.0;HDR=YES";)

So far so good, everything is working as planned!

However, I want to make that connection dynamic by reading the value from a sql table and assigning to to the ConnectionString.   So I added the following lines of code in a script task:

String InputFileName = Dts.Variables["FileName"].Value.ToString();

Dts.Connections["CriticalListExcelFile"].ConnectionString ="Provider=Microsoft.Jet.OLEDB.4.0;Data Source="+ InputFileName +";Extended Properties=\""+"EXCEL 08.0;HDR=YES"+ "\""+ ";";

The value is being passed without any problem.  But when I get to the part in the data flow where I actually import the file…

I get the following errors:

[Source - Excel File [1]] Error: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER.  The AcquireConnection method call to the connection manager "CriticalListExcelFile" failed with error code 0xC0202009.  There may be error messages posted before this with more information on why the AcquireConnection method call failed.

[SSIS.Pipeline] Error: component "Source - Excel File" (1) failed validation and returned error code 0xC020801C.

[SSIS.Pipeline] Error: One or more component failed validation.

Error: There were errors during task validation.

Please note that I do have the DelayValidation set to True.

Can somebody help me with that?  I did found some tips on the web like changing theRun64BitRuntime to False under the debug options…  but I can’t find where to go!!  Help!!! 


Mylene Chalut

How to load multiple source tables to multiple destination tables in SSIS

$
0
0

Hi, 

I have a requirement where I need to load data from multiples tables  for ex: say 5 different tables from different sources (excel, sql server, oracle etc) to 5 different tables in sql server.  There is a SSIS job scheduled to run this package everyday night. Everyday, some source tables might not have data so lets say, today, only 3 will tables will load from source to destination and next day will have 2 other tables will load, next  some others tables will load and so on., So after every night load,   I need to get information on which tables are loaded everyday morning when i check. What is the best way to design this package? Please help

-

reddy

Failed to acquire connection. Connection may not be configured correctly or you may not have the right permissions on this connection.

$
0
0

Hi,

We deployed SSIS ETL packages in SSIS catalog DB- Sql Server 2012. BUT Sometimes we got an below error:-  "Failed to acquire connection. Connection may not be configured correctly or you may not have the right permissions on this connection." while connecting to sql server through my ETL SSIS package.

This is an random behaviour where error occurs randomly to any ETL SSIS package. Even sometimes it does not show any error and working fine. So can anyone let me know how to overcome thisERROR.

Any help would be highly appreciated!!


Month Diff in SSIS

$
0
0

Hi,

I have an input field MonthCon in YYYYMM format. one of the value is 201702. I want to find the difference between current month and MonthCon. For current month the value should be  10. How can i achieve this in SSIS?

Thanks

Syed Faiz


SSIS - Import from CSV to Staging Table

$
0
0
I am new to SSIS, I want to import some data from CSV and put it in the staging table. Can anyone help me and send a step by step procedure. I have spent a whole day on it and couldn't understand the concept of staging table. Your help will be appreciated. If anyone can explain Staging tables with example, it will be good.

Job teriminated due to communication in the midle of the process, data loded partially into destidation table, what is best approach?

$
0
0

Hi can any one suggest me how to resolve the below issue

If Job failure occurred in the middle of the process due to network issue and data loaded partially from source to dwh.

When we restart the job process, I don't want to load data that has already been loaded.

for example in detail :

I've got about 100 million rows that I'm moving in SSIS 2012 via a Data Flow Task.  It's pretty much a straight table data copy from source to destination. 

Due to communication problem job has been terminated and loaded 50million records into destination table.

to resolve this issue what is the best approach

please share your ideas from your experience.

thanks in advance


HarSan



HarSan

SSIS with CRM component

$
0
0

Hi all,

I am trying to deploying ssis package which has CRM component in it. I am getting below error.

if I am running with ISPAC file : Unable to create the type with the name 'CRM'. (Microsoft.SqlServer.ManagedDTS) ssis 2012.

package is working fine in UAT environment

can anyone help me on this 

Dynamic Backup Database Tasks

$
0
0

Dear Team,

I am developing SSIS Package to backup my Database.

I need to deploy this package to other server there the destination path (where backup is tored) will be different from the development server. So I am need of use of parameter, however I am not able to find where can i select parameter in this task.

Also it would be good if I can change the database name also dynamically via paramters.

Any idea/solution for this?

I could see Destination Manual list and Selected database file in the properties, but no option to use expression there.

Thanks!
SHams


SSIS 2012 - how to find if a GUID belongs to the current package

$
0
0

Hi,

In the OnError Event Handler, I want create a Script Task that will find if the SourceID (The unique identifier of the executable in the event handler that raised the event.) belongs to the current package. If so, I will call a Logging package to log the error in a table, send e-mail, etc..

However, if the SourceID does not belongs to the current package, it means that a called packaged generated the error and already handled it, so no logging is required.

Thanks in advance,

Tiago Rente.

PS: If possible, can you provide the solution in VB :-).

T.

Lookup performance issue

$
0
0

Previously the staging data was getting lookup with full cache to find the Match and No Match for Insert and Update Operation.

Now the Lookup data holds around 1 Million records and Data Flow Task failed to execute .

Since with Full cache  is using  Memory Operation it gives the error.

Decided to load the data in Cache File and use in Lookup to do minimum changes but that too fails

The buffer Manager failed a memory allocation call for 1638000 bytes , but was unable to swap any buffer to remove memory pressure . 2290 buffer were considered and 2 were locked 

tried to change the Setting for the data Flow task DefaultmaxBufferRow -500 and Defaultbuffersize value is as it is but it failed

Decide to divide the data into series and tried to load in cache file but cache file can be used once . please suggest

running SSIS in SQL server (Integration Service Catalog) - credentials not being passed

$
0
0

Ultimately I am running this item as an SQL job:
-SQL 2012 patched
-Visual Studio 2012 w/ Business Intelligence
-package is created in VS and then updated to the Package Deployment Model
-VS deploys the package to SQL, no parameters are given

Problem: The package seems to be running under the SQL Agent account (NT Authority.....) as per the logs showing failure .  It works locally if in the package I set the connection to "localhost" but if I use the IP of the server is fails.

If I try and run it against a remote SQL server it fails stating the account is not from a trusted domain (again this points to credentials not being passed)

:

I ran this as a job using a proxy account and am still experiencing the same error.

I used my domain account which is equivalent to SA and was created on server installation.


I created credentials (there is a little lock symbol?) and then the Proxy accounts:

I have done this before in SQL 2008 without issue but this is a new server installation of 2012.

help?

 


Job error

$
0
0

I have a job 

error 

Message
Executed as user:  Microsoft (R) SQL Server Execute Package Utility  Version 10.0.2531.0 for 64-bit  Copyright (C) Microsoft Corp 1984-2005. All rights reserved.    Option "DW;Integrated Security=True;Application Name=5;" is not valid.  The command line parameters are invalid.  The step failed.

Command 

@command=N'/FILE "D:\7-Achat\1_SSIS ALT\SSIS ALT\Achat.dtsx" /CONNECTION DW1;"\"Data Source=.;Initial Catalog=""ALT DW"";Integrated Security=True;Application Name=5;\"" /CONNECTION "LocalHost.ALT";"\"Data Source=172.30.16.40;Initial Catalog=ALT-PROD;Provider=SQLNCLI10.1;Integrated Security=SSPI;Auto Translate=False;Application Name=A;\"" /CONNECTION "localhost.ALT DW";"\"Data Source=.;Initial Catalog=ALT DW;Provider=SQLNCLI10.1;Integrated Security=SSPI;Auto Translate=False;Application Name=2;\"" /CONNECTION "localhost.Carthage";"\"Data Source=.;User ID=sa;Initial Catalog=CarthageDali;Provider=SQLNCLI10.1;Persist Security Info=True;Auto Translate=False;Application Name=3;\"" /CONNECTION "localhost\bi.Achat";"\"Data Source=localhost\bi;Initial Catalog=Achat;Provider=MSOLAP.4;Integrated Security=SSPI;Impersonation Level=Impersonate;\"" /CHECKPOINTING OFF /REPORTING E', 
How to correct it .?

issue with eventviewer xml and ssis import

$
0
0

hello,

Since several weeks, I 'm tried to solve this issue :

I export the security eventviewer with this command line :

wevtutil qe Security /c:20 > c:\evtdump.xml

I create xml task source on SSIS and try to generate XSD.

Until here, I have only warning because of the number of caracter on some data imported.

My really issue is SSIS find only 1 record on my file whereas I have 20.

If I open my file on IE I see only 1

If I open my file with an editor , I can see 20 lines.

If I use this command line to export eventviewer log :

wevtutil qe Security /c:20 /e:root > c:\evtdump.xml

I can see my 20 lines on IE but I can't generate XSD with SSIS because of several namespaces.

What I have to do to solve this problem ?

Thanks


Project level connection is not found in ssis logging

$
0
0

I got below error for SSIS Logging while run package individually. My "Test_DB" connection is at Project Level.If I convert it to package level then its working fine.

Error: The connection "Test_DB" is not found. This error is thrown by Connections collection when the specific connection element is not found.

This issue is already logged and marked as closed but still I face this issue.  SSIS logging is inserting data into sysssislog table but i am concern about error message. I am using SQL 2014 and VS-2013. 

https://connect.microsoft.com/SQLServer/feedback/details/988195/project-connection-not-found


Thanks & Regards, Ravindra



SSIS Excel import skip first rows

$
0
0
Hello,
1. Is it possible during import data from Excel to DB table skip first 6 rows for example?
2. Also Excel data divided by sections with headers. Is it possible for example to skip every 12th row?

Thank you,
V. A.

Skipping header in Excel

$
0
0

In reference to the post here Skipping Rows in Excel, I'm using the query 

SELECT        F5, F6, F7, F8
FROM            [Sheet1$]
WHERE        (F5 IS NOT NULL) AND (F5 <> 'PrimeDeal#')

PrimeDeal# is the headerFieldName, but this not helping me. i still see the header names in the list. What am i doing wrong here?

Viewing all 24688 articles
Browse latest View live


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