三種作法
1. 使用 Data convert function 去轉換
2. 在 OLE DB destination 按右鍵選 [Show Advance Editor] 然後選
[Import and Oupt Property] page 再選 mapping 的 column 改右下的 data type
http://www.mssqltips.com/tip.asp?tip=1393
3. 先在 tempdb 中建立 temp table 符合 Non-unicode 的 data type ,
然後再 select * from temp_table into 到目地端 Table.
以下為MSDN論壇中討論 SSIS 轉換資料的常見作法.
http://social.msdn.microsoft.com/Forums/en-US/sqlintegrationservices/thread/f5f1e17e-4b91-48ed-9a10-93a1fe227a37
2010年9月27日 星期一
2010年9月15日 星期三
SSIS 跨 Server 時須設定 MSDTC的安全性設定
MSDTC (Microsoft Distributed Transaction Coordinator )
Microsoft 分散式交易協調器 , win 2003 中很多跨 Server 服務都會用到 , 例如 : BizTalk , SQL 2008 等.
請參照這個連結設定 : http://lanestechblog.blogspot.com/2010/04/utilizing-transactions-in-ssis-to.html
Win 2003 with SP1中, MSDTC 的注意事項 : http://blog.darkthread.net/blogs/darkthreadtw/archive/2006/03/07/msdtc-on-windows-2003-sp1.aspx
Win 2003 MSDTC中, 每個安全性的說明 : http://msdn.microsoft.com/zh-tw/library/ms679479
微軟給 MSDTC 安全性選項的建議與說明 :
http://msdn.microsoft.com/zh-tw/library/aa561924(BTS.10).aspx
Microsoft 分散式交易協調器 , win 2003 中很多跨 Server 服務都會用到 , 例如 : BizTalk , SQL 2008 等.
請參照這個連結設定 : http://lanestechblog.blogspot.com/2010/04/utilizing-transactions-in-ssis-to.html
Win 2003 with SP1中, MSDTC 的注意事項 : http://blog.darkthread.net/blogs/darkthreadtw/archive/2006/03/07/msdtc-on-windows-2003-sp1.aspx
Win 2003 MSDTC中, 每個安全性的說明 : http://msdn.microsoft.com/zh-tw/library/ms679479
微軟給 MSDTC 安全性選項的建議與說明 :
http://msdn.microsoft.com/zh-tw/library/aa561924(BTS.10).aspx
SQL Job 要設定 Mail 通知失敗或成功
除了DBMail 的 Profile 要設定, 建立 Operator 外,
SQL Agent Property 中Alert system 也要在 Mail Session Enable E-Mail profile.
在 SQL Server Management Studio 中選擇 SQL Server Agent , 按右鍵選[Property]
=>[Alert system]
http://hoolihome.blogspot.com/2010/04/sql-2005-job-mail.html
SQL Agent Property 中Alert system 也要在 Mail Session Enable E-Mail profile.
在 SQL Server Management Studio 中選擇 SQL Server Agent , 按右鍵選[Property]
=>[Alert system]
- Mail Session => 勾選 Enable E-Mail profile.
- Mail System 選 Database Mail , Mail profile 選自己設定好的 profile.
http://hoolihome.blogspot.com/2010/04/sql-2005-job-mail.html
SQL 2008 在Management Studio 中直接更改Schema會發生警告
透過 Management Studio 對已經開好的 Table 更改schema,
會警告說不允許這樣更改, 需要 re-create table 後才可以更改
「"Saving changes is not permitted. The changes you have made require the following tables to be dropped and re-created. You have either made changes to a table that can't be re-created or enabled the option Prevent saving changes that require the table to be re-created."」
其實錯誤訊息裡就有提示, 要 " enabled the option Prevent saving changes that require the table to be re-created".
那這個選項在哪裡呢 ?
請到 SQL 2008 Management Studio 中
「Tools」-> 選「Options」=>
「Designers」-> 「Table and Database Designers」
,右側中將「Prevent saving changes that require table re-creation」選項打勾拿掉,就可以了!
會警告說不允許這樣更改, 需要 re-create table 後才可以更改
「"Saving changes is not permitted. The changes you have made require the following tables to be dropped and re-created. You have either made changes to a table that can't be re-created or enabled the option Prevent saving changes that require the table to be re-created."」
其實錯誤訊息裡就有提示, 要 " enabled the option Prevent saving changes that require the table to be re-created".
那這個選項在哪裡呢 ?
請到 SQL 2008 Management Studio 中
「Tools」-> 選「Options」=>
「Designers」-> 「Table and Database Designers」
,右側中將「Prevent saving changes that require table re-creation」選項打勾拿掉,就可以了!
訂閱:
意見 (Atom)