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

Converting text to varchar in a variable

$
0
0

hi all,

i am getting  CUSTMER_ID  like ('1234','23456','23445','9845'.....)  almost 3k  Customers in single row, i am selecting this from a table a running through execute SQL task and  capturing the result in a variable , but when i try execute the task i am getting the error saying variable value is differs from the current variable. i converted the column to varchar(max) but no use.

please help me to solve this issue , any help will be appreciated. 


regarding ssis - Restart package on error

$
0
0

hi,

  I have two data flow tasks in package, in that one of dataflow have 1000 records, in middle of that i am getting a error, if i solve that error and re run that package , that should start from point of failure, help me


Log file Creation in SSIS

$
0
0

Hi All,

I have 300 packages in SSIS,can we create a single log file for all packages ?,I want to create a single .log file for all packages.

Thanks in Advance....

SSIS failover - Continue to run from the failover point on another server

$
0
0

Hi All

We have 2 physical servers (Server1 and Server2). In Both the physical servers SSIS and Sql server is installed. <o:p> </o:p>

We have Sql server Database on Server 1 which is mirrored and synchronized with Database on Server 2 .

Requirement 1 : Jobs and Packages are running under server1 ,If any failure in the server1, Packages or jobs should automatically point to the server2 and run the packages or jobs from the same point without any failure.

Requirement 2:If the server on which SSIS is running fails , then how to maintain continuity/High Availability so that secondary server will pick the same and jobs should continue to run .

Thanks in advance

<o:p></o:p>

<o:p> </o:p>


loading xml file in ssis?

$
0
0
what properties we need to set for loading xml file in to table?

Failure when transferring data from Excel to SQL Server

$
0
0
I just installed SQL Server 2012 onto a 64 bit server.  I am trying to transfer data from an Excel spreadsheet 2007 in BIDS to SQL Server and got an error:

AcquireConnection method call failed with error code 0xC0202009

.  I read that the 64 bit configuration for the project was the problem and I changed the Run64BitRuntime for the project to false.  I reran and am still having the same issue. I am running the project within the Visual Studio Environment.  I saved the project closed and reopened and tried again.  Same problem.  I am also getting this error: An error has occurred while connecting MSOLEDB_SqlServer: Exception from HRESULT: 0xC0202009 and this error as well:  An error has occurred while connecting AdvDB: Exception from HRESULT: 0xC0202009. 

how to increment a column of a table while loading data into a table from flat file.

$
0
0

Hello,

I've found few question related to this and tried to implement those solutions (using vb.net code, etc) but was not successful. Please  go through my question and help me.

I am loading a sql server table from a flat file. Currently I am hard coding a column of the sql server table  with 0. Now, I want to change it to a incremental column.

Example, if I load the table today with 5 records, this column should have values 1,2,...5 and tomorrow when I load with 3 records, this column should have values 1,2,3. So, for every date, there will records starting from 1 to n.

I tried below solution which seemed very promising, but it didn't work.

http://www.sql-server-performance.com/2008/ssis-auto-increment/

This is a production issue. Any help is highly appreciated.

Thanks in advance.


[SSIS.Pipeline] Error: "CDCSource-Table" failed validation and returned validation status "VS_NEEDSNEWMETADATA".

$
0
0

[SSIS.Pipeline] Error: "CDCSource_Table" failed validation and returned validation status "VS_NEEDSNEWMETADATA".

This issue happens when we generate SSIS Packages using BIML script. The Packages are generated successfully. The package execution fails on first time with above error. But when we run it again after "opening CDC source  and close it", there is no more issue. The meta data refreshed automatically. Package executing successfully. This is not related to the Meta data changes of tables involved in CDC Task.


Vedaraj



SSIS Loading SSIS Dictionary Tables

$
0
0

I am trying to load the dictionary tables. The package executes but they do not load in the table.  Please review my package below for any corrections I can make. Thanks

Excel source Plus

$
0
0

HI all,

Can anyone explain me how to use excel source plus, if possible please explain with the sreenshots.

i'm confussed of using Named range,Raw value,Formula!!!!

Thanks in advance, appreciate your help!!!!!



SSIS - Cannot show the editor for this task.

$
0
0

Using the VSTA 2010 install that comes with SQL Server 2012  - I create a new package.  Drag an "Execute SQL Task" onto the workflow.  Click the task to open the editor - The editor fails to open giving the following error message:

TITLE: Microsoft Visual Studio
------------------------------

Cannot show the editor for this task.

------------------------------
ADDITIONAL INFORMATION:

Value does not fall within the expected range. (mscorlib)

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

OK

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

The issue has been observed for most of the tasks.  The ones that appear to work fail when I exit the editor after supplying some values.  The same problem Exists for VSTA 2012.

Please note that I have done several uninstall/installs.  The problem is unlikely to be an installation one.


bubbling exceptions up from sub packages

$
0
0

Hi.  We run 2012 std.  We r trying 2 get our heads around the options we would have customizing capture of exceptions that bubble up (if that is possible) to our master pkg from sub pkgs.  This question is independent of ssis's sys logging.

My recollection is that ssis tells us a lot (maybe too much repetition) about exceptions.  Our goal is to customize how we deal with exceptions at lower levels in the master pkg itself (perhaps in the .net service that calls the mstr if that can be bubbled up) so that we aren't incorporating the same custom logging at every level of the ssis call "tree/structure".

