This page orients you to SD Core Solo for Windows: what a multivalue database is, where SD came from, what the pieces are, and how to take your first steps. It is the only page in this set that assumes nothing.
What is a multivalue database?#
A multivalue database stores data in records made of fields, where each field can hold more than one value — and each value can hold more than one subvalue. A single field in a customer record can therefore carry every phone number the customer has, without a separate table or a join.
The model was designed by Dick Pick in the 1970s as the Pick Operating System. It has been through PI/open, UniVerse, Unidata, D3, jBASE, QM, and ScarletDME — and SD is one of its direct descendants.
The three delimiters that make it work are field marks, value
marks and subvalue marks — control characters that separate the
levels inside a single string. A dynamic array in SDBasic is a string
that carries these marks, and the angle-bracket forms (a<f,v>), ins and
del work on them directly.
What SD is#
SD Core Solo for Windows is built from upstream sdb64, a MultiValue database
with elements found in the main SD version and in ScarletDME. ScarletDME was
a fork of the original GPL release of OpenQM 2.6.6.
That lineage matters when you go looking for documentation. Not all the features of the commercial OpenQM 2.6.6 were in the GPL release, and no documentation specific to the GPL version was ever released. The OpenQM 2.6.6 documents can be used as a reference, but SD Core has additions, changes and deletions — of features, of structure, of security and of commands. This documentation set covers those changes.
If you have used OpenQM, or upstream sdb64, much of SD Core will still be
familiar: the same data model, the same query processor, the same
BASIC.
SD Core Solo for Windows is Windows only, and for one user. It is the
single-user edition of SD Core for Windows: one account, sduser, run as you.
SD Core Solo for Linux is a separate
product, built to behave the same way for the people who use it, and this is
not a build of it.
SD Core Solo is free software under the GNU General Public License v3. config gpl
displays the license and config contrib the list of contributors. The
installer carries compiled binaries; the source is a separate download.
The four components#
| The command processor (TCL) | reads what you type at the : prompt and dispatches it to a verb, a program, a paragraph or a query |
| The query processor | runs list, select, count, sort and the rest — the reporting language |
| SDBasic | the programming language: a compiled BASIC with dynamic arrays, file I/O, and the multivalue string functions |
| The SDClient API | a C client library (sdclilib.dll) that lets an external application connect to SD, read and write records, execute commands and call subroutines |
Signing in#
sd-solo
You land in the one SD account, sduser, after the account password — the
one you chose when installing. Being signed in to Windows is not enough: SD
asks. If the computer was installed from a control file there is no password
yet, and sd-solo asks you to choose one. The GettingStarted set's Your first
thirty minutes walks through it.
SD is already running. A scheduled task starts it at every Windows start-up,
so you do not type sd-solo -start. Open a new window after installing: one that
was open before the install does not have SD on its PATH yet.
Your first file and record#
create.file customers
ed customers 1001
ed is the line editor, and it needs nothing installed. In ed: i
to insert, type your lines, a full stop on its own line to stop
inserting, then fi to file and exit.
sed is a full-screen editor that runs inside SD, with drop-down menus and
color for SD BASIC that you turn on when you want it; it needs no operating
system permission. You can also use edit (Microsoft Edit, a full-screen
editor) or micro (a full-screen editor that highlights SD BASIC) once the
administrator has turned the os switch on (set.os.access os on; it is off
as delivered, because they run outside SD).
list customers
count customers
Commands are lower case now. Typing LIST still works — SD tries what you
typed, then lower case, then upper, and finally with any hyphens changed to
dots, so clear-select reaches clear.select too.
Writing a program#
A program lives in a bp file — a directory file, which is an ordinary
Windows folder with one file per program. You can write it in ed,
in micro or edit (once the os switch is on), or in any text editor you
like (Notepad, VS Code, etc.) — the folder is on disk at:
%USERPROFILE%\SDCoreSolo\user_accounts\sduser\bp
Compile and catalog it from inside SD:
basic bp myprog
catalog bp myprog
Then run it by name:
myprog
Administrator commands#
There is no separate administrator account. A few commands — config,
listu, editing the VOC directly — refuse with Command requires
administrator privileges until you unlock them for the session:
admin
Type the administrator password chosen at installation, or, on a managed
computer, the global password. It lasts until you leave SD or type
admin off. See Administrator commands in the GettingStarted set.
What is not in SD Core Solo for Windows#
The following were in OpenQM, in ScarletDME, or in upstream sdb64, and
are not in SD Core Solo for Windows:
| Gone | Why |
|---|---|
SDNet (the old server;file remote files) |
Removed. A new SDNet client (a VOC pointer of type N, set.server, set.netlogin) is in, off as delivered; see SDNet - Files on Another SD Server. The API is the other way to reach another SD server |
Embedded Python (a Python interpreter loaded into sd-solo.exe itself) |
Gone permanently - sd-solo.exe's MSYS2 runtime cannot safely share a process with Python. Calling Python from a BASIC program is not gone: it runs as a separate helper process instead - see SD BASIC - Python Integration |
sdlnxd daemon |
Linux-only; a scheduled task starts SD on Windows |
ENCRYPT.FIELD verb |
Removed; sdencrypt() and sddecrypt() in SDBasic, with sdkey() for the key, and the XE conversion are the supported route |
update.record, modify editors |
Gone; use sed, edit, micro or ed |
| PROC language | Removed; use paragraphs instead |
SET.LANGUAGE, LOAD.LANGUAGE |
Removed; SD Core Solo for Windows is English only (NLS, for currency and separators, is kept) |
Accounts other than sduser |
Solo has one account. create.account, grant and the rest are gone |
Document conventions#
| bold | a word typed as it stands |
| italics | something you supply |
braces { } |
an optional part |
code |
a command, a function name, or something you type |