A
AndrewW
Hello,
We have an application that uses SMO (SQL Server Management Objects) to
interact with SQL Server.
In the previous version of our product, we only supported connecting to SQL
Server 2005 Express Edition. However, in our latest version we wish to
support both SQL Server 2005 and 2008.
In order to connect to SQL Server 2008 Express Edition, we found that we had
to download and install the latest ‘Microsoft SQL Server 2008 Management
Objects’ component (file SharedManagementObjects.msi from link
http://www.microsoft.com/downloads/...ef-ba29-4a43-8d69-a2bed18fe73c&DisplayLang=en).
Building against these libraries allowed our application to work with SQL
Server 2008 Express.
However, after compiling against the latest SMO libraries when we now try to
run our application on a system where only SQL Server 2005 Express is
installed, our application fails with the following exception: “Could not
load file or assembly 'Microsoft.SqlServer.BatchParserClient,
Version=10.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of
its dependencies. The system cannot find the file specified.â€
We would like our application to be able to work with both SQL Server 2005
Express and SQL Server 2008 Express but it seems that our application now
demands the latest libraries (v10.0) on the target system and that these
libraries do not exist when only SQL Server 2005 Express is installed.
What is the suggested practice for writing an application that can interact
with both SQL Server 2005 Express and SQL Server 2008 Express through SMO?
Alternatively, is there a download (or redistributable installer) that will
update the SMO libraries for existing SQL Server 2005 Express users?
Thank you very much for your assistance.
We have an application that uses SMO (SQL Server Management Objects) to
interact with SQL Server.
In the previous version of our product, we only supported connecting to SQL
Server 2005 Express Edition. However, in our latest version we wish to
support both SQL Server 2005 and 2008.
In order to connect to SQL Server 2008 Express Edition, we found that we had
to download and install the latest ‘Microsoft SQL Server 2008 Management
Objects’ component (file SharedManagementObjects.msi from link
http://www.microsoft.com/downloads/...ef-ba29-4a43-8d69-a2bed18fe73c&DisplayLang=en).
Building against these libraries allowed our application to work with SQL
Server 2008 Express.
However, after compiling against the latest SMO libraries when we now try to
run our application on a system where only SQL Server 2005 Express is
installed, our application fails with the following exception: “Could not
load file or assembly 'Microsoft.SqlServer.BatchParserClient,
Version=10.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of
its dependencies. The system cannot find the file specified.â€
We would like our application to be able to work with both SQL Server 2005
Express and SQL Server 2008 Express but it seems that our application now
demands the latest libraries (v10.0) on the target system and that these
libraries do not exist when only SQL Server 2005 Express is installed.
What is the suggested practice for writing an application that can interact
with both SQL Server 2005 Express and SQL Server 2008 Express through SMO?
Alternatively, is there a download (or redistributable installer) that will
update the SMO libraries for existing SQL Server 2005 Express users?
Thank you very much for your assistance.