• Welcome to Valhalla Legends Archive.
 

Access Database for Bots?...

Started by CrAz3D, January 30, 2005, 01:38 PM

Previous topic - Next topic

CrAz3D

Would this be ineffective?  I got to thinking about it since I've been working on my billing database program & the Access database has been, so far easy to add to, edit, etc.  You could have different tables for different profiles of a bot or maybe different setting cataegories (Moderation, Chat, Interface, Logon, etc.)

Any comments?
rebundance - having or being in excess of sheer stupidity
(ré-bun-dance)
Quote from: Spht on June 22, 2004, 07:32 PMSlap.
Quote from: Adron on January 28, 2005, 09:17 AMIn a way, I believe that religion is inherently evil, which includes Christianity. I'd also say Christianity is eviller than Buddhism (has more potential for evil).
Quote from: iago on April 19, 2005, 01:06 PM
CrAz3D's ... is too big vertically, at least, too big with ... iago ...

QwertyMonster

Hmm, it sounds good to me. But how would an access database been effective for a "Billing System" ?..

CrAz3D

I like it because I can have seperate tables for each client & then I have columns that are for BillType, BillTime (if applicable), BillAmount, & Date (that bill was entered).  Everything works nicely & I have found no major problems with it, except the printing so far, but that is just because I don't know how to print things in VB.


Link to the program:
Database Program

rebundance - having or being in excess of sheer stupidity
(ré-bun-dance)
Quote from: Spht on June 22, 2004, 07:32 PMSlap.
Quote from: Adron on January 28, 2005, 09:17 AMIn a way, I believe that religion is inherently evil, which includes Christianity. I'd also say Christianity is eviller than Buddhism (has more potential for evil).
Quote from: iago on April 19, 2005, 01:06 PM
CrAz3D's ... is too big vertically, at least, too big with ... iago ...

Eric

#3
It all depends on how you plan on using your database.  An Access database provides you with an easy way to organize your data and gives users who don't have your program the ability to read it's database.  The downside is, the Microsoft Jet Enginge is required to use the program, and the database format grants little freedom.  Personally, if I was you, I'd create my own binary database and then use that.  That way you can access data at about the same speeds as an Access database, you have virtually full control and no extra components are required.

My database looks like this:


#############################################################
# Sovereignty Smart Database Format (SSD)     #
# Version 1.0     #
#     #
# Copyright (C) 2004-2005 LoRd[nK] ([email protected]) #
#############################################################

— Database Header:

(DWORD)    Header — 'SSD'
(WORD)     Database Version (Currently 0x0001)

------------------------------------------------------------
UsrDB.ssd: user/group access database.

— Database Header

— User Groups:

(WORD)     # of Groups
For each group:
(WORD)     ID#
(DWORD)    Memeber Initial Flags
(FILETIME) Creation Date
(FILETIME) Last Modified Date
(STRING)   Group Creator
(STRING)   Group Modifier
(STRING)   Notes
(STRING)   Group Name

(BYTE)    Null Terminator

— Users:

(WORD)     # of Users
For each user:
(WORD)     Group ID# — 0xFFFF (-1) for none
(DWORD)    Flags
(FILETIME) Entry Creation Date
(FILETIME) Entry Last Modified Date
(STRING)   Entry Creator
(STRING)   Entry Modifier
(STRING)   Notes
(STRING)   Username

(BYTE)    Null Terminator

------------------------------------------------------------
GenUsrDB.ssd: general information recorded from all users seen; information
      used for both statistical purposes and automated moderation.

— Database Header

— General User Information/Statistics:

(WORD)     # of Users
For each user:
(WORD)     Total Number of Visits
(DWORD[5]) Length of Last 5 Visits
(WORD[5])  Message Count of Last 5 Visits
(FILETIME) First Seen Date
(FILETIME) Most Recent Seen Date
(STRING)   Username

(BYTE)    Null Terminator

------------------------------------------------------------
BotMail.ssd: Bot mail

— Database Header

— Messages:

(WORD)     # of Messages
For each message:
(BOOL)     Read
(BOOL)    Return Receipt
(FILETIME) Sent Date
(FILETIME) Read Date
(STRING)   Message
(STRING)   Sender Username
(STRING)   Receiver Username

(BYTE)    Null Terminator

CrAz3D

#4
How did you go about writing this & retrieving info from it?  Is it as easy as Access?  It looks very nice.
rebundance - having or being in excess of sheer stupidity
(ré-bun-dance)
Quote from: Spht on June 22, 2004, 07:32 PMSlap.
Quote from: Adron on January 28, 2005, 09:17 AMIn a way, I believe that religion is inherently evil, which includes Christianity. I'd also say Christianity is eviller than Buddhism (has more potential for evil).
Quote from: iago on April 19, 2005, 01:06 PM
CrAz3D's ... is too big vertically, at least, too big with ... iago ...

Banana fanna fo fanna

Nah. Writing your own binary format is usually for people who just want to do something cool, not actually get the job done. I guarantee that nothing you'll write on your own will match the power and flexibility of a relational backend.

Here's my suggestion for a schema (using mysql CREATEs, but you'll figure it out):


you might want to add more columns to the users table
create table users (id integer primary key auto_increment, username varchar(70));

create table roles (id integer primary key auto_increment, name varchar(255));

create table user_role(id integer primary key auto_increment, userid integer, roleid integer);

Adron

Quote from: Banana fanna fo fanna on January 31, 2005, 02:43 PM
Nah. Writing your own binary format is usually for people who just want to do something cool, not actually get the job done. I guarantee that nothing you'll write on your own will match the power and flexibility of a relational backend.

It might require less resources and decrease the total size of your executable and all its dependencies though ;)

Networks

Wow, Lord that looks pretty tight.

Blaze

Quote
Mitosis: Haha, Im great arent I!
hismajesty[yL]: No