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

Missing SSIS node feature in installer?

$
0
0

Hello .. I want to install SSIS but I cannot find the SSIS feature node in the feature selection!

Can I install it some other way?

Thanks!


Can we connect to SAP BEX (as a srouce) from SSIS

$
0
0

Hi,

We have a requirement, Where we need to connect to SAP BEx and get the data using SSIS. Do we have any plug in or component to connect to SAPBEx or do we have any work around to achieve this. Destination for this requirement is SQL Server DB.

We have already proposed to implement a routine which will export data into excel and place it in shared folder so that SSIS can take that excel data and process it. But due to cost constraint that option is ruled off.

Please help me with this.

Thanks & Regards,

Bharadwaj.

how to produce two text files one with path and second is actual content from the sql server table

$
0
0

Good Evening,

please help me with your valuable ideas,

i have a table with 9873 rows in it, 10 columns in a table, all columns were having datatype as nvarchar(255) except a column called EmailBody which is nvarchar(max),  it need not be what it is now, it can be changeable (if any issues) if it require in some ssis transformations.

the source could be a sql server table, or i can create a textfile from the table for source feed to ssis package

1)each  EmailBody column value will be saved into a text file and save to disk

2) a text file with all rows in the source/table with pointer (path) to step 1 created file 

so to be clear, if i have 5 rows , i will end up with 5 email body text files (column always have values will be never empty) and then another text file (masterfile) with all rows info and each row will have pointer to above created 5 files.

for example

expected outcome in master file will be as below (instead email body column it wlill have email body extracted and saved to txt path) as in first step

123,"king@gbh.com","virat@live.com","Ctire@lie.co","jan-12-2012","jbh office","king","yes","5","C:\ssis\emailbody\1726366.txt"
123,"king@gbh.com","virat@live.com","Ctire@lie.co","feb-23-2012","jbh office","king","yes","4","C:\ssis\emailbody\1726367.txt"
124,"bong@ltd.com","singa@sim.com","NULL","mar-1-2012","bbk client","ginj","no","3","C:\ssis\emailbody\1726368.txt"
134,"jack@king.com","jaybol@jay.com","NULL","apr-12-2012","horiz","king    no","4","C:\ssis\emailbody\1726369.txt"
127,"pck@jij.com","jinh@kin.co","bing@jik.com","jun-8-2012","ventura","linh","yes","2","C:\ssis\emailbody\1726370.txt"

please share your valuable ideas with me,

please again, just did derived column and with export column, i am getting outcome of text file per row, but dont know how to start for master file

or let me know is there any better ways that what i am doing now

Thanks in advance

asitti

Powershell command to automate SSIS solution build

$
0
0

Hi,

I am looking for a powershell command to build my ssis solution ..please help

How to run an SSIS package via Web Service from an orchestra Biztalk

$
0
0
Hello friends,

I am new in SSIS issue.

What I need,  is run the SSIS package through web services, using an orchestra Biztalk.

I'm using Visual Studio 2010 and Visual Studio 2008 SSIS package /

Can you help me?

Flat file destination csv with comma

$
0
0
This might be better suited for the sql forum but i have a query in my ssis that pulls data to a flat file destination, since the data has commas i guess i am needing to use " as a text qualifier.. How in my query can i return all the results with "" around them?

Syntax issue with double quotes using Execute Process Task

$
0
0

I am trying to use an Execute Process Task using c:\PSTools\psexec.exe as the Executable value and -s \\RAWS01 \\RAWS01\ts$\BRCOM.exe /ACCT="TL NJ VN redbank"/MENU /AUTO=153 as the Arguments value.

