aziz rasul
05-07-2008, 03:54 AM
I have a colleague is having the following problem. She has an initial pass thru query. She now wants to run a second pass thru query using the first pass thru query. Here's the SQL code and the error message she's getting:
SELECT stgeorge.STG_outpatient_appointment.InternalNo, stgeorge.STG_outpatient_appointment.Clinic, stgeorge.STG_outpatient_appointment.EpisodeNo, stgeorge.STG_outpatient_appointment.OrderOfAttend, stgeorge.STG_outpatient_appointment.OrderOfAppoint , stgeorge.STG_outpatient_appointment.Disposal, stgeorge.STG_outpatient_appointment.ApptDate, stgeorge.STG_outpatient_appointment.AttendStat, stgeorge.STG_outpatient_appointment.ClinicSpecialt y, stgeorge.STG_outpatient_appointment.PrimaryProc, stgeorge.STG_outpatient_appointment.ContractId
FROM stgeorge.a01_q, stgeorge.STG_outpatient_appointment
WHERE stgeorge.a01_q.InternalNo = stgeorge.STG_outpatient_appointment.InternalNo
AND stgeorge.a01_q.EpisodeNo = stgeorge.STG_outpatient_appointment.EpisodelNo
ODBC call failed.
[SYBASE][ODBC Sybase driver][SQL Server]stgeorge.a01_q not found. Specify owner.objectname or use sp_help to check whether the object exists ...
Any ideas anyone?
SELECT stgeorge.STG_outpatient_appointment.InternalNo, stgeorge.STG_outpatient_appointment.Clinic, stgeorge.STG_outpatient_appointment.EpisodeNo, stgeorge.STG_outpatient_appointment.OrderOfAttend, stgeorge.STG_outpatient_appointment.OrderOfAppoint , stgeorge.STG_outpatient_appointment.Disposal, stgeorge.STG_outpatient_appointment.ApptDate, stgeorge.STG_outpatient_appointment.AttendStat, stgeorge.STG_outpatient_appointment.ClinicSpecialt y, stgeorge.STG_outpatient_appointment.PrimaryProc, stgeorge.STG_outpatient_appointment.ContractId
FROM stgeorge.a01_q, stgeorge.STG_outpatient_appointment
WHERE stgeorge.a01_q.InternalNo = stgeorge.STG_outpatient_appointment.InternalNo
AND stgeorge.a01_q.EpisodeNo = stgeorge.STG_outpatient_appointment.EpisodelNo
ODBC call failed.
[SYBASE][ODBC Sybase driver][SQL Server]stgeorge.a01_q not found. Specify owner.objectname or use sp_help to check whether the object exists ...
Any ideas anyone?