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

Difference between script task in 32 and 64 bit mode in 2008

$
0
0

We are migrating our packages from the package deployment 2008R2 packagedeployment to 2012 projectdeployment.

One of our packages contains a sript task that implements a guessing of a rate in a newton rapson way. when we execute the package in sql2008 (100) using a commandline with /x86 (or the checkbox 32 bit mode from the sqlagent) we get more results, meaning less NaN, compared to using the 64 bit mode.

The productional version of 2008 runs with the /x32 version. In the sql2012 (110) version however regardless of the mode (using program files (x86) or program files, dtexec with or without the /x86 parameter) produces the same result as the 2008 64 bit version.

Is there an explanation for the difference, maybe even a suggestion how to get more values/less NaN's?


64 BIT DTSDebugHost.exe for xml validation

$
0
0

In SSIS configuration properties -> Debugging -> Debug Options -> Run64BitRunTime =True. Even though its enabled true my system runs only DTSDebusHost.exe*32 and not

DTSDebuGHost.exe placed under D:\Program Files\Microsoft SQL Server\110\DTS\Binn .

How to trigger DTSDebusHost.exe*64 for my XML load process ?

hope if its run in 64 bit this issue will be over come.

Kindly someone help on this .

system error: Logon failure: unknown user name or bad password - SSIS error

$
0
0

Dear All,

I'm trying to execute a SSIS package via proxy user but I keep getting the following error message regardless of I have tried to do to fix it, I have done the following so far:-

1. Recreated the proxy user

2. Retyped the password, under credentials

Message
Unable to start execution of step 1 (reason: Error authenticating proxy "proxyname", system error: Logon failure: unknown user name or bad password.).  The step failed.

Thank you in advance!

Merge Join Transformation - No output rows redux

$
0
0

I am having an issue that sounds to me exactly like one previously posted in this forum ("Merge Join - No Output Rows" posted Thursday, April 24, 2008 7:08 PM by Dhowe), but the answers provided in that case have not resolved my issue.

I am using SSIS in SQL Server Enterprise 2005.  I have two OLE DB data sources from two disparate databases (IBM DB2 and Microsoft SQL Server), some columns from each of which are to be included in the merged output results.  I have noted the various requirements in the forum postings with regard to sorting the OLE DB sources and specifying the output source columns as being sorted, as well as the requirement that the join fields in the two sources be close/exact matches.  Yet, when I run this in VS, while the work area reflects the expected number of rows being input into the Merge Join transformation, no count is reflected as output from that transformation into the final destination table.

Specifically, my two data sources (IBM DB2 and MS SQL) are configured as follows:

IBM DB2 contains an SQL statement that uses Cast operations to create the result columns.and an ORDER BY clause to ensure that the output is sorted by the desired two columns..  The OLE DB source property setting for IsSorted is set to true; the Output Columns folder column definitions for "key_source_dtsy" and "key_source_dtrt" have their SortKeyPosition properties set to 1 and 2, respectively.  Those field are both defined as data type DT_STR, with lengths of 4 and 2, respectively.  Below is the Path metadata from the Data Flow Path editor from the path from this source:

IBM DB2 source
"Name" "Data Type" "Precision" "Scale" "Length" "Code Page" "Sort Key Position" "Comparison Flags" "Source Component"
"ID_CODE" "DT_STR" "0" "0" "10" "1252" "0" "" "Source F0005 User Defined Codes"
"CODE_DESCR_1" "DT_STR" "0" "0" "30" "1252" "0" "" "Source F0005 User Defined Codes"
"CODE_DESCR_2" "DT_STR" "0" "0" "30" "1252" "0" "" "Source F0005 User Defined Codes"
"key_source_dtsy" "DT_STR" "0" "0" "4" "1252" "1" "" "Source F0005 User Defined Codes"
"key_source_dtrt" "DT_STR" "0" "0" "2" "1252" "2" "" "Source F0005 User Defined Codes"

MS SQL contains an SQL statement that takes the columns as they are in the MS SQL table (no Cast operations needed); it also uses an ORDER BY clause to ensure the output is sorted by the join columns.  The OLE DB source property setting for IsSorted is set to true; the Output Columns folder columns for "key_source_dtsy" and "key_source_dtrt" have their SortKeyPosition properties set to 1 and 2, respectively.  Those field are both defined as data type DT_STR, with lengths of 4 and 2, respectively.  Below is the Path metadata from the Data Flow Path editor from the path from this source:

MS SQL source
"Name" "Data Type" "Precision" "Scale" "Length" "Code Page" "Sort Key Position" "Comparison Flags" "Source Component"
"id_code_name" "DT_I2" "0" "0" "0" "0" "0" "" "Source CodeName in db dwVdFY"
"key_source_dtsy" "DT_STR" "0" "0" "4" "1252" "1" "" "Source CodeName in db dwVdFY"
"key_source_dtrt" "DT_STR" "0" "0" "2" "1252" "2" "" "Source CodeName in db dwVdFY"

