PC Review


Reply
Thread Tools Rate Thread

Registry being used as a simple database by a program???

 
 
Dan
Guest
Posts: n/a
 
      29th Apr 2005
Hi all -

I do custom programming and network support. A client recently handed off a
program to me that they'd had written by someone else. It runs on a Windows
2000 Server.

From what I can tell the original author is using the registry as a simple
database - reading in values on initialization (normal enough), then doing
large amounts of reads and writes / creation and deletion of string values and
longs as the program runs. When exported the registry key for this program is
about 10 megs - All of the program's data storage is in the registry.

While I've used the registry in the past for program initialization, saving
the state of an application, etc.I have never seen the registry used like this
before. Am I out of the loop? Is this something common?

I'm considering rewriting the data storage portion of the program - this just
doesn't smell right to me.

Thoughts? Opinions? Thanks in advance.

- Dan

 
Reply With Quote
 
 
 
 
Crouchie1998
Guest
Posts: n/a
 
      29th Apr 2005
I am a professional programmer & I use the registry for settings etc, but
not for what you are describing.

I agree that you should re-write the program, but depending on who needs
access to it or how many or even if it also holds login info will depend on
how you re-write it.

If you describe what type of data. Is it for single/shared use..?

Crouchie1998
BA (HONS) MCP MCSE


 
Reply With Quote
 
 
 
 
Dave Patrick
Guest
Posts: n/a
 
      29th Apr 2005
I would tend to agree. Use some form of relational or file based database
store.

--
Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

"Dan" wrote:
| Hi all -
|
| I do custom programming and network support. A client recently handed off
a
| program to me that they'd had written by someone else. It runs on a
Windows
| 2000 Server.
|
| From what I can tell the original author is using the registry as a simple
| database - reading in values on initialization (normal enough), then doing
| large amounts of reads and writes / creation and deletion of string values
and
| longs as the program runs. When exported the registry key for this program
is
| about 10 megs - All of the program's data storage is in the registry.
|
| While I've used the registry in the past for program initialization,
saving
| the state of an application, etc.I have never seen the registry used like
this
| before. Am I out of the loop? Is this something common?
|
| I'm considering rewriting the data storage portion of the program - this
just
| doesn't smell right to me.
|
| Thoughts? Opinions? Thanks in advance.
|
| - Dan
|


 
Reply With Quote
 
Dan
Guest
Posts: n/a
 
      1st May 2005
Thanks for the input guys. I'm going to rewrite the data storage section. On a
first pass basis it appears that a couple of text files should do it - I don't
even need a "real" database.

- Dan

"Dave Patrick" <(E-Mail Removed)> wrote in message
news:u%(E-Mail Removed)...
> I would tend to agree. Use some form of relational or file based database
> store.
>
> --
> Regards,
>
> Dave Patrick ....Please no email replies - reply in newsgroup.
> Microsoft Certified Professional
> Microsoft MVP [Windows]
> http://www.microsoft.com/protect
>
> "Dan" wrote:
> | Hi all -
> |
> | I do custom programming and network support. A client recently handed off
> a
> | program to me that they'd had written by someone else. It runs on a
> Windows
> | 2000 Server.
> |
> | From what I can tell the original author is using the registry as a simple
> | database - reading in values on initialization (normal enough), then doing
> | large amounts of reads and writes / creation and deletion of string values
> and
> | longs as the program runs. When exported the registry key for this program
> is
> | about 10 megs - All of the program's data storage is in the registry.
> |
> | While I've used the registry in the past for program initialization,
> saving
> | the state of an application, etc.I have never seen the registry used like
> this
> | before. Am I out of the loop? Is this something common?
> |
> | I'm considering rewriting the data storage portion of the program - this
> just
> | doesn't smell right to me.
> |
> | Thoughts? Opinions? Thanks in advance.
> |
> | - Dan
> |
>
>


 
Reply With Quote
 
Dave Patrick
Guest
Posts: n/a
 
      1st May 2005
You're welcome.

--
Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

"Dan" wrote:
| Thanks for the input guys. I'm going to rewrite the data storage section.
On a
| first pass basis it appears that a couple of text files should do it - I
don't
| even need a "real" database.
|
| - Dan


 
Reply With Quote
 
Crouchie1998
Guest
Posts: n/a
 
      1st May 2005
Pleasure - its what we're here for

Crouchie1998
BA (HONS) MCP MCSE


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Why is the last used cell being used? Lostguy Microsoft Excel Discussion 1 9th Feb 2009 02:54 AM
Are cell phones being used to get people used to the idea of companies controlling what you can and cannot do with what you bought? zeez DIY PC 1 23rd Jun 2007 08:29 PM
Simple questions for simple 2 PC file sharing network. Simple? raylopez99 Microsoft Windows 2000 Networking 3 11th Feb 2007 02:31 PM
Registry being used as a simple database by a program??? Dan Microsoft Windows 2000 Registry Archive 5 1st May 2005 04:59 AM
Simple Simple Simple craigwojo Microsoft Excel New Users 3 29th Aug 2004 05:32 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:34 AM.