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

Attunity Oracle connector just spins and spins

$
0
0

So I've got an SSIS Job that uses the Attunity Oracle connector. I use a SQL Command to pull my info.

SELECT DISTINCT 
A,
B,
C,
D,
E,
F

FROM TableName
Where AwardDate >= TO_DATE('01/NOV/1990','dd/mon/yyyy') AND Location LIKE 'DC%'

This works great in SQLPlus and is accepted fine in the SQL Command within the Oracle Source. BUT when I go to preview or start the data flow it just hangs up. Preview will just sit there and not do anything. The Dataflow starts fine and the yellow circle just spins forever.

Any ideas?


SSIS Package to copy Tables from One DB to Another

$
0
0

Hi,

I want to create a such SSIS Package which will export data from All table of one DB to another DB, But in importing process SSIS Package should consider the last record of all table & ignore else.

Please Suggest

Cannot create an OLE DB accessor. Verify that the column metadata is valid.

$
0
0

Hi, I have a problem with the SSIS package in SQL Server 2008 R2. It basically reads data from a CSV file using the Flat File Source and puts it in a SQL table using OLE DB Destination.

It comes up with the "Cannot create an OLE DB accessor. Verify that the column metadata is valid." error, I have checked the data types they are fine, have looked at the source file and don't seem to spot any errors.

Any help by looking at my package and source file will be highly appreciated.

Thanks

Haris

Microsoft OLE DB Provider for SQL Server 2012 Analysis Services Error Code = 0x80040E05

$
0
0

I've been running a package for 6 months without any issues that pulls data from a cube via MDX and moves it to a database.

We've recently moved to a new server x64 and the connections all succeed but at runtime (in 64 = T&F) I get the following error:

[SRC AdExchange [87]] Error: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80040E05.
An OLE DB record is available.  Source: "Microsoft OLE DB Provider for SQL Server 2012 Analysis Services."  Hresult: 0x00000001  Description: "Error Code = 0x80040E05, External Code = 0x00000000:.".

[SSIS.Pipeline] Error: SRC AdExchange failed the pre-execute phase and returned error code 0xC0202009.

I've installed SQL_AS_OLEDB, SQL_AS_ADOMD from Microsoft® SQL Server® 2012 SP1 Feature Pack

Why is my connection failing?

Complex logic to be implemented in ssis- Kindly help!

$
0
0
Hi,
   I have a student table which has columns as StudentID, Enroll_date and class. If he is enrolled on Jan 2013 for Dance and then enrolled on May 2013 for Swimming means, from Jan to April, he was into Dance class.

Similarly we want the output till the current month (august).
I have given the i/p and the o/p. Can you please suggest me how to derive this using SSIS?

SSIS 2005: SFTP task with Winscp using private key.

$
0
0

Hi,

I am using Execute process task for SFTP using below script as argument:

option batch abort
open sftp://username:password@host.com:22 -Hostkey="ssh-rsa 2048 **:**:**:**:**:**:**:"

cd /TEST
option transfer binary

put C:\Desktop\test11.txt

Exit

Can any one tell how I can use private or public key to creat the SFTP task in place Hostkey?

Thanks,

Rana

SSIS 2005: PSFTP using execute process task

$
0
0

Hi,

I want to use execute process task to transfer file to SFTP location by using Putty (PSFTP). Please help me to achheive that.

Thanks,

Rana

Error Description of OLDE DB destination

$
0
0

Hi,

OLE_DB destination fails due to a UNIQUE Key constraint failure. How can I capture exact error message?

When I used a script coponent in redirect error rows of OLDE_DB component and wrote below code inside script, all I see "No Status is Available". Could you please help ?

Row.errDesc = ComponentMetaData.GetErrorDescription(Row.ErrorCode);



Issue in adding "Script Component Transformation" in Data Flow programmatically while generating SSIS 2008 package.

$
0
0

Hi there,

I am working on a Code Generator for programmatically generating SSIS 2008 packages. These packages will have various file sources viz. CSV, Text (Fixed Width), Excel. MDB etc. After transforming input data, it will be loaded into SQL Server 2008 R2.

Metadata (FileType, FieldNames, FieldDataTypes, etc) is used to generate these packages.

I am using following libraries for the same in my C# project:

  • Microsoft.SqlServer.DTSPipelineWrap
  • Microsoft.SqlServer.DTSRuntimeWrap
  • Microsoft.SqlServer.ManagedDTS

