|
-
Aug 29th, 2012, 05:57 AM
#1
Thread Starter
Fanatic Member
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!
-
Aug 29th, 2012, 07:43 AM
#2
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
-
Aug 30th, 2012, 04:22 AM
#3
Thread Starter
Fanatic Member
Re: Adding a SQL Server alias during deployment of VB.Net 2008 project
Thanks, JM - I'll give that a whirl.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|