All, if I were to write an app that has one task, determine whether or
not an SQL Instance is running, what would be the easist method for
this? I personally think that a query against the masterdb would do
the trick. I would appreciate any feedback you can provide.
L 3 1852
"Louis Frolio" <fr*****@yahoo. com> wrote in message
news:94******** *************** ***@posting.goo gle.com... All, if I were to write an app that has one task, determine whether or not an SQL Instance is running, what would be the easist method for this? I personally think that a query against the masterdb would do the trick. I would appreciate any feedback you can provide.
L
If you want to know if the SQL Server service is running, then you can use
any tool which can tell you the state of a Windows service - WMI is one way,
or the SQLDMO SQLServer2 object has a Status property.
Simon
"Simon Hayes" <sq*@hayes.ch > wrote in message news:<40******* *@news.bluewin. ch>... "Louis Frolio" <fr*****@yahoo. com> wrote in message news:94******** *************** ***@posting.goo gle.com... All, if I were to write an app that has one task, determine whether or not an SQL Instance is running, what would be the easist method for this? I personally think that a query against the masterdb would do the trick. I would appreciate any feedback you can provide.
L
If you want to know if the SQL Server service is running, then you can use any tool which can tell you the state of a Windows service - WMI is one way, or the SQLDMO SQLServer2 object has a Status property.
Simon
Thank You Simon. I had a hunch that SQLDMO was the way to go.
L
"Simon Hayes" <sq*@hayes.ch > wrote in message news:<40******* *@news.bluewin. ch>... "Louis Frolio" <fr*****@yahoo. com> wrote in message news:94******** *************** ***@posting.goo gle.com... All, if I were to write an app that has one task, determine whether or not an SQL Instance is running, what would be the easist method for this? I personally think that a query against the masterdb would do the trick. I would appreciate any feedback you can provide.
L
If you want to know if the SQL Server service is running, then you can use any tool which can tell you the state of a Windows service - WMI is one way, or the SQLDMO SQLServer2 object has a Status property.
Simon
Thank You Simon. I had a hunch that SQLDMO was the way to go.
L This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Tomas |
last post by:
I have two questions:
(1)
How (if possible) can you, with ASP.NET (and with the IIS 5 included
with win2000) specify an maximum limit of the memory that a web
application may consume, as an absolute number of megabytes ???
( I am aware of the "memoryLimit" attribute in the "processModel"
element in the Web.config but that only specifies the maximum allowed
memory size, as a percentage of total system memory, and I don't want
a...
|
by: John A Grandy |
last post by:
programmatically, how to determine the IP of the web-server running the
web-app's code ?
|
by: icodeurs2 |
last post by:
I am interested in how to determine if a particular type of hardware has been
plugged inot Windows XP/2000 programmatically. It could be a service or
application running that could detect like XP and 2000 do when new hardware
is found. I am particularly interested in determining i a flas drive was
connected to the system.
Your help is greatly appreciated.
|
by: icodeurs2 |
last post by:
I am interested in how to determine if a particular type of hardware has been
plugged into Windows XP/2000 programmatically. It could be a service or
application running that could detect the new hardware the way XP and 2000
currently do when new hardware
is found. I am particularly interested in determining if a flash drive was
connected to the system.
Your help is greatly appreciated.
|
by: Merk |
last post by:
How can I programmatically determine the from within that
method.
For example, consider the following code:
private void DoSomething()
{
string s = ???;
}
| |
by: Jana |
last post by:
Greetings Access Gurus! I am working on an app to send batch
transactions to our bank, and the bank requires that we place an
effective date on our files that is 'one business day in the future,
excluding holidays and weekends.' I didn't want to build a table of
holidays that would have to be continuously updated, so I searched high
and low for a function that would tell me whether a given date was a
holiday, to no avail. I did find an...
|
by: =?Utf-8?B?Um9nZXIgTWFydGlu?= |
last post by:
I am writing a web app to be widely distributed where I do not know the
installed .NET Framework version. I want to take advantage of some .NET 3.0
classes if they are installed, but gracefully degrade if not available.
(Specifically, I want to use System.Windows.Media.Imaging.BitmapMetadata to
extract metadata from JPEG files when 3.0 is available, but will resort to
System.Drawing.Image if .NET 3.0 is not installed.)
What is the...
|
by: stonkers |
last post by:
My Title is a suggested solution rather than the actual question. Let me explain. I have a C# ASP.NET 2.0 website that I wrote to run deployments to my many environments. It uses PSExec to kick off deployment executables on different machines. It works great until you try to throw it at a cluster because PSExec isn't cluster aware. PSExec tries to kick off on the cluster, but the cluster isn't an actual machine, and thus, psexec fails...
|
by: Dennis |
last post by:
Is there a way to programmatically determine if a vb.net app is running
from the IDE?
--
Dennis
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |