ssis

How to upload files to one drive using ssis?

别说谁变了你拦得住时间么 提交于 2020-01-15 06:52:46
问题 I am looking for a way to upload files to One Drive using SSIS. I've researched and there are some third party tools like CozyRoc, KingswaySoft which provide one drive connection manager. Anyone out there who already have experience doing this? If so please share! 回答1: I found a much easier way to do this without the need of any third party software. Download one drive to your local machine and then login. You can upload, download, delete files.To map the One Drive for Business cloud drive on

How do I retrieve only the top x rows from a flatfile in SSIS

╄→гoц情女王★ 提交于 2020-01-15 06:47:08
问题 I have a flatfile connection and I'm only interested in the first 10 rows of data. How can I just import the first 10 rows? Row sampling is random so I can't use that. Is there some way I can have some sort of derived column which is an automatic row number or something and then data-split to only keep rows with that id <= 10? Any help much appreciated! 回答1: I've used this component --> http://www.sqlis.com/post/Row-Number-Transformation.aspx The component creates a new variable with a row

Get SQL queries which are executed from SSIS package on SQL Server

╄→尐↘猪︶ㄣ 提交于 2020-01-15 05:36:47
问题 I have built a custom job log framework which logs all of the tasks which are execute in an SSIS package along with any error that surface. Once complete, an enhancement was requested to also store any SQL queries that the SSIS package executes on the SQL Server. This is not limited to only Execute SQL tasks, they are looking for ANY SQL queries that the pack runs. I am aware of the OnInformation logging that is part of the SSIS logging framework, but this only shows some of the query. Thanks

How to prevent SSIS from importing data from a file that already exist in database?

我与影子孤独终老i 提交于 2020-01-15 03:08:47
问题 Everyday i load some csv data into my table. And my table has date column, now i need to use rollback function, such that, if the data already exists in my table it has to rollback, else it has to inserts based on my Asofdate parameter. I know it is little confusing, let me be more clear. my table has eid, ename, asofdate columns , now when i insert new file every day, it has to see whether that file is already existed in that table based on asofdate, if data exists, it should rollback the

SSIS job fails - Access denied to flat file

眉间皱痕 提交于 2020-01-15 03:07:09
问题 I have created an SSIS package that reads a csv file from a network shared drive and imports the data into our table. The package works fine in the Visual studio. I imported the package to Integration Services Catalog and when I execute the package, it gives access denied to flat file error. What is required to run the package from Sql server, I created a job to run this package nightly and assigned a proxy for the job. Not sure what permissions I am missing, any help please 回答1: When SSIS

How to Query Integration Services Catalog

痴心易碎 提交于 2020-01-15 02:46:33
问题 Problem: Identify all SSIS packages that connect to a specific database table on SQL Server. Details: There are almost 100 packages deployed to the server, most packages are huge in size, so it will be difficult to go through them manually with a high degree of accuracy. Is there a fast and automated way to do this? Potential solution using SQL Server: Query the Integration Services Catalog and retrieve the *.dtsx package Load the package data into an XML column/data type Parse/query the

Getting error running SSIS package on non-SSIS Server [duplicate]

蹲街弑〆低调 提交于 2020-01-14 22:47:43
问题 This question already has an answer here : Executing SSIS 2012 package that has script components from external application (1 answer) Closed 5 years ago . I'm working in SSDT 2012. I've created a DTSX package that I have deployed to a SQL Server that does not have SSIS installed. My undertstanding is that this should work. However I keep getting the following error: To run a SSIS package outside of SQL Server Data Tools you must install Derived Column of Integration Services or Higher. I'm

Getting error running SSIS package on non-SSIS Server [duplicate]

流过昼夜 提交于 2020-01-14 22:45:56
问题 This question already has an answer here : Executing SSIS 2012 package that has script components from external application (1 answer) Closed 5 years ago . I'm working in SSDT 2012. I've created a DTSX package that I have deployed to a SQL Server that does not have SSIS installed. My undertstanding is that this should work. However I keep getting the following error: To run a SSIS package outside of SQL Server Data Tools you must install Derived Column of Integration Services or Higher. I'm

Create multiple flat file from running same query with different criteria

送分小仙女□ 提交于 2020-01-14 15:00:14
问题 I have 10 Million customer numbers in my data base table. I want to run query every time for first 1 million customers and save that data in .csv file. How can I do that with SSIS package? Ex , First time: Select First name, Last name, Customer Id From Customer Where Customer Id between 1 to 1,000,000 Now get the result and store data in test1.csv file on local. Second time: Select First name, Last name, Customer Id From Customer Where Customer Id between 1,000,001 to 2,000,000 Now get the

Unable to transfer SQL Server varchar(max) to MySQL text using SSIS

给你一囗甜甜゛ 提交于 2020-01-14 13:14:24
问题 I'm trying to transfer a table from SQL Server to MySQL using SSIS and it is failing on one column that is varchar(max) on SQL Server and text on MySQL. So far I have tried doing this as an OLE DB to ODBC data flow, as well as BCP out into a flat file to ODBC data flow. The field in question is configured in SSIS as DT_TEXT. In both instances, it is producing the following set of errors: [ODBC Destination [47]] Error: Open Database Connectivity (ODBC) error occurred. SQLExecute returned error