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

SSIS package or sql job through web

$
0
0

Hi There,

I have bunch of SSIS packages basically truncating and loading data, I have one master package to kick off all other packages, then sql job is set up to run master package on schedule basis.

User request ability to run the ssis or job on demand or on ad hoc basis, is there anyway I can expose my ssis or job through web so user can click button and run the job? They are all inside the company network.

Thanks


Don


how to get the variables in console application from execute process task ?

$
0
0

Hi , In execute process task am passing 2 variables under expression -> argument type as @var1+" "+@var2.

I received in console application as 

 string Region= args[0].ToString().Trim();
 string location= args[1].ToString().Trim();

If i used any Region or location in ado.net operations am receving like 

the name is "Region" not permitted in this context valid expressions are constants.



To run a SSIS package outside of SQL Server Data Tools you must install Move File to Archive of Integration Services or higher

$
0
0

I am testing SSIS package that I upgraded from VS2005 project to VS2013 project. This is very simple package which just processes files and updates database based on those files. And I am getting odd error and I cant find solution for that.

Issue is my package runs fine and it does exactly what it suppose to do (extracting data from file and inserting into table). But part of this operation is to move file to archive. And I am getting this error"Description: To run a SSIS package outside of SQL Server Data Tools you must install Move File to Archive of Integration Services or higher." 

I have used VS2013 with SSDT BI for 2014 and SSIS Designer version matches with dtexec utility in my dev test VM (12.0.2000.8 x64 bit). Below is output from CLI.

I am sure it has something to do with some missing component but I just can't figure out what. Any help is appreciated.

Microsoft (R) SQL Server Execute Package Utility
Version 12.0.2000.8 for 64-bit
Copyright (C) Microsoft Corporation. All rights reserved.

Started:  10:45:58 AM
Progress: 2016-02-11 10:45:59.20
   Source: Truncate StagingTable
   Executing query "TRUNCATE TABLE StagingTable".: 100% complete
End Progress
Progress: 2016-02-11 10:45:59.25
   Source: Insert into Staging
   Executing query "exec dbo.staging  @xml_fileName,NULL,'C...".: 100
% complete
End Progress
Progress: 2016-02-11 10:45:59.25
   Source: Move to MasterXML
   Executing query "exec dbo.insertXML".: 100% complete
End Progress
Error: 2016-02-11 10:45:59.25
   Code: 0xC000F427
   Source: Move File to Archive
   Description: To run a SSIS package outside of SQL Server Data Tools you must
install Move File to Archive of Integration Services or higher.
End Error
Progress: 2016-02-11 10:45:59.30
   Source: Execute SQL get_next_file
   Executing query "exec get_next_file".: 100% complete
End Progress
Progress: 2016-02-11 10:45:59.51
   Source: Execute SQL notify_users
   Executing query "exec notify_users".: 100% complete
End Progress
DTExec: The package execution returned DTSER_SUCCESS (0).
Started:  10:45:58 AM
Finished: 10:45:59 AM
Elapsed:  1.172 seconds

SSIS DB2-> SQL Server 2014 data migration issue (Timestamp -> DateTime2)

$
0
0

we are trying to transfer data from DB2 -> SQL Server 2014 database with identical schema with column types translated like db2 Timestamp mapped to sql server Datetime2 type. When using SSIS to transfer data between tables, the timestamp -> datetime2 is failing due to data type mismatch in SSIS.

Found couple of old links related to that and they had below suggestions,

1) One suggesting to use below expression,

(SSIS-derived column) code for the transformation:

SUBSTRING(<TimestampColumn>,1,10) + " " + SUBSTRING(<TimestampColumn>,12,2)+ ":" + SUBSTRING(<TimestampColumn>,15,2) + ":" + SUBSTRING(<TimestampColumn>,18,2) + "." + SUBSTRING(<TimestampColumn>,21,26)

Is this approach valid and if so is the <TimestampColumn>  in the above expression is it in DB2 Timestamp type or it is the string version of db2 TimestampColumn?

2)   another blog suggesting to add a derived column and Type cast it with (DT_DBTIMESTAMP2)[Column_Name],.

 again, in above not sure if above expects the source DB2 timestamp data in String format or will work on Timestamp type?

