随笔分类 -  SQL Server

[转]SSIS中的脚本—脚本任务
摘要:本文转自:http://www.cnblogs.com/tylerdonet/archive/2011/09/16/2179123.html脚本任务主要用来控制数据流,当现有的控制流 任务不能满足复杂的设计要求的时候,就应该考虑使用脚本任务。 这里我们创建第一个脚本任务,和其他的教学例子一样,我们也将创建一个简单的HelloWord程序。新建一个package 命名为ScriptTaskExample在Control Flow内拖放一个Script,如图1图1 双击打开编辑界面如图2图2 点击左边Script标签,打开界面如图3图3 这里有几个属性标签下面做一些说明 a. Scri... 阅读全文

posted @ 2014-03-24 09:37 freeliver54 阅读(929) 评论(0) 推荐(0) 编辑

[转]Configure logging in SSIS packages
摘要:本文转自:http://learnsqlwithbru.com/2009/11/26/configure-logging-in-ssis-packages/n this article we will look at the steps to enable logging in SSIS packages. Each control flow task in a package have multiple events and logging enables you to look the execution details of these events.Steps to configure 阅读全文

posted @ 2014-03-24 09:30 freeliver54 阅读(526) 评论(2) 推荐(0) 编辑

[转]SSIS ADO.NET vs OLEDB
摘要:本文转自:http://social.msdn.microsoft.com/Forums/sqlserver/en-US/1a9e3670-9685-4943-913b-123ecf248a9c/ole-db-vs-adonet?forum=sqlintegrationservicesADO.NET vs OLEDB:I'll try to answer this question by slicing it into4 main areas:1.support across SSIS components:a.SSIS is not welcoming ADO.NET and OLE 阅读全文

posted @ 2014-03-06 18:41 freeliver54 阅读(1219) 评论(0) 推荐(0) 编辑

[转]SSIS高级转换任务—在Package中是用临时表是需要设置RetainSameConnection属性
摘要:本文转自:http://www.cnblogs.com/tylerdonet/archive/2011/05/20/2052306.html在上一个导入列这个例子中我们创建一个实际的表来存储文件路径,在生产环境中我们可能不会创建一个实际的物理表来存储这些信息,而是创建临时表。这里有一个小小的技巧,在Control Flow中拖放两个Execute SQL task,一个创建临时表,另一个销毁临时表,执行这个package,会遇到一个错误,在Progress中提示信息显示不存在这个临时表。错误信息如下:Error: 0xC002F210 at Execute SQL Task 1, Execut 阅读全文

posted @ 2014-03-06 14:35 freeliver54 阅读(761) 评论(0) 推荐(0) 编辑

[转]SSIS高级转换任务—行计数
摘要:本文转自:http://www.cnblogs.com/tylerdonet/archive/2011/06/19/2084780.html在SSIS中的Row Count转换可以在数据流中计算数据源的行数。这种任务必须将行数保存在一个变量中。这种任务在你不想将数据行数保存在一个物理表中时会很有用。例如在ConditionalSplit任务中使用多个RowCount记录有多少行被分离出来,每个Row Count将使用变量记录分支中的数据行数,可以将这个变量值记录在数据库中,作为邮件信息发送出去,或者在下一个步骤中使用。一样这个任务需要使用高级编辑器,这个更加简单,只需要添加一个变量来存储行数。 阅读全文

posted @ 2014-03-06 14:31 freeliver54 阅读(503) 评论(0) 推荐(0) 编辑

[转]SSIS Recordset Destination
摘要:本文转自:http://www.sqlis.com/sqlis/post/Shredding-a-Recordset.aspxDoing what to a recordset?Shredding a recordset in this instance means that we are going to show you how to take a recordset produced in your SSIS package, loop over the rows in that recordset, break apart the columns and do something wi 阅读全文

posted @ 2014-03-06 10:26 freeliver54 阅读(519) 评论(0) 推荐(0) 编辑

