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

SSIS/PowerShell : Executing Catalog Packages with PowerShell

$
0
0

Hi,

I have a Powershell executing packages in SSIS catalog.

More or less the same script than the following one : http://blogs.msdn.com/b/mattm/archive/2011/11/17/ssis-and-powershell-in-sql-server-2012.aspx?PageIndex=1#comments

I'm using an environment for executing all the packages in my project.

For only 2 parameters of this environment, at runtime, I'd like to be ale to override the value.

In my working Powershell, after I referenced my environment for execution I tried  :

# setting value of parameter to constant
$package.Parameters["Servername"].Set(
    [Microsoft.SqlServer.Management.IntegrationServices.ParameterInfo+ParameterValueType]::Literal,"Foobar");
$package.Alter()  

Before it's not working.

Any idea ?

Thanks for your help,


Bertrandr


How to Insert value From One Table to Other ( Master Table ID into Detail table)

$
0
0

Dear All,

I am new to SSIS.

I have 2 Table

===========================================

Table 1 : Manager Master

ID     Name
1Hardik

============================================

Table 2 : Employee Master

IDName DepartmentManager_ID

ID       NameDepartment Manager_ID
1Jay QA(I have to insert data from Manager Master table (ID))
2 Aman  IT  


=============================================

I have diffrent .xls file in that for 1 Manager, many employees are there.

In Manager Master i have created ID as primary key and auto increment.

Please provide solution how can i implement this in SSIS ?

Thanks and regards,

Hardik Ramwani


Scheduling SSIS package fails

$
0
0

Hi,

I've successfully created a SSIS package and I can execute it manually. Now I am trying to schedule it as a job to run daily at certain time. For this, I tried to create a job through 'SQL Server Agent' in Sql Server Management Studio. But when I configured the Step properties and clicked 'Ok' it is throwing this error.

TITLE: SSIS Execution Properties
------------------------------
The package failed to load due to error 0xC0010014 "One or more error occurred. There should be more specific errors preceding this one that explains the details of the errors. This message is used as a return value from functions that encounter errors.". This occurs when CPackage::LoadFromXML fails.
------------------------------
ADDITIONAL INFORMATION:

The package failed to load due to error 0xC0010014 "One or more error occurred. There should be more specific errors preceding this one that explains the details of the errors. This message is used as a return value from functions that encounter errors.". This occurs when CPackage::LoadFromXML fails.

I am using Visual Studio 2010 for creating package and SQL Server 2008 R2. Also, I gave my credentials in the package's connection string. And I am trying to schedule the job with the same package credentials as the job owner.

The Protection Level in Visual Studio was set to 'EncryptSensitiveWithUserKey'.

What am I doing wrong to create a job step?

Thanks for any help!

Error description in ssis

$
0
0

I have redirected the error rows and added script component to get the error description, the error description what I get is "No status available" instead I want it to be more meaning which in my case is "Foreign key constraint failed" . How someone help me with this.

Thanks


sree

SSIS Security between servers

$
0
0

Hello, I have a Windows 2008 R2 server running SQL Server 2008 R2 database engine.  I have another server running Windows 2012 with SQL Server Enterprise 2014 with SSIS.  I am trying to connect to a data source on the 2008 R2 server from an SSIS 2014 package with SQL Server authentication.  I have made sure that the user has all privileges on the 2008 R2 instance that it needs and have verified this through SSMS.  I get an error "Failed to acquire connection "MyDatabase". Connection may not be configured correctly or you may not have the right permissions on this connection" when I run the package from SSIS on the 2014 server.

Do I have to allow the SQL Server Agent on the 2014 server permissions on the 2008 R2 server to execute this package properly?  Is SSIS trying to use the local SQL Server login on the 2014 server to make the connection?  Both servers are on the same Domain.

Thanks, Scott

 

SSIS in SQL Server 2012 SP2 - Backslash-escaped double quotes in flat file

$
0
0

I migrated a production SSIS solution from SQL Server 2005 to 2012 (with service pack 2). The solution downloads data via FTP and then imports five comma separated double quote qualified flat files into five tables. One of the files contains double quotes in the data and it is escaped with a backslash, i.e. "2006660","Tan","Gobi Sand \"R\" Metallic". The package stops when it reaches this row with the error "column delimiter not found."

