Solved

Changing SQL Server Settings in code

Posted on 2008-09-29
4
155 Views
Last Modified: 2010-03-19
Hi,

Has anybody written code or know of a way of changing SQL server settings . Of particualr importance are the sql server protacols (named pipes and TCP/IP) . Also port numbers.

Thanks for clicking, reading and if you can help, look foward to your reply.
0
Comment
Question by:KBanner
  • 3
4 Comments
 
LVL 59

Accepted Solution

by:
Kevin Cross earned 250 total points
ID: 22601851
I haven't done this myself, but you can take a look at using the WMI providers from Microsoft:
http://msdn.microsoft.com/en-us/library/ms180606.aspx

If you follow some links through, you will eventually find this:
http://msdn.microsoft.com/en-us/library/microsoft.sqlserver.management.smo.wmi.managedcomputer(SQL.90).aspx

Per this document, client protocols and connection settings are in the list of WMI accessible items.
0
 
LVL 59

Assisted Solution

by:Kevin Cross
Kevin Cross earned 250 total points
ID: 22601857
Here is an example of reading port number value:
http://msdn.microsoft.com/en-us/library/ms179354(SQL.90).aspx
0
 

Author Comment

by:KBanner
ID: 22648824
My apologies for late points allocation
0
 
LVL 59

Expert Comment

by:Kevin Cross
ID: 22649084
Not a problem.  Glad that helped!
0

Featured Post

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

by Mark Wills Attending one of Rob Farley's seminars the other day, I heard the phrase "The Accidental DBA" and fell in love with it. It got me thinking about the plight of the newcomer to SQL Server...  So if you are the accidental DBA, or, simp…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question