Red Gate forums :: View topic - Server Name
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
SQL Packager 6
SQL Packager 6 forum

Server Name

Search in SQL Packager 6 forum
Post new topic   Reply to topic
Jump to:  
Author Message
senior_oracle



Joined: 05 Jan 2010
Posts: 3

PostPosted: Tue Jan 05, 2010 3:44 pm    Post subject: Server Name Reply with quote

How can I change the server name from local to .\SQLEXPRESS using c# code .


Urgent please!!! Confused
Back to top
View user's profile Send private message MSN Messenger
Chris Auckland



Joined: 24 Oct 2006
Posts: 757
Location: Red Gate Software Ltd.

PostPosted: Wed Jan 06, 2010 9:41 pm    Post subject: Reply with quote

Thanks for your post.

If you save the package as a C# project, you can set the server text in the PackageExecutor class.

e.g.

private string m_ServerName = @".\SQLExpress"

I hope this helps.
_________________
Chris
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group