This error didn't occur with SQL Server 2005, and I checked an old data set to make sure the escaped double quotes previously existed, and they did. I haven't had any luck with my Google searches on this problem. When I preview the data the connection manager properly displays the row where the error occurs.

Any thoughts on what could be going on? I suppose I could add a data transformation step to remove the backslashes and quotes, but since this wasn't a problem before I'm not sure why it is now. Especially since the data preview works.

Thank you,
Stephen

SSIS column mappings when csv contain duplicate columns names

$
0
0
What are the options/alternatives when you are mappings csv column headers and the csv file contains duplicate column headers(that's how I get it). Normally the SSIS will reject this since there are duplicate column headers. What other solutions might exist to map this?

Can SSIS 2012 execute packages built on 2008 R2 BI for 2008 R2 SQL Server?

$
0
0

We have a query regarding SSIS instalattion on application server. As SQL Server 2008 R2 is getting out of life, DBAs are suggesting to install SSIS 2012. Now our concern is that our SQL Server DB Server is on 2008 R2, and developers are building packages using SSIS 2008. 

 

Considering we deploy file packages, and backward compatibility, theoretically it shall work. There are 3 things here -

 

1. {2008 R2 SSIS Package} ------ Deployed On -------> 2. {Server with 2012 SSIS installation} ------- Connects to ------->  3. {SQL Server 2008 R2 DB Instance}

 

Any recommendation on this. Would it work? Anything which could cause issue?

 

As we have to pay for license, do not want be in a situation where we pay for SSIS 2012 installation on server (#2 above) and then realize that there is some issue

Regards, Amit Gupta


SSIS data validation errors when running package from Integration Services Catalog

$
0
0

I have package that runs well in the Data Tools as this is running on SQL Server 2012.
It uses paths like this to datafiles: "C:\tempfile\data.xml"

When I run the package directly from the catalogue (or from a job with appropriate proxy account), task fails with errors like these:

"TASK ERROR:The file "C:\tempfile\data.xml" was not found. Please verify the file path and try again."

If I change the address in the solution to UNC: "\\server\share\data.xml" the error message changes to 

"TASK ERROR: The file "\\server\share\data.xml" was not found. Please verify the file path and try again."

Strangely this error message also varies from time to time, as there are many dataconnections (ie. data1.xml, data.xml..), and the file in the error message varies but the error stays the same (not found, validation fails),

but this may be trivial issue.. 

Known Facts:

Package is copied from another package in the same solution.

Delay validation is set to False. 

 



Capture 3 results from Execute SQL task

$
0
0

HI there,

I have stored procedure which is inserting the records

I want to capture PriorRowCount and PostRowcount of that table

I was keeping below code in Execute SQL task

Selct Count (*) as PriorRowCount from Table1

go

insert into Table1 (column1,column2)  select column1,column2 from Xtab where condition

go

select Count(*) as PostRowCount from Table1

I have created two variables PostRowCount and PriorRowCount

and ResultSet=SingleRow

but It was throwing an error .... is that the right way doing or am I doing in wrong way

Can anyone please guide me the process please.


Alert me Updating webservice reference SSIS

$
0
0

Hi

My SSIS package contains a Script component referring a web service through a web reference  .

It was working fine and now webservice has added some more methods 

I changed my code to main.cs to get data from new methods . when I updated the web reference , I can see that there is a chnage in namespace  too 

After updating web reference I am able to successfully build the script and SSIS package but when I deploy it in catalogue , job fails as package still refers old namespace  

plz suggest where am i missing.I am new MS developer

cheers

SSIS - ASCII to EBCDIC Conversion - Packed Decimal fields with Text Fields

$
0
0

Good Day All,

I am facing a challange to create a output file in EBCDIC from ASCII (SQL Server Source) using SSIS.

The output field structure is like following:

Field Names:        Field 1     ¦ Field 2        ¦ Field 3     ¦ Field 4        ¦ Field 5     ¦ Field 6
Source Data - SQL:  varchar(50) ¦ Decimal        ¦ Varchar(20) ¦ Int32          ¦ varchar(10) ¦ Int32
Target-EBCDIC:      Char(50)    ¦ Packed Decimal ¦ Char(20)    ¦ Packed Decimal ¦ Char(10)    ¦ Integer

Any quick tips/comments on how to create the above output format in EBCDIC will be highly appreciated.

Thanks a lot for your time and help in advance.

Thanks and Best Regards,

Raj

how can I get the row number(error row) while constraint failure at the OLE DB destination?

$
0
0

my project is insert data to OLE DB destination from csv file.

my question is

how can I get the row number(error row) while constraint failure at the OLE DB destination?

thanks.

 

Access is Denied

$
0
0

WS 2012 Standard
SQL Server 2012 Standard

I am receiving the dreaded "Access is Denied" for SSIS.
Having followed various articles on the forums I have tried the following:

1) Added My Domain Account to Distributed COM Users
2) Added My Domain Account to DCOM Config SSIS 11.0 with Local Launch, Local Activation, Remote Activation
3) My Domain Account is Member of Administrators Group on Server

