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

SSIS 2012 to 2014 Upgrade Scripts being lost

$
0
0

Hi,

I'm trying to upgrade a SSIS 2012 solution to SSIS 2014 which is 36 packages most of which have some script tasks or components in them.

When I open the solution in VS2013 (update 5 with SSDT-BI version12.0.2430.0) and go through the upgrade wizard I get lots of errors mainly as:

"The binary code for the script is not found. Please open the script in the designer by clicking Edit Script button and make sure it builds successfully."

or

"Failed to migrate scripts contained in the package to the VSTA 11.0 format. Move the scripts to a new Script Component"

However when I go to look at the scripts to re-compile the script code has been completely removed. When VSTA (always VSTA 2012 rather than 2013) opens up there aren't any items at all (not even the standard generated scripts).

Two other things I've tried are to create a new solution then Add Existing Item and select all the packages - VSTA then shows the script tasks but when I've gone to run the packages I've found that in some cases my user defined code is gone!

The second thing I've tried is creating a new solution and choose add existing package it seems to migrate the scripts ok. But this is very laborious!

I've seen on the web people mentioning about changing the source control provider to none has helped but this doesn't seem to do anything for me.

Any other ideas? Surely the upgrade wizard should be able to migrate the scripts across from 2012 - 2014!

Thanks

Leyton


To Know How many Task Got Executed and No of records inserted into table package or job wise.

$
0
0
I have a requirement: Suppose 10 Jobs are their running in my System. Each job is inserting record. Then how we can get the value package wise or job wise that __ no of rows inserted.

SSIS Script Component Transformation Set

$
0
0
Is it possible to read, change and output dataflow whole at once in the Script Component transformation? As array set, not row by row.

How to Cross Check Production Server deployed Copy (SSIS package) is the Latest one

$
0
0

Hi All,

I am using SQL -2014 Version for both SQL and SSIS. Scenario is my Client has deployed package in SSMS in "INTEGRATION SERVICE CATALOG" in Production Server. We have TFS also for maintaining version. How Can I verify that my deployed ssis package copy in Production system is the same in TFS too ?Is there any way to export .DTSX file from "INTEGRATION SERVICE CATALOG" .I want to make sure both TFS and Production copy are same. Kindly help me 


Abhishek Parihar BI Consultant (Please mark the post as answered if it answers your question)

SSIS Script task without Visual Studio 2012

$
0
0
I'm using VS2013 with SSDT installed. Added a Script Task but when I try to Edit the script it tries to open in VS2012, which I do not have a license for (trial expired). Is there a way around this?

LTRIM Not working

$
0
0

Hi,

I'm loading data from a table (sql server db) into a flat file. I have around 30 columns. When i open the .csv with excel i noticed that few columns were having spaces before or after them. For example zip code is having large spaces in front of it. I used LTRIM in the derived column and did run the package again, but with no luck. Any ideas where am doing wrong?

Thanks


SV

Print Nigtmare

$
0
0

Hi,

I have been trying to get a SSIS task to print a PDF document to the default printer when running as a SQL Agent job

Script Task

 Public Sub Main()
        '
        Dim pdfFileName As String = "\\XX\TESTDIR\TEST.PDF"

        Dim PrintPDF As New ProcessStartInfo
        PrintPDF.UseShellExecute = True
        PrintPDF.Verb = "print"
        PrintPDF.WindowStyle = ProcessWindowStyle.Hidden
        PrintPDF.FileName = pdfFileName
        Process.Start(PrintPDF)
        '
        '
        Dts.TaskResult = ScriptResults.Success
    End Sub
If i execute the task from VS manager its fine, but when scheduled to run form a SQL job, it returns success but nothing prints. Looking at the report in the SSIS catalogue , it is showing that the SQL Job Succeeded. I have checked the Account running the SQL Agent has permissions on the printer ...... and it does . I'm at a loss as to where to look !


Dont ask me .. i dont know

FTP to SFTP in SSIS package

$
0
0

Hi All,

Currently i am using ftp connection in my ssis package and it was working fine. But now the ftp connection has been changed to sftp. can anyone please tell me the best way to upgrade my ssis package from ftp connection to sftp connection to handle this issue?


SSIS Validation

$
0
0

Friends need Help,

i do have my project file  with SSIS PAckages .One of the SSIS File is very big .having different Sequence containers containers. logic written

Our Source DB Changed today . i need to change teh same in SSIS Conection managers and test it .

but as soon as i open the project file .., it starts validation and continues.. i wated for 4 hours . i opened 4 instances to stop validation of the file so that i can work.,change the IP ,test it and re deploy it .

but all in vain ...

Please help .

Be our SSIS TechNet Guru of 2016 and become renowned in community and professional circles!

$
0
0

A new year! A new start for the TechNet Guru Awards 2016!

2015 Guru was soooo last year! 2016 Guru is where it's @ my friends!

This is when you make your mark on history and stamp your authority on your favoured technology!

This is when they shall know your name and come to appreciate your depth and breadth of knowledge!

This is... the Year of You!

All you have to do is add an article to TechNet Wiki from your own specialist field. Something that fits into one of the categories listed on the submissions page. Copy in your own blog posts, a forum solution, a white paper, or just something you had to solve for your own day's work today.

Drop us some nifty knowledge, or superb snippets, and become MICROSOFT TECHNOLOGY GURU OF THE MONTH!

This is an official Microsoft TechNet recognition, where people such as yourselves can truly get noticed!

HOW TO WIN

1) Please copy over your Microsoft technical solutions and revelations toTechNet Wiki.

2) Add a link to it on THIS WIKI COMPETITION PAGE (so we know you've contributed)

3) Every month, we will highlight your contributions, and select a "Guru of the Month" in each technology.

If you win, we will sing your praises in blogs and forums, similar to the weekly contributor awards. Once "on our radar" and making your mark, you will probably be interviewed for your greatness, and maybe eventually even invited into other inner TechNet/MSDN circles!

Winning this award in your favoured technology will help us learn the active members in each community.

Feel free to ask any questions below.

More about TechNet Guru Awards

Thanks in advance!
Pete Laker


#PEJL
Got any nice code? If you invest time in coding an elegant, novel or impressive answer on MSDN forums, why not copy it over toTechNet Wiki, for future generations to benefit from! You'll never get archived again, and you could win weekly awards!

Have you got what it takes o become this month's TechNet Technical Guru? Join a long list of well known community big hitters, show your knowledge and prowess in your favoured technologies!

Secured FTP task options in SSIS

$
0
0

So we have a solution that successfully queries our SQL Server database, gets a result set, and extracts that data to an Excel spreadsheet. Now the last part of this is to Secure FTP the file over to a client.

In my research and analysis, I have found the following two ways to Secure FTP a file using tasks in SSIS.

One is by making use of the SFTP Task which needs to be downloaded and copies DLLs.

https://ssisextensions.codeplex.com

The other means of Secure FTP in a SSIS Solution, not buying a 3rd party tool like Task Factory, is WinSCP scripting.

http://www.codeproject.com/Tips/677002/How-to-Use-SFTP-within-SSIS

Now I have gone back to our DBA group indicating these possible SSIS Secured FTP solutions. I have asked if WinSCP is installed on our SQL Server so that we could utilize a script in order to Secure FTP from our SSIS solution. The DBA has come back and has said that adding WinSCP and Secured FTP capability from a SQL Server is not a good option in terms of security and enabling ports on the SQL Server for file transfer.

(Personally....that kind of sounds like an excuse to me.....I mean with the firewalls in place and everything...)

He is suggesting that we cross-over to another server in order to do this Secured FTP file transfer.

Is it possible to do a cross-over to another server within the SSIS solution to Secure FTP the file over? I mean if SQL Server is not installed on the Secured FTP server he's suggesting....what's the point? I can't utilize the SSIS solution to complete the job.

Is his argument weak in terms of enabling ports on the SQL Server in order to utilize Secured FTP from SQL Server?

Can I build a counter-argument with him of best practices and SQL Server set-up and utilization?

Does anyone have any other suggestions....alternatives...

Thanks for your review and am hopeful for a reply.

ERROR: Cannot open datafile

$
0
0

Hi,

There is a .csv that i created through PowerShell script as part of my SSIS package. Thereafter, the file is read by the Flat file source in my Data Flow task. However I got the error: cannot open datafile <filename>.

I'm running the package thru Integration Services Catalogs. I also put a full control on the folder where the file is created.

Is there something I'm missing out here? Please help!

Thanks.

Cherrie

Look up transformation directs all records to 'No Match Output'

$
0
0

Hi Experts,

I am trying to load Fact table and load the surrogate keys.

In the process I have a few Lookup tasks all on different column conditions to retrieve different surrogate keys.

The first Lookup works fine and passes the records to the next tasks.

However, though the condition seems to be correct, all the records are getting directed to no matching output.

I have manually checked on the tables and run the below query which does output records based on the condition.

Select SK_COL_ID, COLMN_CODE From Table1 Inner Join Table2
on Table1.COLM_CODE=Table2.COLM_CODE

Not sure what am I missing or whats my mistake.

I appreciate any help here.

-Shyam

Execute Package Task in 32 bit mode

$
0
0

I have two servers, SA and SB, and two packages, PA and PB.

PA runs on SA in 32 bit mode.

PB runs on SB and needs to run in 32 bit mode.

When an "Execute Package Task" in PA executes PB, PB is executed in 64 bit mode.

PA and PB are both stored in SQL Server. Both SQL Servers are 2012.

Is there some means of executing PB in 32 bit mode from PA. I want to execute it in such a way that PA waits for the results from PB.

FileTable, excel, and SSIS

$
0
0

To preface, I am ramping up on SSIS, and I just started reading about FileTables today.

I am developing a SSIS package that will read in an excel spreadsheet, load it into a SS table and do other things.

So far, I have set it up using Excel Source and Excel Connection Manager.  The excel gets read into the table fine.

I was just wondering if having the excel in a FileTable to do what I am currently doing would be applicable, if even possible ?  Is that a proper application ?  I am still in the process of configuring the SS, so I have not really been able to play with FileTables fully yet.

Appreciate it !


I am trying to run SCD

$
0
0

I am trying to run SCD but I am getting theses errors 

[Insert Destination [20]] Error: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80040E2F.
An OLE DB record is available.  Source: "Microsoft SQL Server Native Client 11.0"  Hresult: 0x80040E2F  Description: "The statement has been terminated.".
An OLE DB record is available.  Source: "Microsoft SQL Server Native Client 11.0"  Hresult: 0x80040E2F  Description: "Cannot insert the value NULL into column 'Iscurrent', table 'TestingDB.dbo.DimEmployee'; column does not allow nulls. INSERT fails.".

[Insert Destination [20]] Error: SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR.  The "Insert Destination.Inputs[OLE DB Destination Input]" failed because error code 0xC020907B occurred, and the error row disposition on "Insert Destination.Inputs[OLE DB Destination Input]" 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 "Insert Destination" (20) failed with error code 0xC0209029 while processing input "OLE DB Destination Input" (33). 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.

In SSIS, how to set the value of a SQL Server column to constant ?

$
0
0

I am importing a TXT (delimited by "|") file to SQL Server.
Say my TXT file has 2 columns: A and B like so:

A|B
Value A1|Value B1

Say my SQL Server table has 3 columns: A, B and C. The value of A and B come from TXT file, and the value of C is a constant value.
In SSIS, how can I set the value of column C to a constant value, for ex: ConstantValue1.

For ex:
A                      B                   C
Value A1           Value B1        ContantValue1

Thank you.

Parameterize Date

$
0
0

I have a SSIS job that runs weekly. It will be taking in a source file with suffix as the date for example: SourceFile_14012016.

My first question is: How can i design my program in a way that it will pick up the latest file? I can't hardcode the input source to the file name as it will change every week. Is there a way to parameterize it?

My second question is: i will need to substring the date from the file name, and save it to a database table as the business date. Can this be done? 

String to Date conversion fail

$
0
0

Hi,

I have a column that has data as 20140212, 20140213,20140215,..etc

This need to be mapped to The_Date column in the target table.

The source has nvarchar data type and the target has the Date data type.

I have created a derived column to get the matching values ase 2014-02-12 and used a Data Conversion transformation to convert String to DBDATE data type.

However, the conversion is fetching all records to error output.

Not sure what is going wrong. Any help here is highly appreciated.

Thanks in advance.

-Shyam.

Retrieve specific cell value from Excel into SSIS variable

$
0
0

Hi all,

I'm experiencing a very frustrating issue. I am using the guide below to read a cell value in Excel into a SSIS variable;

http://www.techbrothersit.com/2013/11/ssis-read-excel-cell-value-in-ssis.html

It works very well for anything but a cell that has a date in it! I have tried to change the data type of the SSIS variable to everything possible but it still doesn't work, and I keep getting this error message;

An error occured while assigning a value to variable "ValuationDate": "Unsupported data type on result set binding 0"

The cell I am trying to read is B4, and the SQL Statement I am using in the Execute SQL Task isSELECT * FROM [Sheet1$B4:B5]. I am happy this is correct because if I change the value in B4 to anything that isn't a date, it works.

Please help!!

Viewing all 24688 articles
Browse latest View live