We capture some exceptions already in vars by incorporating try catch blocks in our c# scripts.  But haven't addressed yet how those might be bubbled up.  It is hoped that whatever we do with these can mimic what we do with exceptions thrown by other ssis components where there is no c# code to catch the exception.

Can the community get us started?


Package is running faster

$
0
0

Hi,

We have added few tables and altered existing tables in our DWH.

We added 3 packages into batch job.Earlier execution time was 5 hours. It is reduced to 3 hrs.

Our batch job has daily,weekly,monthly months.

What are the reasons to reduce the time of run, even we did not take any performance changes.

Data is fine for the tables which are loaded.

Any one of you faced this situation?

Thanks in advance.

Trouble Turneing on FileStream/Ad Hoc Query with new SQL Server 2014 64-BIt Version

$
0
0

SQL Server Help,

I have recently installed SQL SERVER 2014 on my Window 7 SP1 Acer laptop.

I am trying to do a simple upload of an Excel file into SQL Server using the OPENROWSET command:

Which I found requires some configuration change I attempted below.

When I execute this:

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

execute sp_configure 'show advanced options', 1;

RECONFIGURE;

execute sp_configure 'Ad Hoc Distributed Queries', 1;

RECONFIGURE;

GO


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

I get this message

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

Configuration option 'show advanced options' changed from 1 to 1. Run the RECONFIGURE statement to install.

Msg 5593, Level 16, State 1, Line 2

FILESTREAM feature is not supported on WoW64. The feature is disabled.

Msg 15123, Level 16, State 1, Procedure sp_configure, Line 62

The configuration option 'Ad Hoc Distributed Queries' does not exist, or it may be an advanced option.

Msg 5593, Level 16, State 1, Line 4

FILESTREAM feature is not supported on WoW64. The feature is disabled.

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


When I go to the SQL Server Services and Properties on the Server and try to change the FileStream options to be on..I get the error:

"There was an unknown error applying the FILESTREAM settings.  Check the parameters are valid (0x80070002)."

Perhaps my issue is with the Windows Share Name:  .  I have put in a local driver C:\A_Excel....also the computer name, my user ID.   Is there a special format or way to define a Share Name that I am unaware of?

Is there a way to fix this?  Can I not load Excel files with a 64-Bit system?  Or what is the easiest way that I can do this with my configuration?

Thanks for any help.


The AcquireConnection method call to the connection manager "Excel Connection Manager" failed with error code 0xC0202009

$
0
0

I have deployed my packages into Sql Server and I am using Configuration File. As my Data Source is Excel, I have changed the connection string during deployment with Server Path. But I am getting the following errors. Actually the File Exist in Path. May I know What is cause of the issue? Do I need to give any permission to execute the package.

 

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

 

component "Excel Source Service Contract Upload" (1) failed validation and returned error code 0xC020801C. 

One or more component failed validation. 

 

There were errors during task validation. 

DTS_E_OLEDBERROR, Error Code: 0x80004005 Source: "MS JET DB Engine" Description : Path is not valid


 


Converting an XML file to a DAT pipe delimited file

$
0
0

Hi 

I'm trying to create an SSIS Package which converts an XML file into a dat file which is pipe delimited.
I want the package to be generic so that once that minimal modification is needed when using for different files.

I've so far had no luck with this and need some help/assistance.

All help fully appreciated.
Thank you 


Umar Javed

ADO Error in SSIS

$
0
0

Can somebody help me with my syntax?

Code to Import Bank Files (BAI, BAI2)

$
0
0
Anyone have some code to import bank files to SQL Server 2000 tables in the formats BAI or BAI2? I'm using a DTS package currently, but I'd like to have more control over this by using T-SQL or vbscript or something.
 
These files have complex structures/multiple record types.  Not to mention my main problem of trying to use a bulk insert which doesn't seem to work because of something to do with the row delimiters.  Not too sure what's up with that because I usually do this for all my flat file imports.  I'm certain vbscript will work, but I'd like to know if anyone out there has already built something for these particular files??
Thanks!
 

Sending file attachments in SSIS only if rows returned

$
0
0

I use this expression to send 8 email attachments from my DFT's.

@[User::CranReport1] +  "|" + @[User::ElizReport1]   +  "|" +  @[User::PlfdReport1] + "|" + @[User::CranReport2] +  "|" + @[User::ElizReport2]  +  "|"+  @[User::PlfdReport2]  +  "|" +   @[User::CranReportWinter] + " |"+  @[User::CranReportWinter2]

I have row counters in all my DFT's and would only like to send certain attachments if rows were returned. Has anyone done this?

SSIS- Oracle 64 bit OLEDB Provider gives unicode conversion errors only in one environment

$
0
0

I have SSIS Packages which uses 64 bit Oracle Client and 32 bit ODAC -Oracle Provider for OLEDB and extracts data from Oracle. The package runs fine in our DEV, QC and UAT environments But when run on PROD server, It fails with"cannot convert between Unicode and non-Unicode string types" error. We have many other SSIS packages which use the same Oracle Client and ODAC and run fine. Only the recently deployed one's fail.  When the packages is set to run as 32-bit, It runs successfully

We are unable to figure out why it fails only in PRD when the package is run as 64-bit. Any suggestions on this would be greatly appreciated.

Thank you for your time.

Viewing all 24688 articles
Browse latest View live


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