Hi Derrick, I was in your TSQL Class, in class you mention about using sp_executesql to avoid sql injection, let's say if I have a search page, where user can filter by date range, country and order status. If country & order status are optional parameter, then how does sp_executesql handle this? Can you give a sample?
Also you mentioned something about Buffer Cache & Procedure Cache along with Exec & sp_executesql, can you give a little information about them and how are they related?
17 意見:
老師敬安
日前上過的SQL2K5課程,當下遇到時卻總是找不到相關資料,還請老師再次協助
目前公司環境是SQL 2K
再不升級的要求下
要將A主機 SQL SERVER 的DB與Login User
移轉到B主機 SQL SERVER
且兩主機的網段不相連結
請問
DB部分有使用DB備份資料還原(因不能停機進行卸載/掛載)
在下該如何將Login User的帳號、密碼、權限
完整的移轉到B主機呢
目前做法是
1.將使用者DB由A主機完整備份移轉到B主機還原DB
2.於A主機中使用http://support.microsoft.com/kb/246133/
移轉使用者登入的帳號密碼
還在進行測試中
希望有更明確的移轉對應方式
在網路上場可以搜尋到您的文章
謝謝您的分享
Dear Derrick:
How did I convert a text file
into a MS_SQL file.
Sincerely yours
ghost(c9791) 98.4.15.
老師好
您授課很認真,補充好多資料。
上課若分心,就會錯過很多很多。
感謝老師糾正我許多錯誤的觀念。
老師,請問您有在做顧問服務,方便留下與您聯絡的Email嗎?
可否請您留下聯絡方式,筆者會與您聯繫,謝謝。
本留言系統,採取審核機制,不會公開您的個人資料,謝謝。
老師, 上星期參加你主講的SQL Server 2k8研討會, 內容很豐富, 可以你將投影片寄給我嗎, 謝謝. toptiger13@gmail.com
老師, 有個問題想請問, 研討會上有講到四種不停機維護的方式, 但在進階維運篇中, 只講到三種, 好像沒有談到replication的應用.
建議您可以到此處下載:
Seminar(研討會)
http://cid-cd3190cc5b16a74d.skydrive.live.com/browse.aspx/%e5%85%ac%e9%96%8b/Seminar%7C5%e7%a0%94%e8%a8%8e%e6%9c%83%7C6
研討會:創造高穩定、高效能、高安全資料庫系統- SQL Server 2008資料庫管理體驗營
http://sharedderrick.blogspot.com/2009/04/sql-server-2008.html
投影片壓縮的檔案,約 11 MB。
有關於書籍的討論,建議請您到此處討論,謝謝。
讀者建議區_圖書:SQL Server 2008 管理實戰-進階維護篇
http://sharedderrick.blogspot.com/2009/05/sql-server-2008_03.html
Hi Derrick,
I was in your TSQL Class, in class you mention about using sp_executesql to avoid sql injection, let's say if I have a search page, where user can filter by date range, country and order status. If country & order status are optional parameter, then how does sp_executesql handle this? Can you give a sample?
Also you mentioned something about Buffer Cache & Procedure Cache along with Exec & sp_executesql, can you give a little information about them and how are they related?
Thank you for reply.
您好,
有關於 sp_executesql 與 SQL 資料隱碼攻擊之說明,請參考以下的資料:
1. 在執行階段建立陳述式
http://technet.microsoft.com/zh-tw/library/ms178115.aspx
2. 使用sp_executesql
http://msdn.microsoft.com/zh-tw/library/ms175170.aspx
有關於 sp_executesql、EXECUTE 與記憶體集區部分,請參考以下的資料:
執行計畫快取與重複使用
http://msdn.microsoft.com/zh-tw/library/ms181055.aspx
謝謝。
老師您好:
目前在DELL伺服器上安裝SQL SERVER 2008 64bit在WINDOWS SERVER 2008 SP2 64bit的時候,檢視環境時就出現檢查項目:"效能計數器登錄區一致性 失敗"而無法進行資料庫軟體安裝,有參考過一些相關文件(修改機碼啟動 [登錄編輯程式,],並在登錄中找出下列機碼:
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Perflib
在登錄、 1846 (十進位) 的 LastCounter 值的變更以及變更的 LastHelp 值 1847 (十進位)。
找出下列登錄機碼搜尋服務已在 Performance 子機碼:
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services
也試過了,依舊不行,請問是否有處理的方法呢,謝謝
Hi:博炫
筆者的先前遇到此種情形時,採取的作法是參考此篇:
How to manually rebuild Performance Counter Library values
http://support.microsoft.com/kb/300956/en-us/
英文版本使用的是
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\Current Version\Perflib\009
中文版本使用的是
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\Current Version\Perflib\0404
應與你所採取方式雷同。
建議您逐步確認都有正確執行。
也可以參考卓立民先生所著的文章:
安裝 SQL Server 出現「效能監視器計數器需求」的錯誤
http://alexchuo.blogspot.com/2009/07/sql-server.html
謝謝。
老師您好,
我於9/1-9/4 上您的 SQL Server 2008 課程, 目前在將 SQL Server 2000 的資料用附加 mdf 至 SQL Server 2008 時, 造成 "dbo" 成為 "孤兒使用者",這樣會造成資料庫維護計畫及資料複寫無法執行,請問有無解決的方法,謝謝
老師您好,
我昨天貼的 dbo 為孤兒使用者的問題已解決, 不好意思, 打擾您了
張貼意見