I am facing following  issues while adding "Script Component Transformation" in Data Flow programmatically.

1] Microsoft.SqlServer.Dts.Pipeline.CannotCreateUserComponentException: Cannot create user component class. Make sure there is one class marked with SSISScriptComponentEntryPointAttribute in your script.     at Microsoft.SqlServer.Dts.Pipeline.ScriptComponentHost.CreateUserScriptInstance()

This attribute exists for the class that is being added to script component.

2] The binary code for the script is not found. Please open the script in the designer by clicking Edit Script button and make sure it builds successfully.

There is no “PreCompile” option in SSIS 2008, the code is precompiled by default. But I might be missing something here.

When I try to click Edit Script button in generated package, I get following error:

1] Failed to create project at location:

C:\Users\<UserFolder>\AppData\Local\Temp\SSIS\<GUID>

The whole issue is related to “adding script code” to the component. I need some sample code for that.

The challenge here is that very limited technical help available online, and whatever available online is related to SSIS 2005.

Please provide any samples you have for implementing this particular requirement in SSIS 2008.

Your help is highly appreciated.

Thanks in advance.


Can't pass the variable in FTP task

$
0
0

I am writing the SSIS Program and try to get the file from FTP service.

Firstly, I will write the script and get the latest file name and the path, it saves the path in the variable (filename_ftp)

Then, I will try to get the file in FTP. As the file name is dynamic, I use the the expression and put the file name in the Remote variable. However, it prompts that my file name is not start with "/".

Anything wrong i make it in the case?

Error Occured while skipping data rows

$
0
0

Hello

I'm having a problem with a flat file source in that the package throws an error straight away. The error I get is as follows:

Information: 0x4004300C at Data Flow Task, SSIS.Pipeline: Execute phase is beginning.
Error: 0xC0202091 at Data Flow Task, Flat File Source [2]: An error occurred while skipping data rows.
Error: 0xC0047038 at Data Flow Task, SSIS.Pipeline: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED.  The PrimeOutput method on Flat File Source returned error code 0xC0202091.  The component returned a failure code when the pipeline engine called PrimeOutput(). The meaning of the failure code is defined by the component, but the error is fatal and the pipeline stopped executing.  There may be error messages posted before this with more information about the failure.

I've tried multiple things to resolve this.. Changing the OutputColumnWidth in the flat file connection manager, checking the file for any irregularites in notepad++ (each line ends as it should with CRLF), the file is encoded in UTF-8 without BOM and now I'm stumped as to what the problem could be. Any help would be appreciated.

Thanks.

Create Share Point Task using SSIS

$
0
0

Hello All,

            I would like to create task in share point using ssis. I understand that it can be done using script. Can anyone provide me sample of it?

How to compare two tables on two different servers, in SSIS within one package

$
0
0
Hi,

I need to compare two tables on two different servers. Could someone help me ?
Easily I need get rows from two tables (based on same keys), which exists into first table and not exist in second table(based on binary checksum(hashKey)). After that I need to load them into stage table.

server1.database1.table1.HashKey<>server2.database2.table2.HashKey2 --> this rows I need to received and insert them to table.

Thank in advance

Only the developer who created the SSIS package with custom task can import it

$
0
0

I developed an SSIS package with ProtectionLevel EncryptSensitiveWithPassword in VS 2008.  I imported the package in our dev and staging environments.

When I went to import the package on our production server, I didn't have the permissions to do so, and had an admin try it.  He however was met with the following error:

Exception from HRESULT: 0x0010026 (Microsoft.SqlServer.DTERuntimeWrap)

The way we ended up getting it imported is by granting me full sql permissions and having me to the exact same thing that the Admin was doing.  It has happened a few times, and I am the only one in the company who is able to import this package now. All I can think of is that another dev wrote a custom SSIS task, installed it in the GAC on the servers and everything in the package works great, except for the importing of the package itself.

We were standing up a new SQL server and migrating packages over, and this was the only one to encounter this issue.  There are other packages written by me that were fine, and all I can think of is that the custom SSIS task is causing the package to operate differently.  

Options?  Ideas?  Thanks!


Edit: SQL version is 2008 R2

SSIS (2008 R2) Fuzzy Lookup not working. Not matching similar names.

$
0
0
Hello,

I am running a very simple SSIS package with a fuzzy lookup that is not working. I am RDP'ing to the server (Windows Server 2008 R2 Ent) with SQL Server 2008 R2. 

