How to Connect to Sqlserver2008 using SMO any workaround has to be done?

旧巷老猫 提交于 2019-12-02 06:52:34
Ganesh R.

Is this code previously written for SQL 2005? If yes you need to

  1. Install SQL 2005 Backwards Compatibilty Pack for SQL 2008 + Management Objects on the machine. (http://www.microsoft.com/downloads/details.aspx?FamilyID=b33d2c78-1059-4ce2-b80d-2343c099bcb4&displaylang=en)

  2. Remove references to SDK dlls of SLQ 2005 & re reference to SK Dlls of SQL 2008. (http://msdn.microsoft.com/en-us/library/ms162129.aspx)

  3. Rebuild.

Also refer to: Application cannot find Microsoft.SQLServer.SMO on SQL 2008 machine

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!