[转]SSIS: By coding
摘要:本文转自:http://www.codeproject.com/Articles/604197/SSIS-By-codingIntroductionSSIS better known as “SQL Server Integration Services (SSIS)”, is a component of SQL Server. According to Wikipedia:-“SSIS is a platform for data integration and workflow applications. It features a fast and flexible data war. 阅读全文

posted @ 2014-03-06 09:21 freeliver54 阅读(489) 评论(0) 推荐(0) 编辑

[转]SSIS cannot convert between unicode and non-unicode string
摘要:本文转自:http://www.mssqltips.com/sqlservertip/1393/import-excel-unicode-data-with-sql-server-integration-services/Import Excel unicode data with SQL Server Integration ServicesProblemOne task that most people are faced with at some point in time is the need to import data into SQL Server from an Excel 阅读全文

posted @ 2014-03-06 09:17 freeliver54 阅读(4765) 评论(0) 推荐(1) 编辑

[转]How to handle Failed Rows in a Data Flow
摘要:本文转自:http://www.rad.pasfu.com/index.php?/archives/23-How-to-handle-Failed-Rows-in-a-Data-Flow.htmlsuppose this scenario: you have a source table and a destination table, you want to transfer rows from source table to destination table, so you can use simple data flow with OLE DB source and OLE DB De 阅读全文

posted @ 2014-03-05 18:45 freeliver54 阅读(434) 评论(0) 推荐(0) 编辑

[转]Getting started with SSIS - Part 10: Event Handling and Logging
摘要:本文转自:http://beyondrelational.com/modules/12/tutorials/24/tutorials/9686/getting-started-with-ssis-part-10-event-handling-and-logging.aspxLet us now add some more features to our package. We would now addEvent handlingandLoggingto our package created. Before doing that, let us see what do the two mea 阅读全文

posted @ 2014-03-05 18:03 freeliver54 阅读(293) 评论(0) 推荐(0) 编辑

[转]SSIS中OLE DB Source中如何执行Store Procedure 以得到源数据
摘要:本文转自:http://www.cnblogs.com/michaelxu/archive/2009/10/16/1584284.html有很多人喜欢在OLE DB Source中执行Store Procedure,以得到源数据。但我们经常会遇到这样的情况,在OLE DB Source的Sql Command中写好执行Store Procedure的语句后,可以正常Preview,但是当点到Columns标签时,却看不到Store Procedure返回来的结果集,就是说没有columns显示。解决办法步骤:1)确保Store Procedure的最后一句是select语句,即有结果集返回2) 阅读全文

posted @ 2014-03-05 15:30 freeliver54 阅读(366) 评论(0) 推荐(0) 编辑

[转]SSIS OLE DB Source中执行带参数的存储过程
摘要:本文转自:http://www.cnblogs.com/michaelxu/archive/2009/10/21/1587450.html问题描述:执行一个存储过程得到一个多条记录的结果集,然后循环这个结果集的每一条记录,根据这条记录的某几个字段执行一个带参数的存储过程,再将返回的结果集插入到一张表中。Execute SQL Task “Get master records”中通过执行一个存储过程得到一个主结果集,Foreach Loop Container循环每条主记录,Data Flow Task对每条记录进行处理。1、先定义变量,如下表v_BatchList定义为Object用来存储返回 阅读全文

posted @ 2014-03-05 14:00 freeliver54 阅读(512) 评论(0) 推荐(0) 编辑

[转]Working with Parameters and Return Codes in the Execute SQL Task
摘要:本文转自:http://msdn.microsoft.com/zh-cn/magazine/cc280502(en-us,SQL.100).aspxSQL statements and stored procedures frequently use input parameters, output parameters, and return codes. In Integration Services, the Execute SQL task supports the Input, Output, and ReturnValue parameter types. You use the 阅读全文

posted @ 2014-03-05 12:28 freeliver54 阅读(448) 评论(0) 推荐(0) 编辑