Please share how to handle this Timestamp -> Datetime2 mismatch in SSIS.

regards

aravias


Transfer Database Task From Multiple files to single file

$
0
0

The source database is on 10 files, I need to transfer the database from the production environment to the local dev machines so we can develop and test against it. We want the local file just the default 1 data 1 log file, min amount 4 meg, with standard growth. The min file size on production is 160 gig way to large for our local machines. For the local machine we are just interested in keeping the database objects (and any updates to the objects that other developers may have done) and 3-6 months worth of data. I cannot see an option in the Transfer Database Task to do that. 

Here is my process

  1. Transfer database task
  2. Shrink database task (on the local machine)
  3. Rebuild Indexes (local machine)

This would create the new database (hopefully on a single file) files shrunk and ready to copy/use on a local dev machine.  Can this be done with SSIS tasks?

Thanks.

SSIS execution using DTEXEC in a batch script

$
0
0

Hi,

Let me set the context first. I am executing an SSIS package using DTEXEC command in a batch script. The SSIS package takes an input text file(A.txt) to execute a stored procedure and updates the database table. From the batch file, I write the return code of the DTEXEC command to a file.

Now, my problem is that the ERRORLEVEL in the batch file does not capture all failures. When I delete the input text file(A.txt) and run the batch file, I expect the batch file failing on the data flow task component (which involves the input text file), but the ERRORLEVEL in the batch file is still 0, which means successful execution of the SSIS package.

Could anyone help me understand this behavior of the DTEXEC command? I want the error code to be captured in the errorlevel when a data flow task component of an SSIS package fails. How do I do it?

Thanks,

Veena


Thanks! Veena

SSIS 2012 Project Deploymeny Progressively Slower

$
0
0

I've noticed a gradual increase in the amount of time it takes for me to deploy a project to the SSIS Catalog. First of all, is there a way to deploy only specific packages or do I need to deploy the project everytime a package is added or changed?

In the beginning, the project only had few packages and the deployment time was not noticiably slow. Now, as I've added more projects (currently upto like 15 packages) I am beginning to notice an increase in the amount of time it takes for the project to get deployed (like 5 minutes or more.)

Any explanation for this and how to make it go faster?

Uploading excel files in Sharepoint 2013 using SSIS

$
0
0

I'm looking into uploading excel files in SharePoint 2013 using SSIS. These excel files are generated every morning by some external system. Can anyone guide me how is it done?

Thanks.



unable to connect excel source

$
0
0

Hi all

I am using SSIS 2012, I want to load data from excel to OLDEDB .

When i am using excel manager to connect , the table doesnot load

i changed the 64bit runtime to false also .What to do  ? any suggestion

I am unable to upload the image or error, it shows need to verify account

"Failed to connect  to excel source using the connection manager "

how to attach images here ?

SSIS Cannot Find Renamed Excel File Until After Restart

$
0
0
I have an xlsx file as a source. I use a Foreach Loop Container to take an xlsx file that lands in the directory, copy it to an Archive directory and then rename it to a standard name. Outside of the loop and directly after it, I use a Data Flow Task to load the excel data into an Excel table. Each time I execute the package, the Foreach Loop container runs, but the Data Flow Task fails. If I click the Execute button again, it will run. If I run the Data Flow Task by itself, it will run. It seems as though it won't recognize the new filename right away. I tried a delay but it didn't work. Any ideas on how to make this work without manual intervention?

File Connection Error After Server Deployment

$
0
0

I have a package that runs fine on my local PC, When I import it onto the server and attempt to run it, I get the "[Excel Source [2]] Error: Opening a rowset for "'Sheet1 $'_xlnm#_FilterDatabase" failed. Check that the object exists in the database." error. I've checked to ensure that I have all file connections, etc. set up correctly, and the Excel data file is located in the expected place. Any ideas on why this is happening? Anything I can check on the server?

Any help is greatly appreciated!  I'm really stumped with this package.

How to test a SSIS package while developming it?

$
0
0

Hi, I recently started learning SSIS. I have a question on how do we test a package to make sure that it working properly in development? My question is we may have to test it multiple times, but every time it runs data is loaded into DW and there may be duplicated data. Do we have to delete data before each test? or how exactly it should be done for proper testing in development in real time scenario. Can any one clarify my doubt?

