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

Excel load via SSIS

$
0
0

Hi, I need help in loading a spreadsheet intoSQL Server table and its a SQL Server 2005 instance using SSIS 2005. The spreadsheet we get has multiple column headers for each state. How to make a dynamic SSIS package. For instance






File with varying Row delimiter

$
0
0

Hi,

I have a Flat File Coming ( .csv ) ,  It sometimes come with CR + LF( carriage Return + Line feed)  as Row Delimiter & sometimes comes with only CR(carriage Return )  as row delimiter . When the Files comes in a proper format i.e. with CR+ LF as row delimiter the file is getting processed else the job executes does not fail and the File does not get processed . Is there any way to track the row delimiter  and raise an alert when the File does not come in the format needed  and does not get processed . Any help is greatly appreciated .

Thanks,

AK


shek

Identifying changes with only one field

$
0
0

Hi,

I am in need to find changes that happens with only one field. i.e. 

Data from Text file compared against SQL data. All the fields are looked up for finding even single changes with any of the fields.

But for a case, if a particular filed is alone changed and the rest remains the same, then i need to neglect that change as change.

How can this be done in SSIS?

Now i am doing, Flat File Source --> Lookup (SQL data) --> joining all fields.

Text file

Field1 | Field2 | Field3 | Field4 

1------| --1 -----|--3-----|--3----

SQL file

Field1 | Field2 | Field3 | Field4 

2------| --1 -----|--3-----|--4----

Here Changes to field4 is acceptable with the changes in Field1.but,

Text file

Field1 | Field2 | Field3 | Field4 

1------| --1 -----|--3-----|--3----

SQL file

Field1 | Field2 | Field3 | Field4 

2------| --1 -----|--3-----|--3----

Here in the above the change to Field1 is not acceptable, so need to show up as no change, though this column value alone changes without any changes with other fields.

Please let me know how to handle this? 

Which transformation can help me in this case or what i need to do ?

Thanks,


--------------------------- Radhai Krish | Golden Age is no more far | --------------------------

SSIS

$
0
0
Hi i want full real time work for ssis and ssrs...

N.suresh

Building solution independant of server

$
0
0

Hi,

i have a  solution of SSIS package with me.

Whenever, i try to deploy it in either dev or test environment using only, DTSX, CONFIG, DeploymentManiFEst files,

I am not able to deploy it successfully.

Instead i need to go for taking the whole project file to that environment and then i have to test run that from BIDS and then i am taking out the package files to do the deployment.

Is there any way, so that only taking those 3 files from local, and installing the package using Manifest file and modifying the Configuration as per DEv or Test server to deploy the solution? instead of taking up the whole project ?

Please let me know how can we build solution independent of any machine which can fit into Dev or TEst just only by modifying the package's server name in config file?

Thanks !


--------------------------- Radhai Krish | Golden Age is no more far | --------------------------

need to automate the RDLC reporting through SSIS script task?

$
0
0
Hello All,

Currently I'm calling RDLC report in asp.net application, where .rdlc is calling and we passing a data source and report in generated as PDF, the entire process initiate on a BUTTON click and report is generate.

Now this process need to automate and report should generate on Monday morning.

There is some suggestion come out that we can use SSIS Script Task and we can call external DLL and can call .rdlc file too to generate the report and then we can schedule SSIS package?

I never having experience on SSIS side, need your suggestion and how to do that, if there is possibilities? Thank You!

Imported SSIS 2005 packages to 2008 version - Performance Tuning

$
0
0

I have imported my SSIS 2005 packages into SSIS 2008 version. It ran successfully without any error.

But in my 2005 version, packages are processing within 5-10 minutes where as the same packages in 2008 version it takes around 30-40 minutes.

Any idea about this issue?

Is there any performance tuning needs to be done to reduce the processing time?

Thanks in Advance

update else insert ssis record

$
0
0

Excel Source have multiple proudct sheets of same format with data columns

Product                                      Site                               Description                  vendor_____date   

I have Inserted data into Product_Master where the records are new using lookup.

How to do ..

In case of project and site already exist in the table, then update those records else insert as new row.

In case of the whole row data is repeat, move the record to Prod_Duplicate table.


ShanmugaRaj


Rollback of transaction without raising an error

$
0
0

Hi!

Im trying to maintain some kind of programmer dignity in my SSIS-project, meaning implementing a lot of tests to verify wanted and the non occurence of unwanted behaviour.

My problem is this: I want to wrap all my tests in a global transaction which should be rolled back at the end so that data is not changed in the database afterwards. I would like to do this without having to raise an error. Why? Because I want all my test to be green. Everywhere. 

 I have tried to find some way through the script task/C# but I cant get hold of the transaction. Is there anyway to do this?

SQL Server 2012, Visual Studio 2010


Peter

incorrect syntax near '@p1'

$
0
0

Hi,

I have a sp in execute SQL task,where it is updating one table based on the input values(most of them are boolean).There are total 9 input parameters,out of those 8 are boolean.But in parameter mapping since boolean is not present,I have given as 'LONG' .The sp is executing fine in SQL server.When I am running through BIDS,getting below error.Please help me on this .

[Execute SQL Task] Error: Executing the query "exec usp_UpdateFile ?,?,?,?,?,?,?,?,?" failed with the following error: "Incorrect syntax near'@P1'.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.

How to write an expression to extract a sub-string from a SSIS variable?

$
0
0

Hi

 

How to write an expression to extract a sub-string from a variable?

I am importing some CSV files from a directory; I need to store a specific folder name in the database. I want to write an expression to do this. How should I do?

Suppose that the full directory is:

E:\Data\Unit\test\temp\91-03\all_910331\910331\SEP\file.txt

I need to find an get the 910331 from the above mentioned directory

How should I do this?

Thanks


SSIS logging issue while migrating from 2008 to 2012

$
0
0

Hi All

I had 2008R2 SSIS packages and inthem i had some "Script task" and within script task i have some custome Logging message that i wanted to be captured within SSISloggins, something like ..... "

Dts.Log("My message" , 0, dataBytes) 

 so basically to see this message in SSIS loggings I have to set the ScriptTaskLogEntry, story short everything is working perfectly

BUT once i moved to SSIS 2012 the migration (upgate of the packsges to 2012) just disabled ALL of the SCRIPT TASK logging, now i have to enable them all one by one.

have anyone seen such a thing in SSIS upgrade?

the upgade is a "Package deployment model"


Sincerely Nik -- Please kindly mark the post(s) that answered your question and/or vote for the post(s).

SSIS FTP Task problems

$
0
0

We are unable to retrieve a file from an FTP server using SSIS FTP Task. With the settings indicated below:

IsRemotePathvariable: False

RemotePath: /home/ftpu/test.csv

IsLocalPathVariable: False

LocalPath: working_directory (with Connection Manager entry setup for this)

Operation: Receive files

 

The following error is produced:

Error: 0xC0029183 at FTP data, FTP Task: File represented by "/home/ftpu/ns_test.csv" does not exist.

 

Performing a manual ftp works fine, hence suggesting a fault with the SSIS TFP Task. Has anyone else successfully used an FTP task, and if so, any ideas on what's going wrong?

Thanks

Neil

How to Delay an Event Handler Email Notification

$
0
0

I have an SSIS Job that stores and compares file date-time properties every 10 minutes.   If the date-time properties have changed since the last run, the task is successful, otherwise it fails and sends out an email notification.   Most of the time there really isn't a problem and the file gets updated after 20 minutes.  So what I am trying to accomplish is the task delaying notification until after the third failure.  I know this can be done in code, but I am looking for a way to possibly do this via a property setting.

Thanks for any help with this.

RBollinger


Robert Bollinger Database Analyst

mdf & ldf

$
0
0
What do MDF and LDF stand for?

Thank you.


Copying database - doing update changes both dbs.

$
0
0

Hi,

I have made a copy of a database to use for dev.  I used the wizzard in SQL Server 2008 to create a copy.  I've checked the stored procs and they all point to my dev copy.  I've changed the connection string in web.config to point to this copy.  I've changed all references in my website to point to my dev copy.  I've reopened ASP.NET Development Server, I've rebuilt my website and ran it in Debug.

Each time I do, it's updating the original db as well as my dev copy.

There are no references that I can find, either in my code or stored procedures, to the original db and yet it mirrors what changes are being made to my dev copy.  I've made changes in web.config and code like the examples below.

<add name="myConnectionString" connectionString="Data Source=dev;Initial Catalog=myDEV;Integrated Security=True" providerName="System.Data.SqlClient"/><!--<add name="liveConnectionString" connectionString="Data Source=dev;Initial Catalog=live;Integrated Security=True" providerName="System.Data.SqlClient"/>-->
using (SqlConnection connIncident_TrackerDB = new SqlConnection(@"Data Source=dev;Initial Catalog=myDEV;Integrated Security=True"))
        {


What am I missing?

Paul 


thanks, Paul



.FLT / .DAT as Flat file data source

$
0
0

Hi All,

I am working on Deltek COBOL base database where all the data resdies on the flat-file of .DAT(or we can export data into .FLT files) and I need to fetch that into a SQL Server (Staging)database.

Guys help me out how to achieve this task, any help will be much appriciated.

Thanks,

Attiqe

Here is the sample of how data looks like in .FLT files:

<p>
       This is the first line </p><p>
000A1010000000010100YCASH-OPERATING ACCOUNT    000000050000.00 000000083129.54-000000242784.59 000000000000.00010101000000 000000083129.54 000000000000.00 000000000000.00 000000000000.00 000000000000.00 000000000000.00 000000000000.00 000000000000.00 000000000000.00 000000000000.00 000000000000.00 000000000000.00 000000000000.00 000000000000.00</p><p>
     This is the second line  </p><p>
000A1010100000010100YCASH-PAYROLL ACCOUNT      000000000000.00-000000105890.43 000000105890.43 000000000000.00010101000000-000000105890.43 000000000000.00 000000000000.00 000000000000.00 000000000000.00 000000000000.00 000000000000.00 000000000000.00 000000000000.00 000000000000.00 000000000000.00 000000000000.00 000000000000.00 000000000000.00</p><p>
     We have to get the fix-lenght of the data for each attribute       </p>


Attiqe Ur Rehman

This error is thrown by Connections collection

$
0
0

Guys,

Actually i was move database server virtual to physical and exist 1 job that execute one package... when i ran the job, i've got that:

 Message
Executed as user: SERVER01\SQL. ...sion 9.00.5000.00 for 64-bit  Copyright (C) Microsoft Corp 1984-2005. All rights reserved.    Started:  14:16:39  Error: 2012-11-19 14:16:40.26     Code: 0xC001000E     Source:      Description: The connection "" is not found. This error is thrown by Connections collection when the specific connection element is not found.  End Error  Error: 2012-11-19 14:16:40.54     Code: 0xC001000E     Source: DTSSQL      Description: The connection "" is not found. This error is thrown by Connections collection when the specific connection element is not found.  End Error  Error: 2012-11-19 14:16:40.54     Code: 0xC02020EA    Source: DTSSQL Log provider "SSIS log provider for SQL Server"     Description: The connection manager "" is not found. A component failed to find the connection manager in the Connections collection.  End Error  Error: 2012-11-19 14:16:40.54     Code: 0xC001000E     Source: DTSSQL      D...  The package execution fa...  The step failed.

I was look http://social.msdn.microsoft.com/Forums/en-US/sqlintegrationservices/thread/2af470ac-d76d-4162-849f-a5e0411aa053, but i not get sucess :(

note: I have not installed SSIS, any problem?

Using variables in SSIS

$
0
0

Hi ,

Im usin a table that I get the Id from that record.. Now i want to keep my Id in one variable to assign to a flatfile record  and to a flatfile name or to use in all process that i'm runing

can you give me some example or some tips..

Thaks

Pedro

same package for diff columns in excel sheets

$
0
0

hai,

can anybody give an idea to develop a package where i need to develop one package for diff no of columns ie for 3 and 4 columns i need to run the same package.

thanks

Viewing all 24688 articles
Browse latest View live


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