Re: Strange problems with DBD::Sybase and a simple query
From: Michael Peppler (mpeppler_at_peppler.org)
Date: 10/19/04
- Next message: Martin J. Evans: "RE: Invalid cursor state when using PRINT in MSSQL --- TRACE AND SCRIPT ENCLOSED"
- Previous message: Lincoln A Baxter: "RE: Slow connection to Oracle 9i"
- In reply to: Logan Capaldo: "Strange problems with DBD::Sybase and a simple query"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: dbi-users@perl.org Date: Tue, 19 Oct 2004 17:25:41 +0200
On Tue, 2004-10-19 at 15:38, Logan Capaldo wrote:
> Hello, I am having some very irritating problems with DBI and
> DBD::Sybase. I have tried Googling to no avail. What it breaks down to
> is that a query issued with WinSQL for example, will work fine, but
> the identical query issued through the DBI interface will give me an
> error of the following form:
>
> script.pl (Error): DBD::Sybase::st execute failed: Server message
> number=208 severity=16 state=1 line=1 server=namechanged
> text=dbo.table_name_changed not found. Specify owner.objectname or use
> sp_help to check whether the object exists (sp_help may produce lots
> of output).
Most likely the database that you are in when using WinSQL is different
from the one that DBD::Sybase is in, so the table doesn't exist in the
current database.
You can either specify the database to use in the connect() call, or
fully qualify the table name:
select ... from <database>.<owner>.<tablename> where ...
Michael
-- Michael Peppler Data Migrations, Inc. mpeppler@peppler.org http://www.peppler.org/ Sybase T-SQL/OpenClient/OpenServer/C/Perl developer available for short or long term contract positions - http://www.peppler.org/resume.html
- Next message: Martin J. Evans: "RE: Invalid cursor state when using PRINT in MSSQL --- TRACE AND SCRIPT ENCLOSED"
- Previous message: Lincoln A Baxter: "RE: Slow connection to Oracle 9i"
- In reply to: Logan Capaldo: "Strange problems with DBD::Sybase and a simple query"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|