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

install oracle client on ssis prod server

$
0
0

I know people have asked this question before
but my question is, i have SSIS package that have the oracle sources.
the packages run perfectly fine on my local machine with my credentials

now it is time to deploy the packages onto the SSIS prod server.
1) should i install the oracle client on the ssis server and attunity drivers on the prod box?
2) what permissions does the service account should have to run the packages in the prod box?


Thanks


DTSX 2008 installer and Encrypted Password

$
0
0

Hi friends,

I've a windows 2008 server r2 with SQL Server 2008 Standard R2 (x86). I developed a SSIS Package and i tried to deploy it using a file dtsconfig for save connection string.  When i installed the package (athrough manifest file) i checked the path where the dtsx's was deployed and i saw the dtsx file and dtsconfig file was located on "C:\Program Files (x86)\Microsoft SQL Server\100\DTS\Packages\<my project>".  When i opened the dtsconfig, i saw that password that i wrote (when i was installing) it wasn't encrypted!!!  .  Aditionally in the SSIS Instance i exported the package hosted and i see the password tag ("<DTS:Password> encrypt value</DTS:Password>") didn't exists.

Next i tested the following:  Deployed again the package and i checked the option "Rely on server on storage encription" and the password was encrypted (I checked this, openning the ssis instance and exporting my package on filesystem).  But the dtsconfig file yet appeared with the password not encrypted set.

So, I cut the dtsconfig file and i tried execute my package but it was failed.  Next i configure a job that executed the package and the same result.  Finally i set the dtsconfig file in the same path and i didn't find a way to "unbound" this.

So my question is: Is possible to create a DTSX installer and after unbound the dtsconfig file, for the package uses the encrypt embebed inside?. in other words i need install my package with a dtsconfig and after "unbound" it.

Please help me with this i've not more options.

Greetings

Aleds

Multiple Precedence Constraints work incorrectly

$
0
0

I created a test Maintenance Plan to demonstrate the problem.

The Maintenance Plan was created using the SQL Server  2012  SP1 Management Studio. It shows

that Precedence Constraints are joined with the OR operator. In this test Maintenance Plan the “end” Task never runs.

I opened this Maintenance Plan in the SQL Server  2008 SP3 Management Studio. It shows

that Precedence Constraints are joined with the AND operator. I replaced the AND operator with the OR operator and saved the Maintenance Plan in the SQL Server 2008 SP3 Management Studio. After that, it starts working properly – the “end” Task starts running.

What am I doing wrong? Or, is it a bug in the SQL Server  2012  SP1 Management Studio?

The targer SQL Server is 2008 SP3.

How to copy files from sftp location to my local system using SSIS Script Task.

$
0
0
Hi,

How to copy files from sftp location to my location using SSIS Script.

Appreciate your help. Thanks.


SSIS FTP Task

$
0
0

When using SSIS FTP Task, I see that ftp session is not closed at the end.  

Is there a special configuration that FTP session is closed at the end of FTP job.

How to pass variables to DFT SQL statement

$
0
0

Hi Forum,

I have a task to pass a datevalue as a variable to a SQL Query, For a Simple SQL statement like 

select * from table_name where col=?  my parameter mapping works and im able to assign a variable but when my query got 

select * from tablename 

join x ,join y,join z, where col=? i get a error 

Parameters cannot be extracted from the SQL command. The provider might not help to parse parameter information from the command. In that case, use the "SQL command from variable" access mode, in which the entire SQL command is stored in a variable. (Microsoft Visual Studio)

Is there a work around for this issue. 

thanks in advance

How to compare data between Oracle and Sqlserver?

$
0
0

Hi all,

In my project, there are data discrepancies from Oracle to Sqlserver Database. 

Is there any tools to compare the data between Oracle and Sqlserver tables? If so, can you please let me know.

Can we do the comparison using SSIS? 


Thanks & Regards, Anil

Invoke child package from parent

$
0
0

Hi,

I have  one main package and 5 chilc packages.

what is location option when we invoke the child package.Can we deploy the  main package and child package in server or deploy main package  in server and keep it the  child package in shared location.

I am trying to create package dynamically (nessery inputs geting from config file).