When SSIS 2005 (unfortunately, I'm stuck to this version) executes this task I receive this error:

In Executing "c:\PSTools\psexec.exe" "-s \\RAWS01 "\\RAWS01\ts$\BRCOM.exe /ACCT="TL NJ VN redbank"/MENU /AUTO=153"" at "", The process exit code was "3" while the expected was "0".

Can anyone help me with the proper syntax for running this?

Thanks,

SSIS WebService Task and Input Variables

$
0
0

Hello! to day im have are some problem with my SSIS project.

in wsdl file for request report need set some parameters as InputParams for example part source code :

 <s:complexType name="InputParams">
                <s:sequence id="InputSequence">
                <s:element maxOccurs="1" minOccurs="0" name="INCLUDE_DELETED" type="s:string"/>
				<s:element maxOccurs="1" minOccurs="0" name="MODIFIED_FROM" type="s:string"/>
				<s:element maxOccurs="1" minOccurs="0" name="MODIFIED_TO" type="s:string"/>
				<s:element maxOccurs="1" minOccurs="0" name="SHIFT_DATE" type="s:string"/>
				<s:element maxOccurs="1" minOccurs="0" name="SHIFT_NUMBER" type="s:long"/>
				</s:sequence>
            </s:complexType>

for set this parameters im want use some User Variables!

but if im do that :

 InputParams pars = new InputParams();
 pars.INCLUDE_DELETED = "1";
 pars.MODIFIED_FROM = "2015-08-09T12:13:14";
 pars.MODIFIED_TO = "2015-08-13T12:13:14";
 pars.SHIFT_DATE = "";

  Dts.Variables["User::Inputs"].Value = pars;

im get are error about not allowed type!

please ask me how send my parameters without hand change ???


Primary Key constraint -- How to skip the specific record during Insert data to a table

$
0
0

Hi,

  I’ve got an issue during data import in SSIS, any ideas or comments will be helpful. Many thanks:

The issue is link to Primary key constraint : I can’t find a way to skip the record with same primary key. Here’s the example:

I’ve got a table in the database with 2 columns: ID and Value, which ID is set as Primary Key in Table A.

Table A

ID            Value

A1           10

A2           20

B1           30

B2           40

However during data import from a flat file B in SSIS, there exist one record with the same ID A1 inside the file:

Flatfile B

ID            Value

A1           20

A3           50

What I try to do is to skip that specify record but continue loading the others, in the case above, A1 with value 20 will need to be skipped and log (maybe log as error file), A3 with value 50 will need to be imported.

Any idea how to achieve this in SSIS ? Many thanks

Regards

Stephen

How to execute a parameterized stored procedure using ssis dataflow script component transformation.

$
0
0

Hi All,

Can any body send code for how to execute a parameterized stored procedure  using ssis dataflow script component transformation using .net

I know how to execute storedproc using control flow script task, but I need using ssis dataflow script component transformation.

Thanks,

RH


sql

Connect to Oracle

$
0
0

Having trouble connecting to Oracle through SSIS. (My pc is based on 32 bit windows)

Have installed Oracle 32bit runtime client and have edited the TNSNAMES.ora file as well as examine the registry.

However everytime I try to setup a connection in SSIS it fails during the test process, due to error ORA-01017.

The tnsping of the alias seems to work ok since I am getting a response in 220ms.

However, even the SSIS fails to connect succesfully it must be accessing the Oracle Server because I got notified after the xth unsuccesful attempt that my account is locked. Any idea why this could be happening? It seems to access Oracle Server but somehow my login/password is not succesful!!

0xc0202009 error when running job in sql server agent

$
0
0
I get 2 errors when I run a job in sql server agent 2005 0xc0202009 and 0x80040E2. I cannot see why I am getting these errors, when I run the job with dtexec it is successful. Also when I run it in the debugger or run the executeable it is successful. But when I try to run it with the agent it fails. Any Ideas would be greatly appriciated.

thank you
Joey Kushinski

How Can I export flat text file with embedded CRLF?

$
0
0

Hi.  This looks like a common problem that I need an uncommon solution to.

I have a legacy program that takes a tab delimited file and imports it into an SQL table.  The rules of the import is that the memofield cannot contain embedded quotes but can contain carriage control characters.  The field is surrounded by double-quotes. All other fields are separated by tabs but have no quotes.

The file needs to look something like:

field1 <tab> field2 <tab> "field 3 is a memofield with lots of line feeds"

I need a mechanism that can deliver a tab delimited flat file with only the memofield enclosed in quotes.  When I installed the SQL Management Console for an SQL Express client, I see that I have a tool called "import and export data (32-bit)".  I've tried playing with this but haven't had any luck getting the format I want.  I noticed that if I use the text qualifier, it puts quotes around EVERYTHING, even signed integers <bad idea!>  I've also tried with the SQL select query and it looks like there's extra linefeeds or something.  All I know is that even Excel is treating the field as multiple records, not as a single field.

My query is

SELECT EQUIPNO, EQUIPNAME, '"' + cast(EQUIPMENTMEMO.DESFILE as varchar(max))+ '"' as desfile, VENDORS.VENCODE, VENDORS.VENNAME, CUSTOMER.CUSTOMERNO,
CUSTOMER.CUSTOMERNAME
FROM EQUIPMENT
LEFT OUTER JOIN EQUIPMENTMEMO ON EQUIPMENT.EQUIPID = EQUIPMENTMEMO.EQUIPMENTID
LEFT OUTER JOIN VENDORS ON EQUIPMENT.VENDORID = VENDORS.VENDORID
LEFT OUTER JOIN CUSTOMER ON EQUIPMENT.CUSTOMERID = CUSTOMER.CUSTOMERID
ORDER BY EQUIPNO

This is on a SQL2008 Express database.  Any workable solution can't involve full SQL tools.  I would prefer to do this without writting an application, if possible.  Any suggestions on getting this exported?

How long did my control flow component take to execute?

$
0
0

I've added several "Execute SQL" components to my SSIS 2008 Control Flow.  How can I find out how much time each of these new components is adding to the overall execution time?  For example, it might have taken 5 minutes longer to run than normal, but how do I find out how much time each of the new tasks added to the execution time?

Thanks,
Eric

opening splash screen in xampp

$
0
0

hello

       This may not be the specific place to post this question and most likely not the place for a beginner to be addressing this mater in general.  But if anyone can please lend a hand I'll make it brief.  

       I open up xampp control panel start Apache & MySQL.  I minimize control panel screen and open up my browser and type in localhost:8080 where I should be seeing the xampp splash screen ( or opening page).   Just see internet explorer can not open up this page.  Have also tried localhost/mytest & localhost/test.html and tried putting http:// in front of each combination.  Need help?   Thanks. 


Execute Process Task: How to save the output results placed in ExecValueVariable

$
0
0

In the posting titled "Execute Process Task: Accessing Return Value and Saving in the database", Todd McDermid suggests to save the ExecValueVariable contents using an Exec SQL Task.  I am using SQL Server 2008 R2.  I find plenty of examples where variables are used to filter and control SQL query results.  I do not have experience with and am not seeing examples where variables are used as the primary input source.  Can someone provide an example of how that variable would be used in the Exec SQL Task to post results to a SQL table or a flat file?  Or pointers to examples of this approach.

I apologize for what may ultimately be a very simple solution.  But I cannot locate examples that help me properly understand this proposed solution.  I appreciate any insight that can be provided.

Importing multiple xml Files

$
0
0

Hello together, 

i do have a problem with importing multiple xml Files, maybe someone can give me a hint to solve my problem.

Thats what i want to do:

I do have multiple XML Files (all the same structure) in a folder. I want to copy the files to an other folder and use a xml task for the xml files because i do have multiple namespaces and no schema file for the xml, afterwards i want to import the data to a database.

How can i achive this?

Thanks in advance!


SSIS Error converting varchar to numeric while importing csv flat file into sql table

$
0
0

I have flat file having column MGR_fee with data like (10.00%,12.00%,....) . On other hand i have created a stored proc where i took MGR_fee as Varchar(50) but in table this column,MGR_fee has datatype Decimal(32,6) .

so i used in my proc CONVERT(DECIMAL(32,6),REPLACE(@MGR_fee,'%','')), SYNTAX WHILE INSERTING THE VALUE.

But when i ran my SSIS package i got the error message "[OLE DB Command [20]] Error: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80040E07. An OLE DB record is available.  Source: "Microsoft SQL Native Client"  Hresult: 0x80040E07  Description: "Error converting data type varchar to numeric.". ". Please help me out.

Powershell Package SSIS and 2008 R2 vs 2012

$
0
0

Hi,

I use SQL Server 2008 R2 and I load package from files with powershell.

I use this script :

$mySrvSQL = 'Srv07'
$myFolderSSIS = '\\ContactBS'
$repSource = '\\Srv01\Informatique Livraisons\BI\ContactBS\ '

[reflection.assembly]::LoadWithPartialName('Microsoft.SQLServer.ManagedDTS')
$myApp = New-Object Microsoft.SQLServer.DTS.RunTime.Application

Get-childItem -path $repSource | Where-Object { $_.Extension -eq '.dtsx' } | ForEach -process	{
	$myPkg = $myApp.LoadPackage($_.FullName, $null)
	$myApp.SaveToSQLServerAs($myPkg, $null, ($myFolderSSIS + '\ ' + $_.BaseName), $mySrvSQL, $null, $null)
	Write-Host "$_ saved to $mySrvSQL"
}

It work's fine !

Recently, I installed SQL Server 2012 on my workstation and it works bad now !

I get this message :

New-Object : Cannot find type [Microsoft.SQLServer.DTS.RunTime.Application]: make sure the assembly containing this type is loaded.

I've installed Features Pack components.

I've seen that I could use a PS-Drive \SQLServer:\SSIS but it seems that it doesn't work with SQL Server 2008 R2

Could I do the same things I done with the new SQL 2012 tools : Just Save a package in SQL from a file ?

Thank you for your help.

Ludovic.

ETL Testing

$
0
0

Hello Everyone:

I need to know if there is any tool which can be used to for post migration ETL testing? The ETL has been written using sql scripts to move the data from Legacy database to a new database and both have different database structures We need to test the tranformed data for accuracy and check for data quality and quantity  after the ETL process is executed.

I have questions about the following:
1.what should be the best approach/ best practices to test the data in the new database after transformation?
2. I would like to know if there is any tool which can be used to compare the data in old vs new database (both having different structures) ?

Thank You all.

Viewing all 24688 articles
Browse latest View live


Latest Images