Server Name

Forum for users of SQL Packager database archive utility

Server Name

Postby senior_oracle » Tue Jan 05, 2010 3:44 pm

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


Urgent please!!! :?
senior_oracle
 
Posts: 3
Joined: Tue Jan 05, 2010 3:34 pm

Postby Chris Auckland » Wed Jan 06, 2010 9:41 pm

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
Chris Auckland
 
Posts: 760
Joined: Tue Oct 24, 2006 2:12 pm
Location: Red Gate Software Ltd.


Return to SQL Packager Previous Versions

Who is online

Users browsing this forum: No registered users and 1 guest