Packages and compresses schema and contents of SQL Server databases
Moderators: JonathanWatts, Chris Auckland, David Atkinson, david connell, Anu Deshpande, Michelle Taylor, james.billings, Marianne
How can I change the server name from local to .\\SQLEXPRESS using c# code .
- Posts: 3
- Joined: Tue Jan 05, 2010 3:34 pm
Thanks for your post.
If you save the package as a C# project, you can set the server text in the PackageExecutor class.
private string m_ServerName = @".\\SQLExpress"
I hope this helps.
- Posts: 757
- Joined: Tue Oct 24, 2006 2:12 pm
- Location: Red Gate Software Ltd.
Return to SQL Packager 6
Who is online
Users browsing this forum: No registered users and 0 guests