Data Type

SQL Server (SqlClient)

Oracle (OracleClient)

DT_BOOL

bit

 

DT_BYTES

binary, varbinary, timestamp

raw

DT_CY

smallmoney, money

文章標籤

littleheart 發表在 痞客邦 留言(0) 人氣()

SharePoint2010 的錯誤訊息查看方式:
【相互關聯識別碼】複製
進入SharePoint主機中:C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\LOGS
點選xxx.log,搜尋時使用【相互關聯識別碼】為關鍵字即可查到錯誤訊息的內容。
Microsoft SharePoint Foundation Error


文章標籤

littleheart 發表在 痞客邦 留言(0) 人氣()

SSIS錯誤訊息:
[ADO NET 來源 [2348]] 錯誤: System.BadImageFormatException: 不是正確的 Win32 應用程式 。 (發生例外狀況於 HRESULT: 0x800700C1)
於 Microsoft.Data.SAPClient.SAPConnection.Open()
於 Microsoft.SqlServer.Dts.Runtime.ManagedHelper.GetManagedConnection(String assemblyQualifiedName, String connStr, Object transaction)
於 Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSConnectionManager100.AcquireConnection(Object pTransaction)
於 Microsoft.SqlServer.Dts.Pipeline.DataReaderSourceAdapter.AcquireConnections(Object transaction)
於 Microsoft.SqlServer.Dts.Pipeline.ManagedComponentHost.HostAcquireConnections(IDTSManagedComponentWrapper100 wrapper, Object transaction)

解決方式:
於專案上按右鍵→屬性→組態屬性→偵錯→偵錯選項→Run64BitRuntime改為False

文章標籤

littleheart 發表在 痞客邦 留言(1) 人氣()


DateTime st = DateTime.Now;
DateTime ed = DateTime.Now;
TimeSpan ts = ed.Subtract(st);
string output = String.Format("{0:00}:{1:00}:{2:00}", ts.TotalHours, ts.Minutes, ts.Seconds);

//時間與字串之間的轉換
//時間轉字串
string datestring = DateTime.Now.ToString("yyyy/MM/dd HH:mm:ss ffff")
string datestring = DateTime.Now.ToString("s", System.Globalization.DateTimeFormatInfo.InvariantInfo)

littleheart 發表在 痞客邦 留言(0) 人氣()


/* 防止撐開 IE*/
table-layout: fixed;
/* 防止撐開 FX*/
overflow: auto;

/* 英文單字自動換行 IE ONLY*/
word-wrap: break-word;

/* 正常避頭尾 */

littleheart 發表在 痞客邦 留言(0) 人氣()

參數說明

maxlength:字串的最大長度

UPDATE TABLE
SET <column> = REPLICATE( '<string>' , maxlength - LEN(<column>)) + <column>

littleheart 發表在 痞客邦 留言(0) 人氣()

 

SET STATISTICS TIME { ON | OFF }
 
SET STATISTICS TIME ON
<SQL>
SET STATISTICS TIME OFF

詳細資訊:TechNet


littleheart 發表在 痞客邦 留言(0) 人氣()