Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Changing SQL Server Settings in code

Posted on 2008-09-29
4
Medium Priority
?
162 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 60

Accepted Solution

by:
Kevin Cross earned 750 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 60

Assisted Solution

by:Kevin Cross
Kevin Cross earned 750 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 60

Expert Comment

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

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Introduction: When running hybrid database environments, you often need to query some data from a remote db of any type, while being connected to your MS SQL Server database. Problems start when you try to combine that with some "user input" pass…
In this article I will describe the Copy Database Wizard method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…

636 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