Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/O Code)
 Create a DBS script
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

serritzlev
Junior Member

Denmark
291 Posts

Posted - 03 July 2004 :  13:22:34  Show Profile  Visit serritzlev's Homepage
Hi there is there one here there can help me to made a dbs script fore this tabels here.

CREATE TABLE [profile]([about] MEMO NOT NULL, [age] LONG NOT NULL, [at_span] MEMO, [body_type] TEXT(250), [city] TEXT(255), [country] TEXT(250), [date_seeker] TEXT(250), [education] TEXT(255), [email] TEXT(255) NOT NULL, [ethnic] TEXT(255), [expectation] MEMO NOT NULL, [faith] TEXT(255), [first_name] TEXT(250) NOT NULL, [for_fun] MEMO, [friend_seeker] TEXT(250), [gender] TEXT(255) NOT NULL, [global_id] LONG NOT NULL, [habit] MEMO, [have_kid] TEXT(255), [height] TEXT(255), [hot_spot] MEMO, [humor] TEXT(250), [id] COUNTER NOT NULL, [income] TEXT(255), [job] TEXT(255), [last_name] TEXT(255), [last_read] MEMO, [pet] TEXT(255), [photo] TEXT(250) DEFAULT NA, [place] MEMO, [politic] TEXT(255), [relationship] TEXT(255), [seek_gender] TEXT(250) NOT NULL, [sign] TEXT(255), [sport] MEMO, [state] TEXT(250), [status] TEXT(255), [thing] MEMO, [want_kid] TEXT(255));CREATE INDEX [PrimaryKey] ON [profile]([id]) WITH PRIMARY;

PeeWee.Inc
Senior Member

United Kingdom
1893 Posts

Posted - 03 July 2004 :  14:20:14  Show Profile  Visit PeeWee.Inc's Homepage
I dont know if this will be any help, but a search kicked this up

quote:
Originally posted by HuwR
These are the original specs


Script file Instructions.
<br>
The file is formatted into sections, which are delimited with ini file style tags. You should name your file using the following format, dbs_FILENAME.asp, where FILENAME is your setup filename.<br>
The allowed Tags are
<br>
[CREATE] - for creating new tables
[ALTER] - for Adding/deleting/changing columns in an existing table
[DELETE] - Deleting records from a Table
[INSERT] - Inserting records into a table
[UPDATE] - Updating specific values
[DROP] - Deleting Tables
<br>
Section Formatting.<br>

MyTest Mod		The fist line of the file is the name of the Mod the Db setup is for.

[CREATE]			Create table sections
TEST_TABLE		Name of the Table to create
TABLE_ID			Name of the ID Field, leave a blank line if no ID field is required
field1#int#NULL#0		The rest of the lines in this section are for the field definitions
field2#varchar(20)##		They should all follow the same Format: FIELDNAME#FIELDTYPE#NULL#DEFAULT
			FIELDNAME# Name of column to add
			FIELDTYPE# Valid field Types are smallint,int,varchar,text. 
			NULL#	   Column allows NULL leave blank for Not allow
			DEFAULT	   default value for new field
				Any missing items should be left blank, the '#' delimeters should all appear.
				i.e.
			field1#int#NULL#0 will create an integer field with a default value of 1 that allows NULL
			field2#varchar(20)## will create a varchar field with no default that does not allow NULLs
[END]			End of create table tag.


[ALTER]			Alter table start tag
TEST_TABLE		Name of table to be altered
ADD#field3#int#NULL#		Field Definitions - Format: As above
ALTER#field2#varchar(255)##	Change column Properties
DROP#field4###		Delete  a column from the Table
[END]			End Alter table tag


[INSERT]			Insert Values start Tag
TEST_TABLE		Name of table you whish to insert values into
(field1,field2)#(12,'test')	Field Defs - This uses the same basic definition as an insert
				statement. The first parameter being a comma delimeted list of fields
				and the second the corresponding values.Each parameter enclosed by ()
					i.e. (field1,....)#(value1,....)
[END]			End of Table insert Tag


[UPDATE]			Table Update start Tag
TEST_TABLE2		Name of Table to update
field22#'B'#TABLE_ID2 = 1	Field definitions - Format: FIELDNAME#VALUE#WHERE CLAUSE
				FIELDNAME# - Name of field to be updated
				VALUE#	  - New value for field
				WHERE CLAUSE - Criteria to specify records to be updated, blank if All records
[END]				End of update tag


[DROP]
TEST_TABLE
[END]





De Priofundus Calmo Ad Te Damine

Edited by - PeeWee.Inc on 03 July 2004 14:21:49
Go to Top of Page

serritzlev
Junior Member

Denmark
291 Posts

Posted - 03 July 2004 :  16:30:02  Show Profile  Visit serritzlev's Homepage
Hi PeeWee i have read that description from snitzbitz and that don made the dbs script fore me.

But i have get this Dbs script from gato there have done it fore me and that works.

Go to Top of Page

Da_Stimulator
DEV Team Forum Moderator

USA
3373 Posts

Posted - 16 November 2004 :  04:43:41  Show Profile  Send Da_Stimulator an AOL message  Send Da_Stimulator a Yahoo! Message
Um... when defining the table names using this script, is strTablePrefix assumed by the script, or do I have to specify FORUM_?

its been so long since I used this...

also, do I end the file name in .dbs, or do I name it dbs_somethin.asp?

-Stim
Go to Top of Page

zinpin
Junior Member

Australia
202 Posts

Posted - 16 November 2004 :  04:45:05  Show Profile
no need to define Forum, just the table name alone should be fine.
<edit - for second part of question>
dbs_something.asp is OK.

Edited by - zinpin on 16 November 2004 04:47:01
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 16 November 2004 :  04:46:14  Show Profile
.asp is fine.

Support Snitz Forums
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.27 seconds. Powered By: Snitz Forums 2000 Version 3.4.07