SELECT ps.nameAS PSName, dds.destination_idAS PartitionNumber, fg.name AS FileGroupName,fg.name, t.name, f.name as filename FROM (((sys.tablesAS t INNER JOINsys.indexesAS i ON (t.object_id= i.object_id))
由於舊的Reporting是32位的運行資料量大的Report很吃力,所以打算把新的Reporting servcie 2008用起來。 發布了一個新的Report然後嘗試給使用者指派許可權,但是遇到了下面的錯誤:" role assignment is not valid. The role assignment is either empty or it specifies a user or group name that is already used in an existing
雖然大家使用的資料庫可能不一樣,但是整體的思路都是一樣的。下面的文章對於選擇資料庫硬體有指導意義:So you need to purchase a new database server, and you really don’t know where to start..Because their maybe different recommendations for different OS’s I am going to stick with Linux with these
SQL Server提供了Schema Changes History report可以用來追蹤DDL相關資訊。 但是Schema Changes History report的資料是從哪裡來的呢? 首先我啟動SQL Profiler trace然後開啟Schema Changes History report(Management studio->Report->Standard report->Schema Changes History
一般我們的理解是logbackup chain被打破後一定需要一個完整備份然後才能開始新的記錄備份,其實不一定需要完整備份,差異備份也是可以的。 首先我們先做個測試:建立資料庫做完整備份和記錄備份,然後將復原模式變成簡單復原模式。 CREATEDATABASE LogChainTest;GOALTER DATABASE LogChainTest SET RECOVERY FULL;GOBACKUP DATABASE LogChainTest TO DISK =
今天在論壇看到文章問可不可以將SQL Server 2008的資料庫歡迎到SQL Server 2005,這個SQL Server是不支援的。但是可以通過其他的方式實現。首先在SQL Server 2008上匯出資料庫指令碼然後在SQL Server 2005上建立對象,然後用匯入匯出工具將資料匯入2005就完成了。 在匯出指令碼的過程中有一個選項要注意“Script for server version”,這個選項要選低版本,否則的話匯出來的指令碼在低版本伺服器上運行可能會失敗。
今天使用SSIS製作一個提取Excel的小程式,在Preview Excel資料的時候出現下面的錯誤: There was an error displayingthe preview.ADDITIONAL INFORMATION:Index and length must refer toa location within the string.Parameter name: length (mscorlib) 這個錯誤的原因是Excel Sheet的命名有問題,解決辦法是修改Excel