Ask a Question related to Dreamweaver AppDev, Design and Development.
-
jfulbright@gmail.com #1
vb.net: Problem using "IS" operator with ? parameter in Dataset
I'm sure someone's come across this, but I couldn't find it searching
the boards.
I get the error message "Invalid use of Is operator in query
expression" when I use the IS operator and a variable. For example:
I have the following SQL statement in a dataset:
SELECT *
FROM Scholarship
WHERE scholarshipID IS @ScholarshipID
Then I have the following MM variable:
<Parameter Name="@ScholarshipID" Value='<%# system.dbnull.value %>'
Type="Integer" />
What I've tried:
1. Used same SQL statement, but used a literal instead of a variable
(WHERE scholarshipID IS NULL). This worked fine, but I need to have a
variable as I'll be getting either a NULL or NOT NULL value from a form
element.
2. Used same SQL statement, but used NULL instead of
system.dbnull.value. This brought up that "BC30822: 'NULL' is not
declared. 'Null' constant is no longer supported; use 'System.DBNull'
instead." error message.
Can you use the IS operator followed by a Parameter as I outlined in my
SQL above?
Hopefully this is an easy one for somebody to answer.
Thanks,
Jeremy
jfulbright@gmail.com Guest
-
#39018 [NEW]: Error control operator '@' fails to suppress "Uninitialized string offset"
From: mpb dot mail at gmail dot com Operating system: Gentoo Linux PHP version: 5.1.6 PHP Bug Type: Scripting Engine problem... -
#26122 [Opn->Bgs]: Logical Operator "and" not functioning as expected
ID: 26122 Updated by: iliaa@php.net Reported By: iam at nimajneb dot com -Status: Open +Status: ... -
#26122 [NEW]: Logical Operator "and" not functioning as expected
From: iam at nimajneb dot com Operating system: Mac OSX 10.2.6 PHP version: 4.3.2 PHP Bug Type: Math related Bug... -
2 errors: "The parameter is incorrect" and "Overlapped I/O operation is in progress."
Hello, I am writing an ASP app which is giving me some very frustrating errors. They appear intermittently, no real pattern to them, and often... -
[PHP] SOLVED "::" operator problem
Mirek Novak napsal(a): Ha, found solution in online docs & wiki, chapter http://www.php.net/manual/en/keyword.paamayim-nekudotayim.php --...



Reply With Quote

