Olegus,
I imagine that the binaries that come with SQL Server 2005 will work
just fine with SQL 2000 (but not earlier). You should distribute those with
your application. Whether or not the SMO objects from express will work
with the full version of SQL Server, I really don't know, but I imagine that
they will, as the functionality that the SMO objects exposes is really
implemented by the server, and it is the server in the Express edition that
is restricted.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
(E-Mail Removed)
"Olegus" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hello,
> in order to perform backup/restore MSSQL database using SMO, one needs
> to reference several namespaces in a backup class :
> using Microsoft.SqlServer.Management.Common;
> using Microsoft.SqlServer.Management.Smo;
>
> Unfortunately, MSSQL 2005 and MSSQL Express keep them in different
> place.
> For MSSQL2005 they are located in C:\Program Files\Microsoft SQL Server
> \90\SDK\Assemblies and for MSSQL Express you can find them in C:
> \Program Files\Microsoft SQL Server\90\Tools\Binn\VSShell\Common7\IDE.
>
> It means that if I build a project on PC that has MSSQL Express, it
> (in theory) will not work on a PC with MSSQL2005.
> It is unknown, what version of MSSQL will be installed on customer
> server. We allow working with both versions.
> Questions:
> Can I use Express version of SMO and distribute needed dlls? Will
> Express SMO work with full 2005 version?
> If it won't, is it a way to dynamically change referenced dlls?
> Does everything written above have any sense ?
>