Supress informational messages in SSIS logging

$
0
0

Hi,

Is there a way I can suppress all messages being logged to the SSIS Catalog DB for an SSIS package, apart from ones of typeOnError and OnWarning?

The reason for doing that is because I have a large number of messages which are causing my execution reports to slow down to a halt, while also taking up a large space in the SSIS Catalog DB.



Thanks!!

/>L


facing problem with datatype

$
0
0

Hi Everyone,

i  am using source as oracle database , in  one of my table TAG, column SECTION_TOP   which is Number datatype ,  which contains data like

SECTION_TOP 

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

-1.26984
-1.01587
-1.01587
-0.728078
-0.572155
-0.570704
-0.22187
-0.0634115
0
0.0000000000000142109

1.01587
0.22728078
0.44572155
0.1570704
0.322187
0.01634115

this column when i  reading from ssis with  double-precision float  DT_R8(scale, precision)  with (0,0).

source value 0.0000000000000142109 it is retriving as  1.42109E-14, 

this column i am using as an inpupt column in an script component , package is failing across script component with " Input string was not in a correct format."

error message :

[SCRPT_1] Error: System.FormatException: Input string was not in a correct format.
   at Microsoft.SqlServer.Dts.Pipeline.ScriptComponentHost.HandleUserException(Exception e)
   at Microsoft.SqlServer.Dts.Pipeline.ScriptComponentHost.ProcessInput(Int32 inputID, PipelineBuffer buffer)
   at Microsoft.SqlServer.Dts.Pipeline.ManagedComponentHost.HostProcessInput(IDTSManagedComponentWrapper100 wrapper, Int32 inputID, IDTSBuffer100 pDTSBuffer, IntPtr bufferWirePacket)

Please advice on this.


karteek_miryala

Populate Dynamically Created Excel Sheet From SQL

$
0
0

Hi

Following on from last question asking how to create dynamically named excel sheet: http://social.msdn.microsoft.com/Forums/en-US/sqlintegrationservices/thread/e98f2a71-e41a-4acb-ad80-6e548599abcb

I now want to ask how I can populate this sheet from a SQL table with same columns as excel sheet? So far I have a data flow task after my script and sql task using my SQL DB as source and excel as my destination. However my actual settings for my excel connection manager are to an existing workbook sheet, and my dynamic create table in excel using script and sql task creates a new file with dynamic name created in script task using previous month appended to the end of the name of the existing excel connection manager file name.

So if my connection is to myExcelFile.xls then after running script task I have:

myExcelFileMar.xls with data tab called March in it, which has the table structure I created in a SQL task using a variable.

So how do I accomplish this:

in my newly created excel workbook with new meta-data structure: In a data flow task connect from my source SQL DB to the excel destination, the destination being my dynamically created new workbook,and extract the data from the SQL Server table into the newly created excel table?

I can do this with hard-coded connection no problem but the dynamic bit confuses me because I do not know how the mapping from SQL > Excel can be maintained or created dynamically and maintained at run time.

Thanks for input.

Andrew


Andrew (MCDST)


copy linked server database and create database on same server

$
0
0

Hi ALL

I have one linked server i need to copy it whole database in SQL on same server where linked server is created .

Kindly help me .

Thanks

with regards

BI_Group

elegant way out of the data source warnings after coding pkgs

$
0
0

Hi.  We run STD 2008 and for one particular master with 36 subpackages perhaps wish we'd never used data sources. 

They are convenient for development but obnoxious when you go to open under VSS and get the pop up sync warnings.

We're also using a config file extensively in this package.  So all connection info is passed down to subs via config'd variables anyway.

I dont even think much is different between the ds's and config'd values except perhaps for case....maybe order of params too.

Is there an easy way out once the development is done?  Perhaps breaking the expectation by ssis en masse that ds's are no longer to be tied to connection managers?   If not what is the safest difficult way out? 

db042188




Reading from SQL and passing it to .net method.

$
0
0

I need to read a cloumn from database depending upon some parameter..

Like if database has two column status ans id ..

then i have to read the id for if status is true..

Then pass this id to C# method.

How can i achieve this in SSIS.

So Basically my database package will read the data from SQL Server and pass it to the C# method..

2012 SSIS: Referencing child packages in other projects

$
0
0

Hi,  I have ported my SSIS framework app to 2012 but I've hit a problem.  

I have organised my packages into projects within my solution, and I have a a control package which executes these in the right order, manages dependencies, etc.  Simple enough.

Or so I thought, it turns out that in the new deployment model you can only use the "Execute Package Task" on packages within your project and not across the solution.

The options that I can think of:

  • Put all packages in one project.  As all packages must sit under the default "SSIS Packages" folder (afaik) and I have hundreds of packages loading from many source systems this is going to be messy.  I don't really want to work with a big list that I have to scroll through.
  • Switch to the file system.  Seems a likely option right now.  Big shame as I am really liking the new way of doing things, I want to use catalogs.
  • Call child packages through SQL.  This seems problematic, Ive read about issues with passing params, managing async runs, bubbling up errors, etc.  This just seems like a whole load of hassle.
  • Something else?

Has anyone else faced this problem and if so, what have you done?

Cheers.


How to enable/disable the ssis task

$
0
0

Hi,

I have the SP which is being called in execute SQL task. In SP I am inserting data into table t1 if there are any records else 0 record will be inserted into table t1.

After "exec SQL" task there is "Execute package task" which is calling another package p1. But Package should be only called if there is any data inserted into the table t1. if 0 records is being inserted into table t1 then "execute package task" should not run (disabled). Do i need to use some row count before execute package task. How this could be done?

Thanks,

Punia


exporting two or more tables data into 1 excel file

$
0
0

Hi

Can any one help me in exporting two or more tables data into 1 excel file.

Regards

kumar

How to generate SQL Script file using Script Task C#

$
0
0

Hi All,

I am trying to do the same in script task in SSIS. I would like to generate text file with insert statements. I am getting the input from Lookup transformation. I would like to generate insert and update statements in a text file with values. From lookup transformation it will generate maximum 100 values so i would like to generate a text file with 100(or depending on the output from lookup transformation) insert statement. I would like to generate a text file with the following output.

INSERT INTO crm_class
(class_name, [description], [status], [class_summary], class_price_type)
VALUES
(1, 2, 3, 4, 5)

INSERT INTO crm_class
(class_name, [description], [status], [class_summary], class_price_type)
VALUES
(1, 2, 3, 4, 5)

and so on upto the total values i will get for lookup transformation.

could you please guide me how would i do that in c#. the text file will be saved on a local drive i.e. e:\SQLScript

similarly update statements like this

UPDATE crm_organization
SET company_name = 'ABC', short_name ='Test', class_id = 1, isAgent = 0,
date_modified = COALESCE(@date_modified, GETDATE()),
comment = 'aaaaa', [status] = 'Active', entered_by = 'Emp', modified_by = 'James',
org_updated = 'Yes', link_updated = 'No'
WHERE company_id = '11'

Any help on this would be much appreciated.



MH

Import csv into fact table

$
0
0

Hello,

                I have a csv/txt file with a lot of rows (in millions) that need to be loaded into a data mart. I already have the star schema in place. (multiple dimension tables connected to a single fact table). Now to import the data from the flat file into these relational olap tables, should I even be creating a cube? Even if I do create a cube, I am finding it hard to populate data as there are relationships and it is not a one on one mapping from the flat file to a single (dimension table). To be even more specific, Bulk Insert Task in SSIS forces you to have a destination table to insert. How can I put more than one table in the destination there? Are there any examples/tutorials I can refer to?

Thanks,

       

Array like facility in SSIS

$
0
0

I have  got a task in SSIS in which I have to create a variable of type OBJECT in the parent package and retrieve all the rows of a column of a table. And then I need to insert the required values to their respective variables in the child packages.

Earlier I have used SINGLE ROW RESULT SET to store the result of the query and then with the help of Package Configurations I have assigned the value of parents variable to the respective child package variable. But this is laborious work as I have many such values to assign.

How can I do this with FULL RESULT SET ?

PLS HELP!!!

Viewing all 24688 articles
Browse latest View live


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