问题
The SMO-libraries are for a specific version of SQL Server.
So , is there any possibility to use different SMO libraries , in the same VB.net application in order that my application works regardless of SQL server version?
Thank you !
回答1:
Yes! You can use older version of SMO-libraries for both servers. I used SMO-libraries from SQL Server 2008R2 in C# apllication and powershell script to migrate DB from 2008R2 to SQL Server 2005. Thus, there shan't be problems and when using VB.net.
来源:https://stackoverflow.com/questions/30405626/use-different-smo-version-in-the-same-vb-net-application