The Merge Join transformation specifies an INNER JOIN using the columns named "key_source_dtsy" and "key_source_dtrt" from the respective data sources.

I know there are alternative ways of accomplishing my intent (Lookup, port MS SQL table to IBM DB2 so join can occur in SELECT statement, etc.; however, I'd like to use this functionality and assume that it should work.   I also assume I'm overlooking something (example, I knew nothing about the properties in the OLE DB Source Output until I searched this forum).  I welcome your assistance with this.

Tell a package to stop executing on failure

$
0
0

Hi,

I am using SQL Server 2012 SP1.

I have built an SSIS package that imports flat file data from various files to SQL Server.  I have got it to do everything I want it to do when things are going well, and am now on what I want it to do when it encounters a failure executing specific tasks and containers.  For example, I have a Foreach Loop container that executes a dedicated stored procedure for each csv file in the target folder.  If any of the store procedures fail to run for any reason I want to carry out certain actions.

For the most part I think I will be fine using the Event Handlers.  What I can't seem to find is how to tell the package to stop executing on a Failure event after carrying out the actions defined by the relevant Event Handler.  Please can someone tell me how this is done.  Or, perhaps it isn't necessary as that would be the default behaviour on a failure?

TIA,

Charles

Sending Emails By looping

$
0
0

Hi All,

First of all, I am very new to SSIS. I came across a requirement that I need create files and send emails, I have done experiments on these two individually. But together this is what I need to do and create a package that does all..



 

From the result of a SQL query above, in a location create excel files Administration.xlsx, Cafeteria.xlsx, Front Office.xlsx that has their own data rows, then email those files to the appropriate employee. Person1 and person2 will receive Administration.xlsx, manager will receive Cafeteria.Xlsx and sec will receive Front Office.xlsx.

Is it possible to create a dtsx package that does them all? Pls advise and Thank you in advance.

Ram

SSIS 2008 R2 - How to add columns to an existing mapping with destination DB table

$
0
0

Hello,

The only way to add a new column to an existing mapping that I know is to go to advanced editor and refresh.

This however keeps only the default mapping (where the field names match), the rest is wiped out, so need to restore the mapping manually after that.

Risky and annoying at the same time.

Is there any alternative?

Thanks


SSIS question

SSIS OData error - An item with the same key has already been added

$
0
0

Hi 

Using the OData connector to get data from SharePoint but getting the error below? Not sure what the error is referring to?

Its just this list that is causing the error i can connect to other lists no problem?

I have also tried to only bring back individual columns using the query options which seems to get around the issue but seem unable to return multiple columns (currently using the syntax $select=NPS) but all my column names have spaces in sharepoint so not exactly sure how to reference a column name with spaces using the $select method.

Hope someone can help


CSV extract error : SSIS exec S_PROC and write into CSV files

$
0
0

Hi ALL,

It is a just a simple SSRS report, but the column header needs to be like user.Email, user.FirstName, user.Surname etc. When downloading the file in csv the dots get replaced by underscore, which is unacceptable by business. This is a known SSRS issue.

So now we have decided to move onto SSIS package.

I am just struggling to do a simple task of executing a Stored procedure (using ExecuteSQLTask component) and writing it into a flat file. Thought this would be an easy & quick fix.

Can someone please help me with the steps to follow if I want to Exec a S_proc and write the output into a csv file please ?

validate and avoid Invalid row from Flatfile when we import Flat file in ssis.

$
0
0

hi 

  I have a flat file which have some record data ex.

id    name    team1     "A"my"     "Bl"ue"s"
2     "Bob"     "Reds"
3     "Chuck"   "Blues"
4     "Dick"    "Blues"

in above example first record contain invalid data so complete flat file will not import due to one invalid row or record in flat file. so is there any way to check invalid row from flat file and ignore it(write log about invalid record) and process importing flat file. please help me if any query regarding question let me know.

thanks

No 64 Bit provider available for Oracle

$
0
0

I have been developing SSIS jobs for a short period of time. I had been doing so in a 32 bit environment. I recently had to have my system reimaged. When this was done, my system was upgraded with to 64 bit.

Now when I run the jobs I had created which connect to Oracle, I get the following error messages:

 

[Connection manager "HPSMRP.WORLD.ITSReporting1"] Error: SSIS Error Code DTS_E_OLEDB_NOPROVIDER_64BIT_ERROR.  The requested OLE DB provider OraOLEDB.Oracle.1 is not registered -- perhaps no 64-bit provider is available.  Error code: 0x00000000.

An OLE DB record is available.  Source: "Microsoft OLE DB Service Components"  Hresult: 0x80040154  Description:"Class not registered".

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

I am also getting these error messages on new packages I create which connect to Oracle. I dont have any problems with connections to SQL.

If I change the Run64BitRuntime option to False, I am able to run the package just fine. However, I do not wish to have to change this for every new package I create.

dts config file using SSIS Package

$
0
0
after developing SSIS Package (.dtsx file) if I need to deploy to all environments dynamically, then how can I create  .dts config file and mention properties in it ? 

MBH

bcp Command not working

$
0
0

Hi

Please can someone help....

I am trying to extract bcp files from a folder, however its not working:

C:\bcp Juliansql.dbo.extract_acct_submit out C:\bcpexport\extra
ct_acct-Submit.txt -T -c

What am I doing wrong?

Help please.........

Thanks




SSIS Foreach Loop Container passing variables to SQL Store Procedure

$
0
0

Hello,

I am not sure if this is the right place to ask SSIS and SQL Store Procedure question.  If not, please advise.

I am having a challenge to pass the filename variable from SSIS Foreach Loop Container to SQL store procedure.  I have an "Execute SQL Task" inside "Foreach Loop Container" which will receive the input filename parameter passed by the Foreach Loop Container.  The store procedure command line is defined as "EXEC sp_mySQLStoreProcedure  ?" within the "Execute SQL Task".  The Foreach loop container will gather the filenames from File System then put it in the filename variable one by one.  I would like to pass the filename variable as the input parameter to the sp_mySQLStoreProcedure in the "Execute SQL Task".  How can I connect the variable and the store procedure so that it will process all the input files gathered by the Foreach Loop Container?  Could someone shed some light on this? 

Thanks!


Brian

Call API from SSIS

$
0
0

SQL 2014 - SDDT/VS 2012

I need to call an API and download data using SSIS.  I need to authenticate to the API using a token.  Can someone please help me understand how I can do this?  I've never called an API/Web Service from SSIS, and have little programming experience using the scripting task.  If you can either provide detailed steps or point me to a link that will show me how to do this I'd greatly appreciate it.

Thanks in advance.


André


SSIS Package Run Excel File Error

$
0
0

Hi,

I have an SSIS package that populates an Excel file. The package is run from a SQL Server Agent job.

It all runs fine, but now I have added a Macro to the Excel file. This macro causes the Package to fail when it is run. Are there any permissions I need to add to allow the SQL Agent account to run the macro? The file is saved on local drive. It runs fine when I debug in Visual Studio.

Any ideas?

This is the error:

The file name or path does not exist. • The file is being used by  another program. • The workbook you are trying to save has the same  name as a currently open workbook. at  Microsoft.Office.Interop.Excel.Workbooks.Open(String Filename, Object  UpdateLinks, Object ReadOnly, Object Format, Object Password, Object  WriteResPassword, Object IgnoreReadOnlyRecommended, Object Origin,  Object Delimiter, Object Editable, Object Notify, Object Converter,  Object AddToMru, Object Local, Object CorruptLoad)

Thanks!

SQL to CSV using SQL Server Managment 2005 Studio

$
0
0

I use sql Server 2005 to transport SQL file (table) to CSV using the "Flat fole destination" option.
I choose a file name with the extention of CSV

I use images which are better then words in this case. The wizard takes me through the proccess and does not live margin for error. then what is the error??. 

appreciate help

Thanks

Dov

Executing SSIS with sql job -getting error

$
0
0

Microsoft (R) SQL Server Execute Package Utility Version 9.00.5000.00 for 32-bit Copyright (C) Microsoft Corp 1984-2005. All rights reserved. Option "/X86" is not valid. The command line parameters are invalid. The step failed.

Use component for development vb 2012 and deployment sql server 2012.


SSIS job run from SQL Server agent produces different results from benig run direct

$
0
0

Hello

I wonder if anyone can help me with the weirdest issue I am having. I have created a SSIS package that uses a SQL view to populate an Excel spreadsheet and then email that out to a set of people. When I run the package in Visual Studio it runs correctly and when I export it into Integration services it works correctly but when I run the same package from SQL Server Agent it adds 1 day to the date.

The package and all agents etc are on the same server and the regional settings are all correct. I have tried to do the same thing on a test server and I didn't have the same issue.

Has anyone heard of this happening and how to combat it?


If you found this post helpful, please mark it as helpful. If by some chance I answered the question, please mark the question as answered. That way you will help more people like me :)

EXECUTE AND VISUALIZE PERFORMANCE ISSUE USING BIDS HELPER

$
0
0

Hi,

   I have installed BIDS HELPER in my office laptop and execute a ssis package using 'EXECUTE AND VISUALIZE PERFORMANCE' option. The problem is package execution completed with in 1 second and not loading the data in destination table. Why this is going on? 

MY visual studio version is 2010 and sql server is 2012.

I installed bidshelper for 2012


tsrkreddy

Viewing all 24688 articles
Browse latest View live


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