--查看錶的屬性select * from sysObjects where [Name] = 'section' --用法 if exists ( select * from sysObjects where [Name] = 'section' and xtype='U' ) Drop Table table1 go Create table1 ( )--擷取所有使用者表select Name from sysobjects where xtype='u' and
前兩天犯了一個很嚴重的錯誤,在觀察 Sql Server 資料庫的時間,由於調整服務,一不小心把 Sql Server 的服務給重啟了,可能大家感覺這樣沒什麼,但是對於一個線上的DB,且DB支撐的是一天千萬PV的網站的時候,問題就嚴重了。Sql Server 服務停止後啟動不起來了,太無語了,由於網站訪問量太大,Sql Server 伺服器又線上,肯定沒法重啟了,無奈,只能把 訪問這台DB的3個網站IIS給停掉,然後重啟 DB 伺服器,是重啟 DB
PORTING A SQL SERVER REPORTING SERVICES 2005 REPORT DIRECTLY TO PDF OR EXCEL Exporting a SQL Server Reporting Services 2005 (SSRS) Report Directly to PDF/Excel is a handy way of generating high quality reports without being stuck to using the
'方法一Public Sub ExecuteSQLScriptFile()Sub ExecuteSQLScriptFile(cn as ADODB.Connection,sqlFile As String)Dim strSql As String, strTmp As StringOpen sqlFile For Input As #1strSql = ""Do While Not EOF(1)Line Input #1, strTmpIf UCase$(strTmp) = "GO" Thenc
http://msdn.microsoft.com/zh-cn/library/ms162169.aspx編輯器載入中...SQL Server 管理物件 (SMO) 是專為對管理 MicrosoftSQL Server 所涉及的各個方面進行編程而設計的對象集合。SQL Server Replication Management Objects (RMO) 是一個用於封裝 SQL Server 的複製管理功能的對象集合。本節包含以下資訊:概述 (SMO)SMO 入門準備使用 SMOSMO
December 10, 2003Troubleshooting SQL Server JobsBy Alexander ChigrikIf you have problems with SQL Server jobs, review this troubleshooting checklist to find potential solutions. 1. Check that you use the latest SQL Server service pack. Because many
SQL Server 2005中加入了varchar(max)、nvarchar(max) 和varbinary(max) 資料類型,統稱為大值資料類型(large-value data types),都用max說明符標示。varchar(max)、nvarchar(max) 和varbinary(max) 資料類型分別對應到SQL Server 2000以及以前版本中的varchar、nvarchar和varbinary資料類型。大值資料類型可以儲存最大為 2^31-1
Map SQL Server Profiler EventClass ID to its name in a saved trace tableIf you've ever worked with SQL Server profiler then you're familiar with the EventClass column in the trace. It tells you what event is being monitored for each row. When you
比較笨,花了兩天時間。'函數名:parsesrc'功能:分析sqlserver預存程序執行語句"procedurename par1,par2,......."文法是否正確的函數'入參:src as string,如"proceduretest '字串''後半部分',343,'2005-2-5'"'傳回值:字串數組.parsesrc(0)="預存程序的名稱",parsesrc(1)=有效參數的個數(如果為-1,表示有非法參數),parsesrc(>1)=對應的位置的入參'調用:dim