1. RDA簡介2. 需求及配置3. RDA 對象方法4. RDA 程式碼範例======================1. RDA簡介------------Microsoft SQL Server 2005 Mobile Edition (SQL Server Mobile) 中的遠端資料存取 (RDA) 允許應用程式從遠程 SQL Server 資料庫表中訪問資料,並將資料存放區到本地 SQL Server Mobile 資料庫表中。隨後,應用程式可以讀取和更新本地 SQL
在獲得SA密碼後,往往因為伺服器管理者或”前人”將net.exe和net1.exe被限制使用,無法添加管理員帳號。我們知道VBS在活動目錄(ADSI)部分有一個winnt對象,用來管理本地資源,利用它可以不依靠CMD等命令就能添加一個管理員,具體代碼如下: set wsnetwork=CreateObject("WSCRIPT.netWORK") os="WinNT://"&wsnetwork.ComputerName Set ob=GetObject(os)
觸發器方式:create trigger trg_Aon Afor update,deleteasbeginif exists(select 1 from inserted)update B set Name=(select Name from inserted) where Name=(select Name from deleted)elsedelete B where Name=(select Name from deleted)endgo要使用級聯性更新和刪除,使用者可以在Alter
1.尋找表中多餘的重複記錄,重複記錄是根據單個欄位(account)來判斷select * from myehome where account in (select account from myehome group by account having count(account) > 1)ps:myehome表名 account想查重的欄位名 having count 查重函數2.尋找表中多餘的重複記錄(多個欄位)select * from myehomewhere
在建立QUEUE的時候,指定retention也很重要。。1. 如果retention=on.那麼即使message被receive之後,還是留在了queue裡面,直到這個conversation被endALTER QUEUE [dbo].[targetQueue] WITH STATUS = ON , RETENTION = ON , POISON_MESSAGE_HANDLING (STATUS = ON) 2.
安裝sql2005後,遇到中文提交後在資料庫中都變成?號(不是亂碼)的問題經查證是資料庫定序(Collation)指定錯誤造成的,要正確的將中文寫入NVARCHAR欄位,要麼在SQL語句中文值前加N(N'中文值'),要麼要確定資料庫定序為Chinese_PRC如何在 SQL Server 中轉換資料庫的定序http://support.microsoft.com/kb/325335/zh-cn
SQL Server 服務由於登入失敗而無法啟動癥狀在重新啟動 SQL Server、SQL Executive 或 SQL Server Agent 時,可能無法啟動該服務,並顯示以下錯誤資訊: Error 1069:The service did not start due to a logon failure.或者錯誤 1069:由於登入失敗而無法啟動服務原因SQL Server、SQL Agent 或 SQL Server Executive
create table tablet( A nvarchar(100), B nvarchar(100), C nvarchar(100) ) BULK INSERT ColinTest..tablet FROM 'c:\ddd.txt' WITH ( DATAFILETYPE = 'char', FIELDTERMINATOR = '|',
文章目錄 StandardHow to specify the location of the SDF fileStandardSpecifying the maximum database sizeSpecifying the maximum buffer sizeEncryption enabledExclusive accessRead only accessExclusive but shared for readingSpecifying the