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

Microsoft.ACE.OLEDB.12.0" for linked server "

$
0
0

I have the following error

[Execute SQL Task] Error: Executing the query "SELECT * into dbo.Temp_Grades_8407  FROM OPENROWSE..." failed with the following error: "Cannot initialize the data source object of OLE DB provider "Microsoft.ACE.OLEDB.12.0" for linked server "(null)".". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.

I am using sql 2008 64 bit and windows server 2008

I downloaded and installed

AccessDatabaseEngine.exe

 ran the following

gave sqlaccount access to the folder that contains the xls file

I ran the following

use master

go

sp_configure 'show advanced options', 1;

GO

RECONFIGURE;

GO

sp_configure 'Ad Hoc Distributed Queries', 1;

GO

RECONFIGURE;

GO

USE [master] 

 

GO 

 

EXEC master.dbo.sp_MSset_oledb_prop N'Microsoft.ACE.OLEDB.12.0', N'AllowInProcess', 1 

 

GO 

 

EXEC master.dbo.sp_MSset_oledb_prop N'Microsoft.ACE.OLEDB.12.0', N'DynamicParameters', 1 

 

GO 

Note my excel had macros I disabled the macros 

 


sz





Retriving multiple file names in a text file and execute package that will process this data in paralle.

$
0
0

I have the sequential solution wherein you use foreach file enumerator and process files in sequence but I was looking to process these files in parallel to save some time.

Any suggestions are appreciable.

SSIS Interview questions

$
0
0

Hi,

Can you help me to answer the following questions in SSIS interview?

1.a)Dropping the index and build it after the load and b) disable the constraints and enable them after the load - Are they best practises? what is the pros and cons of these?

2.what is the role/Use of constraints in loading strategy?

3.How to handle large volume of data from extract to load?

Thanks in advance!

Revathy Menon

Error Handling in script Task SSIS Using Try Catch

$
0
0

Hi All,

I am using try-catch block inside a script task for capturing an error, So that could Load into DB error_log Table. For this I am using a package level variable. I also redirect the error to DB using an Execute SQL Task by writing Insert Statement and declaring the variable which I used in the script task. Once the Script task is failed then the error is logging successfully into the DB until Now. Everything is fine here, But when the error is logging I see three records inserted into the Error Table. Could Some Body Give me an idea. 

The code goes here: I have gave all the connections correct and declared all the variable required, just help me if this code is correct or not.

Try

Dim ifilepathandname As String = Dts.Variables("Var1").Value.ToString + "\" + Dts.Variables("Var1").Value.ToString + Dts.Variables("Var3").Value.ToString

Dts.Connections("File_Conn").CONNECTIONSTRING = 1FILEPATHANDNAME

Dts.Connections("OupFile_Conn").CONNECTIONSTRING = 1FILEPATHANDNAME

 

Catch ex As Exception

Dts.Variables("va").Value = ex.Message.ToString()

Dts.TaskResult = Dts.Results.Failure

 

End Try

End Sub

 

 

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

Here in the code below I could not Log the error if the script fails, Could some body suggest. After script it should go to SQl task at Failure and log the error.

 

Public Sub Main()


Try

 

Dim Rowcount As Integer Rowcount = CInt(Dts.Variables("Rowcount").Value)

