cannot get where clause to work

From: David McDivitt (x12code-del_at_del-yahoo.com)
Date: 10/01/03


Date: Tue, 30 Sep 2003 18:37:02 -0500

I am fairly new to Perl and cannot get a where clause to work. I can get to
the database fine and create a recordset without a where clause OK. I am
using the latest version of ActivePerl on Win2000. I installed DBI and
DBD::ODBC last week with PPM. The database is MS SQL Server 7.

For debugging I am displaying the SQL statement before preparing it, and it
looks OK. I can take the exact statement displayed and paste into either MS
Access or Enterprise Manager and it works fine.

I tried several different things. The original version used LIKE, so I took
that out and used = with values I know are there. I tried double quotes
instead of single but that would not prepare. I tried qualifying all the
field names with the table name. I placed square brackets around everything.
I tried placing % (percent) inside the single quotes when using LIKE.
Nothing works. Moreover, I cannot find resolution doing a Google search.
Help would be appreciated. Thanks



Relevant Pages

  • cannot get where clause to work
    ... I am fairly new to Perl and cannot get a where clause to work. ... The database is MS SQL Server 7. ... I tried placing % inside the single quotes when using LIKE. ...
    (perl.dbi.users)
  • Re: Row Order
    ... morphed into a flat-file design into SQL Server. ... Server is a relational database that assumes set operations and doesn't let ... > somebody doesn't want to have to add an ORDER BY clause to the cursor ...
    (microsoft.public.sqlserver.programming)
  • Re: Q
    ... It depends on the database. ... With SQL Server, all the filter conditions can ... there should be a WHERE clause for the ...
    (microsoft.public.inetserver.asp.db)
  • Re: Update failure on Sql Server 2008
    ... the logic bug is not really a logic bug. ... It add all the fields to the where clause for the sake of concurrency ... Microsoft SQL Server MVP ... We migrated our Sql Server 2000 database to Sql Server 2008 v 10.0.1600 ...
    (microsoft.public.sqlserver.server)
  • Idiomatic Expressions to Operating System Architecture: Transforming Rigids
    ... <Subject: Re: Idiomatic Expressions to Operating ... <endpoint during a single session * DATABASE + by ... <statements is a new feature of SQL Server 2005. ...
    (sci.math)