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

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: MOD Implementation
 dbs_XXX.asp docs?
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

roontoon
Starting Member

10 Posts

Posted - 06 May 2003 :  14:28:49  Show Profile
Can anyone point me to where the docs are if there are any for creating a script file that alters the Snitz dbf ala a dbs_xxx.asp file? I am working on a mod that will require the modification of the database and if there is a shortcut here other than rooting around in the code of the admin_mod_dbsetup.asp file to figure it out..... Thanks MUCH in advance.

Steve D.
Average Member

USA
640 Posts

Posted - 06 May 2003 :  14:34:20  Show Profile  Visit Steve D.'s Homepage  Send Steve D. a Yahoo! Message
http://forum.snitz.com/forum/topic.asp?TOPIC_ID=25296&SearchTerms=dbs,file,mod

Swing Dancing Video Clips - It's All Swing! Forum
Go to Top of Page

roontoon
Starting Member

10 Posts

Posted - 06 May 2003 :  15:31:10  Show Profile
quote:
Originally posted by Steve D.

http://forum.snitz.com/forum/topic.asp?TOPIC_ID=25296&SearchTerms=dbs,file,mod



Thanks and now a question....

I have created this test dbs file

MOD: Test
[CREATE]
NEWS
NEWS_ID
NEWS_TITLE#VARCHAR (100)#NULL#
NEWS_DESCRIPTION#memo#NULL#
NEWS_ORDER#int#NULL#1
NEWS_CAT#int#NULL#
[END]

When I run it I get the following error and nothing is created.

Creating table(s)...
CREATE TABLE NEWS( NEWS_ID int IDENTITY (1, 1) PRIMARY KEY NOT NULL , NEWS_TITLE text (100) NULL , NEWS_DESCRIPTION memo NULL , NEWS_ORDER int NULL DEFAULT 1, NEWS_CAT int NULL )
CREATE TABLE NEWS( NEWS_ID int IDENTITY (1, 1) PRIMARY KEY NOT NULL , NEWS_TITLE text (100) NULL , NEWS_DESCRIPTION memo NULL , NEWS_ORDER int NULL DEFAULT 1, NEWS_CAT int NULL )
424 | Object required

What am I doing wrong???? TIA
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20595 Posts

Posted - 06 May 2003 :  15:43:25  Show Profile  Visit HuwR's Homepage
what database are you using ?
Go to Top of Page

roontoon
Starting Member

10 Posts

Posted - 06 May 2003 :  16:06:22  Show Profile
quote:
Originally posted by HuwR

what database are you using ?



Access
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20595 Posts

Posted - 06 May 2003 :  17:09:02  Show Profile  Visit HuwR's Homepage
are you using the jet or older (*.mdb) drivers ?

Also check to see if there is an update, I think a fix was released for it, alternatively
try removing the 1 on the line NEWS_ORDER#int#NULL#1
Go to Top of Page

roontoon
Starting Member

10 Posts

Posted - 06 May 2003 :  17:27:31  Show Profile
quote:
Originally posted by HuwR

are you using the jet or older (*.mdb) drivers ?

Also check to see if there is an update, I think a fix was released for it, alternatively
try removing the 1 on the line NEWS_ORDER#int#NULL#1




This is on my hosting site so I beleive that they would have the most up to date driver. I will try removing the one.... how about the # before it?
Go to Top of Page

roontoon
Starting Member

10 Posts

Posted - 06 May 2003 :  17:49:51  Show Profile
quote:
Originally posted by HuwR


try removing the 1 on the line NEWS_ORDER#int#NULL#1




Just tried to remove the 1 and it had no effect.

Go to Top of Page

HuwR
Forum Admin

United Kingdom
20595 Posts

Posted - 06 May 2003 :  18:40:30  Show Profile  Visit HuwR's Homepage
it doesn't matter what driver your host has, which one are you using in config.asp ?
Go to Top of Page

roontoon
Starting Member

10 Posts

Posted - 06 May 2003 :  19:28:57  Show Profile
quote:
Originally posted by HuwR

it doesn't matter what driver your host has, which one are you using in config.asp ?



strConnString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=E:\web\roontoon\roontoon\admin\databasename.mdb" '## MS Access 2000
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20595 Posts

Posted - 06 May 2003 :  20:10:27  Show Profile  Visit HuwR's Homepage
I am not sure what is wrong, what value are you using for strForumPrefix ?
also, do you have the correct strDBType set ?
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.29 seconds. Powered By: Snitz Forums 2000 Version 3.4.07