If File.Exists("C:\My Docs\Progs\File.txt"Then

Dim tw As TextWriter = New StreamWriter("C:\My Docs\Progs\File.txt"True)

tw.WriteLine(Rowcount &", no of rows in the file ")

tw.Close()

End If

Catch ex As Exception

Dts.Variables("va2").Value = ex.Message.ToString

 

End Try

End Sub

 

Thanks in advance to all..

Cheers

 

 

 

Dts.TaskResult = Dts.Results.Success

 

 

SSIS errors - need help to fix them

$
0
0

I am trying to move data from tables on multiple servers to one server.     

The package has no errors, but i get errors only when it is run. I need help to fix the following errors.


[OLE DB Destination [40]] Error: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80040E21.
An OLE DB record is available.  Source: "Microsoft SQL Server Native Client 10.0"  Hresult: 0x80040E21  Description: "Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done.".

[OLE DB Destination [40]] Error: There was an error with input column "message_body" (366) on input "OLE DB Destination Input" (53). The column status returned was: "The value violated the integrity constraints for the column.".

[OLE DB Destination [40]] Error: SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR.  The "input "OLE DB Destination Input" (53)" failed because error code 0xC020907D occurred, and the error row disposition on "input "OLE DB Destination Input" (53)" specifies failure on error. An error occurred on the specified object of the specified component.  There may be error messages posted before this with more information about the failure.

[SSIS.Pipeline] Error: SSIS Error Code DTS_E_PROCESSINPUTFAILED.  The ProcessInput method on component "OLE DB Destination" (40) failed with error code 0xC0209029 while processing input "OLE DB Destination Input" (53). The identified component returned an error from the ProcessInput method. The error is specific to the component, but the error is fatal and will cause the Data Flow task to stop running.  There may be error messages posted before this with more information about the failure.

[OLE DB Source [1]] Error: The attempt to add a row to the Data Flow task buffer failed with error code 0xC0047020.
[SSIS.Pipeline] Error: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED.  The PrimeOutput method on component "OLE DB Source" (1) returned error code 0xC02020C4.  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.


Techniques - Resuming loading of data to a table ?

$
0
0

Right now, i made an ssis package to do a one time loading of data into a table from another database. New rows are added to source frequently. I DON'T want to drop the destination and reload it every time an update is needed. How do i make my ssis package do this ? 

How to send the log file through send mail task using ssis

$
0
0

Hi,

i have developed the ssis package. 

i have scheduled the all ssis package. i want how to create the log file . log file name as a date and that log file is send to sender using send mail task using ssis 2008.

Log file dynamically create - ex : logfile_todaydate

this log file how to send the sender through send mail task using ssis 2008.

Regards,

Abdul Khadir.

Cannot use Lookup control with Sql server express 2008 version

$
0
0

Hi all,

We have SSIS package which is developed using BIDS 2008.we are transfering data fromsource -- > destination , which source is sql server 2008 R2 developer edition anddestination issql server 2008 express edition.we are executing package through .net 2010 windows app (Destination side , which has sql express edition ) and so far its working nicely.But now we have to useLookup control for some comparisons.then we include the lookup and run the package through win app ,now it's getting error saying like this..

To run a SSIS package outside of Business Intelligence Development Studio you must install Standard Edition of Integration Services or higher.

** this happens only we enable the lookup control , any other controls wont give this error.

any ideas how to overcome this..since we couldn't use sql server standerd/developer editions on both sides (source & destinations ) and cannot run this package on sourceside ( which has sql server developer edition ).

1) I'm looking for any alternative way of running lookup control under sql express edition ? or

2) any alternative control/method for lookup control ??

Waiting for your valuable reply...


Thanks & Regards, Dimuthu





Connecting to oracle Db using SSI

$
0
0

Hi All,
I am trying to connect to the oracle database using Oracle provider for oledb.

In the tnanames.ora file, we have a connection details as below;

TNSName123= (DESCRIPTION=(ADDRESS=(COMMUNITY = testdomain.com)(PROTOCOL = TCP)(Host=testing.com)(Port = 1526))(CONNECT_DATA=(SID = TNSName123)(GLOBAL_NAME = abe.com)))

When using TOAD, I am able to connect to the oracle database using the tnsname,  username and password but when creating the connection manager in SSIS package, I am getting the error


Multiple files per day in ssis package

$
0
0

Hi,

I have following Package which processing 1 file per day. I am new to ssis, How am i suppose to get multiple files per day? What kind of changes should i make in this package?


surabhi dave

how to add the data in a excel sheet depending on some condition

$
0
0

Hi al

l i want to transfer the data from table to excel sheet but when we are trasnfering the data from table then depending on some condition its need to create a sheet and store the data in a same excel. For Exapmle : I have a column empid,salry, and country so if country name is denmark then our ssis packsge need to create a new sheet with the name of denmark and all the demark related information goes to this sheet.

How to send HTML email using SSIS

$
0
0

Hi All,

Can you please advise on the below scenario:

I have written one stored proc and as a result of its execution one target table is getting populated which has total 10 columns.

Everytime when I run SP, first it truncates this table and afterwards the target table is loaded with the updated data. Till here everything is fine and my SP is executing perfectly.

Now, all I want to do is generate an HTML email with nice table and header structure using the result of the above mentioned target table and include the statistics(data) of the table in HTML email which I would like to send to my manager (using SSIS 2005)

Please advise (if possible with example) how to generate such email.

Thanks

 

File System Task. Moving Files to different folders depending upon First 4 digits of file name

$
0
0

I have moved the test to my C Drive to make the testing a little easier.