Also,  my Account on SQL Server is a member of sysadmin

Any thoughts please how I can connect to SSIS

thanks JohnJames

mm-dd-yyyy in expression ssis

$
0
0

hi

i need to user date like 03-31-2015 in my ssis expression for file.

how to do it in expression builder


Calling ssrs report in SSIS package...

$
0
0

H,

I am new to SSIS.

I have a report in reporting services. I wanted to call the that ssrs report in ssis packages. so that if the report fails then it will notify users by email.

What task do i need to include to call the report and then do email subscription in ssis.

Any help is appreciated,

Thanks,Punia.

How to integrate SQL Database with ASP.NET Website

$
0
0

Hi All,

I'm trying to integrate sql integration in my asp.net link.
Can anyone please suggest me.

Thanks

Column metadata issue in SQL table

$
0
0
Hi All,
I am having one store procedure which use to load data from flat file to staging table dynamically.
everything is working fine.staging_temp table have single column.all the data stored in that single column
below is the sample row.

AB¯ALBERTA ¯93¯AI
AI¯ALBERTA INDIRECT ¯94¯AI
AL¯ALABAMA ¯30¯ 

after the staging_temp data gets inserted into main table.my probelm is to handle such a file where number of columns are more than the actual table.
if you see the sample rows there are 4 column separated by "¯".but actual I am having only 3 columns in my main table.so how can I get only first 3 column from the satging_temp table.
output should be like below.
AB¯ALBERTA ¯93
AI¯ALBERTA INDIRECT ¯94
AL¯ALABAMA ¯30

Please help me to achieve above scenario

Thankx & regards, Vipin jha MCP

Export to flat file with unicode (chinese) characters??

$
0
0

I have an SSIS (2013) package that needs to send an email notification with query results (via attachment). I have a data flow task with a source sql query that gathers 2 columns - ID and NAME. ID is varchar, NAME is nvarchar (some records have Chinese symbols). The destination is a .txt file. When I copy/paste a field w/ Chinese symbols to a .txt file, it shows up fine, so i know Notepad can handle the characters. I also have the .txt file set to Unicode encoding (I also tried ANSI originally). When I run the package, it says that it successfully moves 50 fields to the flat file. However, when I open the flat file, I see that it shows 10 records. It stops when it gets to the record with a Chinese symbol in it...but doesn't produce an error. My plan was to then take the attachment and use it in a Send Mail task. (i have the smtp/mail notification working fine...just need to figure out how to get the data to all export to the flat file correctly)

Does anyone know how I can get the ID and NAME fields from a query into an email notification (either as an attachment, or even formatted nicely (with tabs) in an email would work).


I do not find connections..

$
0
0

At msdn.microsoft.com/en-us/library/ms169800.aspx with HTTPS// at start, it says:

To add a Foreach Loop container

  1. In SQL Server Data Tools, click the Control Flow tab.

  2. In the SSIS Toolbox, expand Containers, and then drag aForeach Loop Container onto the design surface of the Control Flow tab.

My problem is I have no Containers to expand.  It not there.  I opened everything up and I do not find it.  I need help.

non-shark

Viewing all 24688 articles
Browse latest View live


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