在SQL 2008R2環境內編輯DTS封裝需要下列三個步驟
1.安裝期間於 [特徵選取] 頁面上,進行下列選取:
a.選取 [Integration Services]:此選項會安裝 ActiveX Script 工作及 DTS 封裝移轉精靈。
在SQL 2008R2環境內編輯DTS封裝需要下列三個步驟
a.選取 [Integration Services]:此選項會安裝 ActiveX Script 工作及 DTS 封裝移轉精靈。
如果你的作業系統是64位元時SQL SERVER是會安裝64BIT .由於但是若你使用的OLEDB Driver或ADO.NET Driver 沒有支援64位元時就會出現錯誤。
以下圖為例,由於JET OLEDB Driver for Excel 只有32位元版本的。所以執行時會出現下列錯誤訊息
--drop table #spt_space go IF OBJECT_ID('tempdb..#tmp','U') IS NOT NULL drop table #tmp go IF OBJECT_ID('tempdb..#spt_space','U') IS NOT NULL drop table #spt_space go declare @id int declare @type character(2) declare @pages int declare @dbname sysname declare @dbsize dec(15,0) declare @bytesperpage dec(15,0) declare @pagesperMB dec(15,0) create table #spt_space ( objid int null, rows int null, reserved dec(15) null, data dec(15) null, indexp dec(15) null, unused dec(15) null ) set nocount on -- Create a cursor to loop through the user tables declare c_tables cursor for select id from sysobjects where xtype = 'U' open c_tables fetch next from c_tables into @id while @@fetch_status = 0 begin /* Code from sp_spaceused */ insert into #spt_space (objid, reserved) select objid = @id, sum(reserved) from sysindexes where indid in (0, 1, 255) and id = @id select @pages = sum(dpages) from sysindexes where indid < 2 and id = @id select @pages = @pages + isnull(sum(used), 0) from sysindexes where indid = 255 and id = @id update #spt_space set data = @pages where objid = @id /* index: sum(used) where indid in (0, 1, 255) - data */ update #spt_space set indexp = (select sum(used) from sysindexes where indid in (0, 1, 255) and id = @id) - data where objid = @id /* unused: sum(reserved) - sum(used) where indid in (0, 1, 255) */ update #spt_space set unused = reserved - (select sum(used) from sysindexes where indid in (0, 1, 255) and id = @id) where objid = @id update #spt_space set rows = i.rows from sysindexes i where i.indid < 2 and i.id = @id and objid = @id fetch next from c_tables into @id end select --top 25 Table_Name = (select [name] from sysobjects where id = objid), rows = convert(char(11), rows), reserved_KB = (reserved * d.low / 1024.) , data_KB = (data * d.low / 1024.) , index_size_KB = (indexp * d.low / 1024.) , unused_KB = (unused * d.low / 1024.) into #tmp from #spt_space, master.dbo.spt_values d where d.number = 1 and d.type = 'E' order by reserved desc drop table #spt_space close c_tables deallocate c_tables select * from #tmp
1、 如何對新電池進行充電?
通常新電池均未充滿電,在使用新電池前必需對其充電。開始使用新電池或電池停止使用一段時間後,電池需要三至四次的迴圈充放電方可達到最高功效。
液晶螢幕~少用保護程式
在使用 CRT 舊式電腦螢幕時,很多人都喜歡使用螢幕保護程式,當他們轉為使用筆記型電腦或液晶螢幕時,這個好習慣也被保留了下來,但他們卻不知螢幕保護程式對筆記型電腦或液晶螢幕非但沒有任何好處,反而還會造成一些負面影響。
利用下列兩個DMV可取得 SQL Server 上每個已驗證的工作階段資訊。
sys.exec_session:伺服器範圍檢視,會列出所有工作中使用者連接和內部工作的相關資訊。這些資訊包含用戶端版本、用戶端程式名稱、用戶端登入時間、登入使用者、目前工作階段設定等。sys.dm_exec_connections:則會回傳 SQL Server 執行個體中每條連接的詳細資訊。