I have source folders

C:\IS_Test\AA

C:\IS_Test\BB

C:\IS_Test\CC

(In reality there is about 10 of these service folders and users can create more)

 Each of these folders has some example files in. E.g. 1111_AA_Example.xlsx, 1112_AA_Example.xls, 1113_AA_1113.pptx

I then have destination Folders that correspond to the firs 4 digits of the file name

C:\IS_Test\Hotfolders\Download\1111

C:\IS_Test\Hotfolders\Download\1112

C:\IS_Test\Hotfolders\Download\1113

(In reality there are about 400 of these folders and they can be added to or even deleted as required (This shouldn’t happen to often)

So go to the first sourcefolder

Look at the first 4 digits of the file name

If its = 1111 then move to folder 1111

If its 1112 then move to folder 1112 etc

Repeat until all the files have been moved

Then go back to the start and move to the next source folder.

I haven’t found any guides on how to even get started on this. Its always moving from one folder to one folder. If any one knows about any clear how to guides on this, I would be very grateful,

Debbie

Con't Fetch Data From LinkedServers

$
0
0

Hi All,

I have struggled with one issue from last two days.

ERROR: "Cannot get the current row value of column "[OraOLEDB.Oracle].DCID" 
from OLE DB provider "OraOLEDB.Oracle" for linked server "TEST PS". ". 

TEST PS is LinkedeSevrevName

DCID it is column name from one of the table

Thanks In Advance

Siva

Text qualifier has junk value for csv connection when we open ssis package on remote server but it shows proper text qualifier on server itself or same x64 bit machine, is there any reason behind it?

$
0
0
Text qualifier has junk value for csv connection when we open ssis package on remote server but it shows proper text qualifier on server itself or same x64 bit machine, Is there any reason behind it?

SSIS Lookup Transform not outputting all columns out the No Match Output

$
0
0

I created a lookup transform with match and no-match outputs.  I then realized I needed to add a couple of columns so I went back and added them on theconnection page.  I checked the checkboxes on the columns page so that the newly added columns were included in the output.  However these columns are not showing up in the output metadata.  Anybody else seen this behavior and know how to fix it?  I've deleted the output connections to their downstream operations without success.  Thanks in advance.

dog


How to force a Flat File Connection Manager to move a given row to an Error Output?

$
0
0

Sometimes a few rows of a source text file have fewer columns/fields than the connection manager is expecting and when it tries to process these rows, instead of sending them to an error output, the Data Flow just hangs on them and will spin indefinitely.

I want to do some pre-processing of the source text file in order to inspect each row, identify the ones which are missing fields and then either prepend or append some text string to those rows so that later, when the data flow task begins to read it, it will for sure be send to the error output, thereby allowing the rest of the good rows to be processed.

The text files are tab delimited with CR row delimiters and no string delimiters.

All suggestions much appreciated.


HomeCookN

Exporting tables with different structures to flat files

$
0
0

I am trying to export a set of tables with different structures. I need each table to be exported to TableName.txt. From looking around the forums it looks to me like this is not going to work because SSIS cannot handle dynamic columns. This seems strange to me because the export wizard does not require that I set column definitions. It just looks at the table and uses the structure.

I have seen some solutions offered like bcp (I cannot use this due to restrictions). I am not very proficient with bcp but it does look like a good solution. I do not have rights to use xp_cmdshell.

Also I saw some solutions that would require a script task.

I am pretty open to any type of solution that can be called from a SQL Job.

Thanks for any suggestions and I apologize if I have posted a question that has already been answered.

Winscp Error

$
0
0

Good Morning All,

I have to grab files from a remotes server, for this created a .txt file on my local machine and then i created a package and used the 'Execute Process Task'. When i run the job i can see in the winscp command line utility that its connecting to the remote host and gets authenticated after that i get the follwing error message:

[Execute Process Task] Error: In Executing "C:\Program Files (x86)\WinSCP\WinSCP.com" "-script=C:\sftpscript.txt" at "C:\Program Files (x86)\WinSCP", The process exit code was "1" while the expected was "0".

Can any one please guide mein the right direction?

Thanks

hide data in ssis configurations table

$
0
0

Hi, I have a [SSIS Configurations] table where am storing all credentials to connect to database.

My requirement is - I do not want anyone to see data in this table and it should work when I run my package. Please suggest me some good practice here.

Viewing all 24688 articles
Browse latest View live


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