ssis

SQL server connecting to SharePoint server

北城以北 提交于 2020-01-11 11:23:10
问题 I wish to connect SQL server 2012 to SharePoint server. This do complete SQL queries..what is the easy way to do so please? I want to download data from a SharePoint table into SQL server table basically. I can only find tutorials connecting SharePoint to SQL server. I want the other way around Happy to do this via SSIS too.. Please help 回答1: There are three options to read from Sharepoint table: (1) Using ODATA Components You can use ODATA Source component to access to the Sharepoint Lists

SSIS : delete rows after an update or insert

佐手、 提交于 2020-01-11 10:52:47
问题 Here is the following situation: I have a table of StudentsA which needs to be synchronized with another table, on a different server, StudentsB . It's a one-way sync from A to B. Since the table StudentsA can hold a large number of rows, we have a table called StudentsSync (on the input server) containing the ID of StudentsA which have been modified since the last copy from StudentsA to StudentsB . I made the following SSIS Data Flow task: The only problem is that I need to DELETE the row

SSIS : delete rows after an update or insert

浪尽此生 提交于 2020-01-11 10:52:09
问题 Here is the following situation: I have a table of StudentsA which needs to be synchronized with another table, on a different server, StudentsB . It's a one-way sync from A to B. Since the table StudentsA can hold a large number of rows, we have a table called StudentsSync (on the input server) containing the ID of StudentsA which have been modified since the last copy from StudentsA to StudentsB . I made the following SSIS Data Flow task: The only problem is that I need to DELETE the row

Copying all files in SSIS without Foreach

孤街浪徒 提交于 2020-01-11 10:22:13
问题 Is it possible to copy all the files from one folder to another without using foreach? I have source as c:\test1*.txt and destination as c:\test2 When I execute this using File System Task, I get the following error An error occurred with the following error message: "Illegal characters in path.". 回答1: Yes, it's possible to copy all files from one folder to another. Below, my source is C:\test1 and my destination is C:\test2. The task below will copy all files from C:\test1 to C:\test2. The

\377\376 Appended to file (Windows -> Unix)

不想你离开。 提交于 2020-01-11 09:58:06
问题 Morning All - I have a problem and the solution has alluded me for a few days now. I have an SSIS package that performs the following. 1. Run SQL script 2. Export results to flat file (UTF-8 Encoded, ; delimitated, and \n for new lines) 3. FTP results to solaris machine ( binary format ) The problem is, that when the file is shows up on my solaris box it has the following at the start of the file. \377\376 I have tried dos2unix and still has not corrected the issue. In fact it changes the

Performance impact of using NTEXT field in SSIS

痴心易碎 提交于 2020-01-11 09:51:23
问题 We are bringing in data from a source system to our data warehouse. They are changing some of their columns from nvarchar(255) to nvarchar(max). Looking at their data it seems like 95% of the data is under 255 characters and 99% (probably 100%) under 4000 characters. We're having to change our SSIS package metadata to use NTEXT to bring in these columns (they're converting 8 columns across 4 tables). I'm not familiar with how SSIS handle nvarchar(max) (in SQL Server) /NTEXT (in SSIS) and what

SQL Server table is sorted by default

。_饼干妹妹 提交于 2020-01-11 06:19:16
问题 I have simple SSIS package where I import data from flat file into SQL Server table (SQL Server 005). File contains 70k rows and table has no primary key. Importing is sucessful but when I open SQL Server table the order of rows is different from the that of file. After observing closely I see that data in table is sorted by default by first column. Why this is happening? and how I can avoid default sort? Thanks. 回答1: You cannot rely on ordering unless you specify order by in your SQL query.

Exclude specific Sub Folders

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-11 05:32:04
问题 I got a package that runs through a folder and it's sub folders to get client data. The agreement has changed and now the client will post his data in different folder name every time. I was wondering if I can do a foreach loop on the main folder and exclude specific folders like archive . I don't have knowledge in writing scripts so I was wondering if SSIS can do that without the script. 回答1: Using Execute Script Task Get List of - filtered - files using an Execute Script Task before

How to change flat file source using foreach loop container in an SSIS package?

倾然丶 夕夏残阳落幕 提交于 2020-01-10 16:59:16
问题 How can i change Flat file path using foreach loop container in SSIS I'm having flat file which is under c:\sourcefile name of the file is "Flat(Date)" for e.g Flat01aug2011.csv and every day it is generated by recent date so i need to picked up new file always and pass it to Flat File destination , so how can i traverse through folder and take new file which is having recent date.??? 回答1: Example in the below given link shows how you can loop through files of a given extension and load them

Expression Builder of Connection Manager not showing Variables

核能气质少年 提交于 2020-01-10 00:51:13
问题 I'm having this exact same problem I've been looking aroung but this is the only place I've seen the same issue and it is not resolved. Does anyone knows what the problem might be? I checked in Visual Studio and my SSIS version is 11.0.2100.60 (not a trial, not a beta). EDIT: These are the steps I'm taking and the issue First I choose a Connection Manager, right-click, select properties and click in Expressions option Then in Property Expression Builder choose Connection String property and