加上昨天晚上都在研究合併式複寫的配置。我需要的環境是這樣的,伺服器端的資料庫採用SQL Server 2000.PPC用戶端採用的精簡資料庫是Sql Server Mobile Edition。 時下大多採用的資料庫配合方式基本上是sql server 2005和Sql Server Mobile Edition。其實,我也想這樣採用。但是考慮到原有的資料庫系統是採用2000的版本,很難讓原來的研發人員去花費時間整遷移。本來,精簡資料庫要選擇sql ce
if object_id('tempdb..##TEMPTABLE1') is not null drop table ##TEMPTABLE1 上面一種不檢查類型,##TEMPTABLE1可能是view或procedure的名字,完整的檢查如下 if exists (select * from tempdb.dbo.sysobjects where id =
--檢測CPU壓力的一個方法是計算運行狀態下的背景工作處理序數量,--通過執行如下的DMV查詢可以得到這個資訊SELECT COUNT(*) AS workers_waiting_for_cpu,t2.scheduler_idFROM sys.dm_os_workers AS t1, sys.dm_os_schedulers AS t2 WHERE t1.state='RUNNABLE' AND t1.scheduler_address = t2.scheduler_address AND
Detect Memory Bottleneck in SQL ServerBy : Kasim Wirama, MCDBA This article, I would like to give information about memory bottleneck at SQL Server. The easiest way to know whether your SQL Server undergoes memory bottleneck is by looking at Task
SQL Server資料庫的管理員常常會頭疼硬碟可用空間太少,往往需要編寫很多查詢來查明哪些表和模式佔用了大量的硬碟空間,以便能夠定期清理這些表和模式。本文將為大家闡述如何查詢系統目錄來確定磁碟空間的使用方式,可以協助SQL Server資料庫管理員識別佔用最大空間的表和模式,以便將老舊的資料歸檔,將不需要的資料清除。本文所列指令碼適用於SQL Server 2005和SQL Server 2008 CTP5。 步驟1:一所示,登入到SQL
最近在做一個資料擷取模組,遇到這樣一個情境,就是需要將Database Backup檔案還原到指定資料庫執行個體下再採集資料。本機測試都沒有問題,可一拿到真實環境中測試卻發現了一個很大的Bug。所有的資料庫都還原不上,很糾結。因為我本以為SQL SERVER 會還原到預設路徑下,其實不然。 當我拿到真實Database Backup檔案時,我首先在資料庫中運行 restore database RestoreDbName from disk ='H:\DBFolder\Db_Back' ,
Here's a quick summary of the actions you need to take. The first three actions have a separate page which provides more details and some screen shots of the procedure.[Link] Enable the TCP/IP protocol using the Surface Area Configuration Utility [