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!
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!
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
2007-2013
Why is my data not saved to my database? | Communicating between multiple forms | MSDN Data Walkthroughs
MSDN "How Do I?" Videos: VB | C#
VBForums Database Development FAQ
My CodeBank Submissions: VB (*NEW* Match Two Game, *NEW* More Random Random Numbers) | C# (*NEW* Match Two Game, *NEW* More Random Random Numbers)
My Blog: Using Parameters in ADO.NET | Keyboard Events | Assemblies & Namespaces
Thanks, JM - I'll give that a whirl.![]()