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

C# code to connect Netezza using OLEDB provider

$
0
0

Hi All,

I want to connect netezza using c# need help I managed to write this but didn't worked

OleDbConnection con = new OleDbConnection("Provider=NZOLEDB;Password=password;User ID=x;Data Source=x;Initial Catalog=OCEAN_FX;
Persist Security Info=True;Port=5480;Logging Level=0 or 1;Log Path=Path to log;Optimize for ASCII=True / False;");
            OleDbCommand cmd = new OleDbCommand();
            OleDbDataReader dreader ;
            cmd.Connection = con;
            cmd.CommandType = CommandType.Text;
            cmd.CommandText = "select ACTION from x ";
            con.Open();
            con.Close();
            dreader = cmd.ExecuteReader();
            DataTable dt = new DataTable();
            dt.Load(dreader);
            OleDbDataReader reader1 = cmd.ExecuteReader();
            while (reader1.Read())
            {
                string a;
                a = reader1["ACTION"].ToString();
                MessageBox.Show(a);
            }



Sri.Tummala


Excel File in Dropbox - Unable to connect to the source using connection manager

$
0
0

Hi,

I am using SQL Server 2012 and Office 2016. I have an excel file on Dropbox that I want to load to a database using SSIS. On Data Tools, I set up the connection manager pointing to the excel file but the Excel Source in my Data Flow Task is not connecting. I picked Excel Version 2007 (the latest one I could find) and set my Run64BitRuntime to False. I also tried copying the excel file to my desktop and connecting to that instead but no luck. Any thoughts?

SSIS CACHE TRANSFORMATION LIMIT

$
0
0
What is the limit on CACHE TRANSFORMATION  TASK  ? For example i have 10 column each one about 20 char . How many rows can i store in it and utilize it in LOOKUP ?

Powershell output to File

$
0
0

Hi Everyone,


Need a solution to write PowerShell script output to a File using "execute process task" in SSIS.


Thank you

Raj 


Raj

REMOVE ZERO FROM LEFT FOR 6 NUMBERS ALWAYS

$
0
0

Hello Guys,

I'm receiving a number that contains 6 numbers always, but i need remove the first zero from left if exists..
I'm using SSIS and i need a help!

Thanks guys!!


Rafael Marvila IT Profissional

SSIS Package reading an excel file locks the file if error occurs in package

$
0
0

I have an SSIS package who reads an excel file and loaded it in a table. While reading the file if any error occurs due to data issues, the package fails and file gets locked. I am running the package from SQL Server 2012 Integration Services Catalog. The File path is configured using the environment variable.

How can we release the lock manually from SQL Server Integration Service Catalog after the package is failed? I have already checked the "Active operation", there is no package running anymore.

How can we fix it in SSIS package so that the file doesn't get locked if package fails while reading the file?

 

Fetch Index Fragmentation data for all databases from multiple all SQL Server using SSIS

$
0
0

Hi,

I am using cursor to fetch Index Fragmentation data of all databases from multiple SQL Servers in SSIS Package.

But Getting error 


[Source - Query [43]] Error: No column information was returned by the SQL command.
[Source - Query [43]] Warning: The external columns for Source - Query are out of synchronization with the data source columns.

Pls anyone help me to solve this issue.



Mark As Answer If My Reply Is Helpful<br/> Thanks<br/> Neeraj Bhandari (MCTS - Sql Server 2008)

SSIS package gets run automaticatically after having indicator file

$
0
0

Hi Experts,

I am new to SSIS and I have a requirement like below.

Daily 6 times I will get a indicator file into particular location and based on availability of this indicator file my SSIS package has to run automatically. I should not use any SQL server Agent.

I read some where by using WMI event watcher we can do this. Can some one help me is it correct or not.

Here indicator file is indication of that source got loaded. From source table I have to read data from SSIS package and load into target table

If it is not can guide me how to proceed this.

Thanks in advance.

Regards,

Kumar



Script component source in dataflow: Asynchronous method execution

$
0
0

Hi,

I'm trying to get a script build that needs to request a bunch of data from SharePoint. Basically I need to request all items from a SharePoint-list and then request the versionhistory for every field in every listitem. I've build this and it works but it is painfully slow because it needs to make a request for every field of every listitem, which takes quite a while with +6000 listitems of +40 fields.

So I figured, maybe I can speed this up using asynchronous tasks. But I'm having a hard time to get it to work. It keeps on nagging about syntax errors when I declare the asynchronous task:

async Task<int> Output(ListVersion oListVersion, string FieldName)

{

// my code

}

So my question: anyone have experience with this? Care to explain me how to do it?


SSISDB: Upgrade failure (2014,BI to 2016,Enterprise )

$
0
0

Hi, when attempting to upgrade my SSISDB from 2014 to 2016, I received the following error, and the upgrade failed on the last step.

><Message>Cannot drop the assembly 'ISSERVER', because it does not exist or you do not have permission.&#xD;

Changed database context to 'SSISDB'.</Message><Property>SSISDB upgrade</Property><Status>Failure</Status><Value i:type="a:string" xmlns:a="http://www.w3.org/2001/XMLSchema">System.Configuration.ConfigurationException: Cannot drop the assembly 'ISSERVER', because it does not exist or you do not have permission.&#xD;

Changed database context to 'SSISDB'.&#xD;

   at Microsoft.SqlServer.IntegrationServices.ISServerDBUpgrade.UpgradeManager.InspectForExceptions(Pipeline pipeline)&#xD;

   at Microsoft.SqlServer.IntegrationServices.ISServerDBUpgrade.UpgradeManager.Execute(Command command)&#xD;

   at Microsoft.SqlServer.IntegrationServices.ISServerDBUpgrade.UpgradeManager.UpgradeIntegrationServicesDatabase(DatabaseServerInformation serverInformation)&#xD;

   at Microsoft.SqlServer.IntegrationServices.Wizard.Common.Model.DBUpgradeModel.DBUpgrade()</Value></SummaryReportItem></ReportItems></Results><Summary/></WizardReport>

Any ideas ?

Thanks, David

Can't Insert to Oracle from SQL using ADO.Net adapter

$
0
0

I have a very simple data flow with SQL Server ADO.Net as a source and Oracle ODP.Net destination.

The data flow hangs when the first buffer is trying to insert to Oracle. 

Eventually it will fail.  It has failed for different reasons.  The current is:

" [ADO NET Destination [2]] Error: An exception has occurred during data insertion, the message returned from the provider is: ORA-06550: line 118887, column 1:PLS-00123: program too large (codegen operands) "

If I monitor Oracle OEM express at that time it indicates a long CPU wait for the session until the package fails.  If I try to expand the SQL being executed it hangs OEM and Internet explorer has to be restarted.

I've tried on both Oracle 12c and 11g Databases.

I've tried both the 11g and 12c ODP.Net versions.

Thanks,

SSIS Project Deployment Types - Review

$
0
0

Hello All,

Sorry to bother you with a mundane question. All the various deployment types confuse me to no end - yet they seem to be heavily tested on the 70-463 exam.

Do any of you have a terrific resource for learning how to better identify the seven (count 'em)  deployment methods?

Thank you in advance,

Scott

Tucson, AZ

Polling Mechanism In SSIS- Availabilityof file to process in SSIS

$
0
0

Hello Techie,

Using SQL SERVER 2014- SSDT

i have created a SSIS Psckage. The Script Task of the package
will upload the different files to their respective table. and also move the file
to archive folder.

how come i create polling mechanism which tell the package to execute
once the file arrived to the folder, and log the package start and end time to the 
table. without using WMI Event Watcher Task or any third party tool.

may anyone please share their expertise.

Error while importing/exporting .xslx Microsoft.ACE.OLEDB.16.0 / 15.0 / 12.0

$
0
0

My Setup is as follows:

Windows 8.1 - 64bit

SQL 2016 GA -  64 bit

Office 365 - 64 Bit.

- Have installed Access Drives for office 2007, 2013 all 64 bit.

Now none of the solutions described online have worked so far.

Office 2003 components worked fine. All other even after getting installed and being shown in list of providers is not working.

I am getting the same error ...

TITLE: SQL Server Import and Export Wizard
------------------------------
The operation could not be completed.
------------------------------
ADDITIONAL INFORMATION:
The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine. (System.Data)
------------------------------

Since I have installed the office 365 - from online Click-to-Run process. it wont allow me to install any other setup as it conflicts with the click to run installer.

All this is quite a pain and after so many years and version I dont get it whats wrong and why we have to keep doing so many things just to get this basic stuff working.

I guess I will install all this on a new server and then check... But its quite annoying... Hope there is some better work around of fix for this.

Downloading XML file from Rest API

$
0
0

I have been doing some research about calling a REST API from SSIS and most of them suggest a Script Task. I am not much of C# coder and was wondering if there are any other options. My goal is call the web service, save the output as a .xml file and load the data into a table. Any suggestions would be appreciated.

Thanks!


Split pipeline data based on Max Date in SSIS

$
0
0

Hi - newbie here. I have some excel data in the pipeline that looks something like this:


DateDirectionIdentifierPriceQuantity
7/28/2016BuyAMZN748.25200
7/29/2016SellAMZN751.150
8/2/2016SellAMZN753.23150
8/2/2016BuyAMZN749.76300

I have used a Data Conversion Transform to adjust the data type so I can push out the data to my database tables. I want to take the rows with the last date (in this case 8/2/2016, but more dates will get added so I need to take Max(Date) or something like that) and put it on one table. Then I want to take the rest of the data and put it on another table. What's the best way to do this?



SSIS: get value which is inserted by identity column and inserted value store in table

$
0
0

hi

i have scenario that insert the value in table using oledbcommand and table has ideentity column. that column value auto generated. so how i can store that identity inserted value into another table ? 

Oledb command that insertinto table identity column is idfact

insert into identiyvalue which is genereate by idfact using oledb spource 

SSIS: Can we know which row inserted after OLEDB destination? same like OUTput clause?

$
0
0
once data load to destination i want to know which row are inserted so there is any way to check that after oledb destination same like we do in sql using output clause

Sql Command From Variable Evaluate Expression

$
0
0

Hi,

In a an ole db source componenet I need to use a sql command from variable, because the table name changes dynamically in a loop.

I have defined a SSIS variable with an expression that changes at execution.

The problem is that the component gets broken with an error due to evaluation at design, as the

I saw an example with script task that can solve this problem, but my question is if it can be solved in a more simple way ?

Create a Trailer record in a flat file using SSIS

$
0
0
Hi, I am looking for some help on how to create a trailer record in a flat file using SSIS, I have create a SSIS package that creates a custom header and loads other record from the database into the flat file, it is a fixed width flat file. Now at the end of the file I want to create a Trailer Record along with some static text and Record count. I tried looking on to google but could not get any good example. Any help is appreciated.
Viewing all 24688 articles
Browse latest View live


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