Adding a SQL Server alias during deployment of VB.Net 2008 project
My VB.Net 2008 project uses a SQL server 2005 database as its back-end. Can I get my installer (a Visual Studio deployment project) to add the alias into the SQL Server Configuration Manager?
Any advice gratefully received!
Re: Adding a SQL Server alias during deployment of VB.Net 2008 project
You can add a Custom Action to your Setup project and then invoke some VB code that uses WMI to create the alias. I found this example in C# but the VB code would be very similar.
http://blogs.msdn.com/b/sql_protocol...08/572057.aspx
Re: Adding a SQL Server alias during deployment of VB.Net 2008 project
Thanks, JM - I'll give that a whirl. :)