[转]How to solve SSIS error code 0xC020801C/0xC004700C/0xC0047017
摘要:本文转自:http://www.codeproject.com/Articles/534651/HowplustoplussolveplusSSISpluserrorpluscodeplus0xCBackgroundSSIS is the one of the best ETL tool available in market and it can load large amount of data from any heterogeneous data source whether structured, unstructured,application, cloud or real-tim 阅读全文

posted @ 2014-03-04 17:29 freeliver54 阅读(1850) 评论(0) 推荐(0) 编辑

[转]ssis cannot retrieve the column code page info from the ole db provider
摘要:本文转自:http://social.msdn.microsoft.com/Forums/sqlserver/en-US/dc1a61f2-1ab8-4ed3-b85c-db6481800b50/error-importing-data-from-oracle-database-to-an-sql-database?forum=sqlintegrationservices1) Go into your data-flow that contains your OLE DB Source component.2) Click the OLE DB Source component once3) 阅读全文

posted @ 2014-03-04 17:06 freeliver54 阅读(566) 评论(0) 推荐(0) 编辑

[转]使用SSIS创建同步数据库数据任务
摘要:本文转自:http://www.cnblogs.com/heqichang/archive/2012/09/19/2693214.htmlSSIS(SQL Server Integration Services)是用于生成企业级数据集成和数据转换解决方案的平台。使用 Integration Services 可解决复杂的业务问题,具体表现为:复制或下载文件,发送电子邮件以响应事件,更新数据仓库,清除和挖掘数据以及管理 SQL Server 对象和数据。这些包可以独立使用,也可以与其他包一起使用以满足复杂的业务需求。Integration Services 可以提取和转换来自多种源(如 XML 阅读全文

posted @ 2014-03-04 10:35 freeliver54 阅读(920) 评论(0) 推荐(0) 编辑

[转]sqlserver2008锁表语句详解
摘要:本文转自:http://xue.uplook.cn/database/sqlserver/801760.html锁定数据库的一个表 代码如下: SELECT * FROM table WITH (HOLDLOCK)注意: 锁定数据库的一个表的区别 代码如下: SELECT * FROM table WITH (HOLDLOCK) 其他事务可以读取表,但不能更新删除 代码如下: SELECT * FROM table WITH (TABLOCKX) 其他事务不能读取表,更新和删除SELECT 语句中“加锁选项”的功能说明SQL Server提供了强大而完备的锁机制来帮助实现数据库系统的并发性和高 阅读全文

posted @ 2014-03-04 09:33 freeliver54 阅读(1242) 评论(0) 推荐(0) 编辑

[转]Understanding Integration Services Package Configurations
摘要:本文转自:http://msdn.microsoft.com/en-us/library/cc895212.aspxIntroductionWith the 2008 release, SQL Server Integration Services (SSIS) continues its advance in the enterprise data integration arena. Integration Services offers an entire architecture that combines the required elements for building solu 阅读全文

posted @ 2014-03-03 15:45 freeliver54 阅读(303) 评论(1) 推荐(0) 编辑

[转]SSIS: Execute Package via Stored Procedure
摘要:本文转自:http://sqlblog.de/blog/2009/09/ssis-execute-package-via-stored-procedure/There are two options executing SSIS packages:- xp_cmdshell command (not recommended for security reasons)- sp_start_job commandThe main difference between both options is the execution method. The xp_cmdshell command is a 阅读全文

posted @ 2014-03-03 15:41 freeliver54 阅读(558) 评论(0) 推荐(0) 编辑

[转]Loading and Running a Local Package Programmatically
摘要:本文转自:http://msdn.microsoft.com/en-us/library/ms136090.aspxYou can run Integration Services packages as needed or at predetermined times by using the methods described inRunning Packages. However, with only a few lines of code, you can also run a package from a custom application such as a Windows Fo 阅读全文

posted @ 2014-03-03 15:34 freeliver54 阅读(274) 评论(4) 推荐(0) 编辑

导航