I simply want to create a listing of all customer names and indicate if they are similar to other names (for example, ABC Inc is similar to ABC Inc.). I am comparing on a single column (Name).

When I run the package, it basically returns _Similarity = 1 for almost all names -- even though they are clearly similar. I have similarity threshold set to .7 and delimiters are space, carriage return, tab, and line feed. My data source is a table using OLE DB.


Here are partial results to illustrate what is happening:
Name _Similarity      _Confidence
ABC CORPORATION       1       1
ABC CORPORATION       1       1
ABC CORPORATION OF AMERICA - CEJ502453      1       1
ABC CORPORATION OF AMERICA - CEJ502870      1       1
ABC CORPORATION OF AMERICA,      1       1
ABC CORPORATION OF AMERICA,      1       1
ABC CORPORATION OF AMERICA,      0.9875       0.5
ABC CORPORATION/ MORVEN PARK      1       1


Sorry about the poor formatting but as you can see _similarity is 1 for all but a single name. Based on previous uses of this tool, I would expect ABC CORPORATION to be 1 and the remainder to be < 1, depending on the similarity.

I have found some articles online reporting similar behaviour but they seem to be having this problem when the data source is an Excel file. This is related to 32 bit office and 64 bit SSIS. I'm using OLE DB for my data source, not Excel.

I've experimented with different reference table settings, etc. -- all to no avail.

What am I missing.

Any help would be appreciated.

Let me know if I left any pertinent info out.

Thanks,
Brett

When does a package open its connections to flat files?

$
0
0

When does this occur? Does it open them all at the beginning of the package or when it first attempts to access them. I have a package which is unzipping some files and then importing the resulting CSV files. The CSV files won't exist at the start of package execution. Thanks,

Mark

ERROR CODE :HRESULT:0xC0202009 in dataflow from OLEDB to excel

$
0
0

Hi,

Few months(3 months) created a package of data flow(OLEDB to Excel)

with

1.SQL task  ---to create Excel sheet

2. data flow  ---Oledb to above excel sheet

for Excel connection ,assigned expression in Excel path: @[Merge_chg_excel_path]
+"Merge_CHG_"
+Right( "0"+(DT_WSTR, 30) month(getdate()),2)
+((DT_WSTR, 2)( DAY( GETDATE()))
+(DT_WSTR, 4) (YEAR (GETDATE())))
+"_"
+@[User::Merge_chg_filename]
+".xlsx"

Then successfully created and excel also created as per expression

Now I got problem to run the package with error of

[Execute SQL Task] Error: Failed to acquire connection "Excel Connection Manager". Connection may not be configured correctly or you may not have the right permissions on this connection.

even  in SQL  Task  by clicking PARSE query also showing  error of HRESULT:0xC0202009

Hence NOW I created new package with new excel sheet ---Its working

Again I assigned  expression in  excel connection  again same problem

Please guide me advice .

Thanks

-MADHU

can we install service Pack 2 directly on RTM version of SQL server 2008 R2 ?

$
0
0

Hi All,

i want to know can we install service pack 2 directly on RTM version of sql server 2008 R2?

Please confirm so we can update our system accordingly .

Regards,

Pawan Singh


Thanks


Deploying SSIS packages (created in Visual Studio 2010) to SQL Sever 2008 R2

$
0
0

I’ve developed the SSIS packages in Visual Studio 2010 and I need to deploy these packages that loads data into SQL Server 2008 R2. I came to know that, we can’t deploy because the SSIS doesn’t support backward compatibility.

I have BIDS 2008 but when I tried to load those packages (developed in Visual 2010), I’m getting the following error –

My question is – How do I get those packages in BIDS 2008 ? Do I have to re-create those packages again in BIDS 2008 ? or Is there any Woraround ?

Thanks.


Narsimha

Read Text file in Script Task - SSIS

$
0
0

I have a simple control file which has one line of data  as follows - 

HXT|SomeFilename.Out|20130701|20130731|20130804|1|9674151

This is a pipe delimited file, and it has only one row. Iam also only interested in capturing the last column value "9674151" into an SSIS package level variable.

The format will be same with every file I receive...

What is the SIMPLEST WAY TO Assign this value to an SSIS package variable -- Script task? Anything else?

Can someone help me with the code snippet in vb.net (script task) to achieve this please???


Viewing all 24688 articles
Browse latest View live


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