c# - The type or namespace name 'Nmo' does not exist in the namespace 'Microsoft.SqlServer.Management' -


i tried load project said:

the type or namespace name 'nmo' not exist in namespace 'microsoft.sqlserver.management' 

i know smo dll nmo? find that?

update: added smo dll of 2008 version... still giving out error... maybe, should smo dll of sql 2005 version? coz machine got project using sql 2005

quote article titled "microsoft sql server 2005 notification services":

nmo api assemblies , namespaces

to use nmo api, applications must reference assemblies contain needed classes. following 2 assemblies required:

  • microsoft.sqlserver.smo.dll

  • microsoft.sqlserver.connectioninfo.dll

the first assembly, microsoft.sqlserver.smo.dll , contains of classes in smo framework, including nmo classes (there isn't separate nmo assembly). microsoft.sqlserver.connectioninfo.dll contains utility classes used establish database connections. classes both assemblies typically needed in programs use nmo api.

most of classes you'll encounter while working nmo defined in 1 of following 3 namespaces:

  • microsoft.sqlserver.management.nmo

  • microsoft.sqlserver.management.smo

  • microsoft.sqlserver.management.common

the first 1 referred nmo namespace . contains nmo-specific classes. second namespace contains many of smo classes, of needed in nmo programming. third namespace contains common utility classes, such used establish database connections.

edit:

take here, search "microsoft sql server 2005 management" , download appropriate dll. unzipped , appears contain microsoft.sqlserver.smo file. when tried install it, got message instructing me download prerequisite (the sql server native client), , page directed me appears updated version of 2005 dlls, may want use dlls page.

also, side note, if you're connecting 2008 sql server, should able use 2005 dll manage it, newer "2008-specific" features not available using older dll.


Comments

Popular posts from this blog

javascript - backbone.js Collection.add() doesn't `construct` (`initialize`) an object -

php - Get uncommon values from two or more arrays -

Adding duplicate array rows in Php -