| DotNetFirebird Using Firebird SQL in .NET. |
|
Home
Features
Download
Documentation
FAQ
Tools and Code
About
Blog
|
Monday, July 10, 2006
Weekly builds of Firebird ADO.NET ProviderWeekly builds of Firebird ADO.NET Provider are available at http://netprovider.cincura.net/. Read more in the announcement by Jiri Cincura. Is it possible to stop/start remote firebird service using Firebird ADO.NET Provider?However, you can use this simple code: ServiceController sc = new ServiceController("FirebirdGuardianDefaultInstance"); // or "FirebirdServerDefaultInstance" if you are not using Guardian
Console.WriteLine("Stopping service...");
sc.Stop();
while (sc.Status != ServiceControllerStatus.Stopped)
Thread.Sleep(100);
Console.WriteLine("Service stopped.");
Console.WriteLine("Starting service...");
sc.Start();
while (sc.Status != ServiceControllerStatus.Running)
Thread.Sleep(100);
Console.WriteLine("Service started.");
You need to reference System.ServiceProcess.dll and add these usings: using System.ServiceProcess; using System.Threading; How to build Firebird Client 2.0 for .NET Compact Framework
From Firebird Questions .NET:
How to compile source code to work with .NET Compact Framework? http://www.firebirdquestions.net/Item.aspx/4302/re_cf Sunday, July 09, 2006
Firebird Questions .NET
I've just released a new experimental site: http://www.firebirdquestions.net/.
It is a searchable and browsable archive of firebird-net-provider mailing list.
Noteworthy features:
Previous
Archives
Copyright © 2005 - 2007 DotNetFirebird |