Re: SQL Query - precision error
- From: "Kevin Spencer" <kevin@xxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 17 May 2005 17:18:26 -0400
Hi Art,
What exactly is the value of f_docnumber?
--
HTH,
Kevin Spencer
Microsoft MVP
..Net Developer
Sometimes you eat the elephant.
Sometimes the elephant eats you.
"Art" <Art@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:A380A1E7-E75B-45B2-A759-814C0DE042E8@xxxxxxxxxxxxxxxx
> The database is a runny under SQL 2000. We cannot change the precision as
> itis software set.
>
> That said, why would I get a precision error when querying that database
> from a Front Page query?
>
> If I run the query in Query Analyzer without the Front Page Search
> variable,
> it works fine.
>
>
>
> "Kevin Spencer" wrote:
>
>> Hi Art,
>>
>> Precision refers to the precision (number of digits, both to the right
>> and
>> left of the decimal point) in a floating point number. According to your
>> field definition, the precision is 10, which means that you can store a
>> decimal number with a maximum of 10 digits in it. The second number is
>> scale, which is the number of digits allowed to the right of the decimal
>> point of the number, which you've defined as 0 (IOW, you can store an
>> integer with a maximum of 10 digits). I can't tell you much more, as you
>> mentioned a "SQL table." SQL is a query language, and SQL Server is a
>> database. Since a lot of non-database-professionals use the terms
>> interchangeably, I don't know what kind of database you're using.
>>
>> --
>> HTH,
>>
>> Kevin Spencer
>> Microsoft MVP
>> ..Net Developer
>> Sometimes you eat the elephant.
>> Sometimes the elephant eats you.
>>
>> "Art" <Art@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
>> news:97BDEFB4-A914-42A4-826A-85F2A115C7B0@xxxxxxxxxxxxxxxx
>> >I am using a very basic query in Front Page 2002 against a SQL table
>> >
>> > SELECT * FROM tablename WHERE (f_docnumber = ::f_docnumber::)
>> >
>> > and f_docnumber is a search form field.
>> >
>> > When I run I get
>> >
>> > Description: The precision is invalid.
>> > Number: -2147467259 (0x80004005)
>> >
>> > The field is defined in the table as numberic 9(10,0)
>> >
>> > Any ideas?
>> >
>> >
>> > Thanks
>> >
>>
>>
>>
.
- Follow-Ups:
- Re: SQL Query - precision error
- From: Art
- Re: SQL Query - precision error
- References:
- SQL Query - precision error
- From: Art
- Re: SQL Query - precision error
- From: Kevin Spencer
- Re: SQL Query - precision error
- From: Art
- SQL Query - precision error
- Prev by Date: Re: have problems with div's
- Next by Date: Re: have problems with div's
- Previous by thread: Re: SQL Query - precision error
- Next by thread: Re: SQL Query - precision error
- Index(es):
Relevant Pages
|