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

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 dbs file problem. . . . help? =)
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Nathan
Help Moderator

USA
7664 Posts

Posted - 06 April 2002 :  06:36:02  Show Profile  Visit Nathan's Homepage
I can't get an update statement in my DBS file to work. (I'm basing my file off the spec here --> http://forum.snitz.com/forum/topic.asp?ARCHIVE=true&TOPIC_ID=18522 )

Basically my situation is I have a column in the MEMBERS table for the Active Users 3.5 mod. It cotains "1"s "0"s and nulls (null being true in this case).

Now, for the new version of the mod I need to get rid of those nulls and replace them with "1"s because they were causing a few ugly bugs.

This is what I tried, but it didn't work.

[UPDATE]
MEMBERS
M_AUHIDE#'1'#M_AUHIDE = ''
[END]

That generates a 13|Type Mismach error, yet everything I'm working with is strings.

I also tried this with no Where statment, like it sais can be done in the dbs spec. That resulted in an UPDATE FORUM_MEMBERS SET M_AUHIDE = '' WHERE

Is there some way to get rid of those nulls that I'm missing?

  Nathan Bales - Romans 15:13
----------------------------------

Snitz Exchange | Do's and Dont's

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 06 April 2002 :  08:29:59  Show Profile  Visit HuwR's Homepage
Try this
[UPDATE]
MEMBERS
M_AUHIDE#'1'#M_AUHIDE = NULL
[END]

or

[UPDATE]
MEMBERS
M_AUHIDE#'1'#M_AUHIDE = IS NULL
[END]

NUL is not the same as ''



Go to Top of Page

Nathan
Help Moderator

USA
7664 Posts

Posted - 06 April 2002 :  12:40:55  Show Profile  Visit Nathan's Homepage
M_AUHIDE#'1'#M_AUHIDE = NULL

and

M_AUHIDE#'1'#M_AUHIDE <> '1' OR M_AUHIDE <> '0'

both result in "13 | Type mismatch" though both *should* work.

  Nathan Bales - Romans 15:13
----------------------------------

Snitz Exchange | Do's and Dont's
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 06 April 2002 :  13:33:06  Show Profile  Visit HuwR's Homepage
is M_AUHIDE text or integer ?

Go to Top of Page

Nathan
Help Moderator

USA
7664 Posts

Posted - 06 April 2002 :  13:44:27  Show Profile  Visit Nathan's Homepage
I have tried it both as a text and as an interger. It is as if the database canot see the records with null values in them.

*Maybe I just have a funny database *

I have gotten around the roadblock for now by creating independant script to handle this task.

  Nathan Bales - Romans 15:13
----------------------------------

Snitz Exchange | Do's and Dont's
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.25 seconds. Powered By: Snitz Forums 2000 Version 3.4.07