Server Name

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

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: 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