Solved

Changing SQL Server Settings in code

Posted on 2008-09-29
4
156 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

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

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

Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
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…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

808 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