--

thanks

sateesh

How to look for a user ID in all SSIS packages and replace with another user ID.

$
0
0

Hi All,

I would like to know the process to search for a word(in my case email id) in packages stored in file system and replace with another word(another email id). One of our colleagues left our team recently and a new team member joined. Old colleague's email id is manually written in the SQL script to send failure/success notifications inside some SSIS packages. I manually replaced his email id with new member's and everything running fine so far. I wonder what could be the efficient way to replace some text in packages? In my case I know the packages with his ID, but If I am new to team and have to replace something within some 100+ SSIS packages? Appreciate any thoughts..

Thanks,

MSBIan.


MSBIan


how to change the format

$
0
0
Hi all

i am trying to upload excel, but there were some issues so changed to CSV.Now when i connect to csv file and see the preview in connection manager the format is changed.how to regain format. ?i couldn't upload images as it asks me to verify account, i pasted the image in the below blog. Please suggest

1) converted excel to csv

https://infoallsite.wordpress.com/2016/03/25/ssis-related-excel-error/

2)

https://infoallsite.wordpress.com/2016/03/26/format-changed-loading-csv-file-using-ssis/

Error when loading server names in connection manager dynamically

$
0
0

Hello

I am working on this project to dynamically load server names into the connection manager.

When configuring my Data Flow Task -->OLE DB Source, I have this error (I'm still in design mode):

SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occured. Error code : 0x80004005...

My configuration is as follows:

Connection Managers:

1. Source Data manager (Dynamically load server names)

2. Destination Data Manager (Connection information "hard-coded" with actually server name where my central db repository is located)

SQL Task - Reads server names from my DB Repository into a variable ServerListof type Object.

ForEach loop -

Enumerator-ForEach  ADO Enumerator

Enumeration configuration- ServerList variable

Variable Mappings - Variable ServerName of type String

I confirmed that the ServerList variable was populated with my server names and this information was successfully sent to myServerName variable in the ForEach Loop.

But it seems that the Source Data Manager is not getting the ServerNamevalue to make the connection to the desired server.

Here is a screenshot of my little project:


Any hints on how I could resolve this issue please?

Thank you in advance


mapping error flat source and oldedb source merged

$
0
0

destination table is

create table emp4
(id int, name varchar(50), sal int, dept int, deptname varchar(50))

source table flat file has :id,name,salary,dept

another oldedb bsoruce table has : deptid,deptname

how to resolve the mapping error ?

someone please verify my accout i am unable to upload images here.

https://infoallsite.wordpress.com/


SSIS packages (VS 2012) work with VS 2015

$
0
0

We have various SSIS packages developed using VS 2012, SQL Server 2012. 

We are now upgrading to VS 2015 and SQL sever 2014.

Will we be able to manage and update these SSIS packages from within VS 2015?

Table With Id field in Destination Table

$
0
0

hi expert, i am new to SSIS, i have basic query regarding SSIS, i want to transfer my data from one Table to another,right,

scenario is that, 

in Source Table, there is no any primary key define , but in destination i want to create a primary key in my Table,

when i execute the package it  gives me error, and when i remove the primary key from destination table or creating primary key for two columns its work, so i confuese

create TAble Cust0_DW
(
 CustAccount nvarchar(20),
Name     nvarchar(100),
Company  nvarchar(4)not null primary key(CustAccount,Company),// using this i have set primary key on both column,in this case the package working, //
CustGroup nvarchar(60)

so please guide me.

Regards.


how to connect the previous flow ?

$
0
0

hi , i want the steps to run again .

for eg. in the below image after the forEach loop i want the process again start from getting username.

Any help appreciated :)


Excel Connection Manager Can't Find Worksheets

$
0
0
I created a package using VS 2010 with an Excel Connection Manager that connects to an .xlsx file.Intermittently, the package throws an error stating that it can’t find a worksheet (even when I specify one with a variable, and when I don’t). It will run correctly several times in a row and then stop. I have searched for an answer everywhere, but nothing seems to work. Any ideas, please? I'm at my wits' end and my deadline is at hand.
Viewing all 24688 articles
Browse latest View live


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