🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.delphi.database.dotnet
Article #155

Pulling up the registry in Dot net

#155
From: Larry Killen
Date: Mon, 29 Aug 2005 20:48
11 lines
1483 bytes
I need to get a value from the registry to connect to MSDE.  I am using the 
BDP connector but will not know the Server name until run time.  I do not 
use Local for other reasons so I always connect to the server 
MachineName\DatabaseName

in D-7 that would be   MACHINE_NAME_KEY = 
'SYSTEM\CurrentControlSet\Control\ComputerName\ComputerName';
with the HKEY as   HKEY_LOCAL_MACHINE    = $80000002;

How can I do this and stay a Dot Net purist;
Thanks 
Technical Details
Message-ID: <43137452$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news1.google.com!proxad.net!newsfeed.icl.net!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.inode.at!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 1effe6,973115172e230185,start
X-Google-Attributes: gid1effe6,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Larry Killen" <lkillen@charter.net>
Newsgroups: borland.public.delphi.database.dotnet
Subject: Pulling up the registry in Dot net
Date: Mon, 29 Aug 2005 16:48:06 -0400
Lines: 13
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 216.76.71.226
Message-ID: <43137452$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1125348434 216.76.71.226 (29 Aug 2005 13:47:14 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news1.google.com!proxad.net!newsfeed.icl.net!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.inode.at!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail