Ask a Question related to Coldfusion Database Access, Design and Development.
-
cf_code_warrior #1
DB access SQL2000 works usually
We are running several web sites with the identical code. On just ONE site,
when we hit this query, we get this error. select so.professional_id,
sf.address_2, sf.city, sf.state, sf.id, sf.phone, sf.email, so.object_id,
sf.address_1, sf.id as friend_id, sf.name_alias, e.note, e.name,
e.remind_days_before, oc.id as occasion_type, oc.occasion, re.occasion_date,
re.remind_on, re.event_id, re.media, re.sms_id, m.first_name+' '+m.last_name as
pro_name from reminders re left outer join obgyns.dbo.storeOccasions so on
re.occasion_id = so.id left outer join obgyns.dbo.storeFriends sf on sf.id =
so.friend_id left outer join obgyns.dbo.occasions oc on oc.id = so.occasion_id
left outer join obgyns.dbo.event e on e.event_id = re.event_id left outer join
obgyns.dbo.member m on so.professional_id = m.member_id where re.member_id = 1
and re.site_id=32 order by occasion desc Error Executing Database Query.
[Macromedia][SQLServer JDBC Driver][SQLServer]Invalid object name
'obgyns.dbo.storeOccasions'. The table, storeOccasions, in
the db is DEFINATELY there. No question. It's clearly visible in SQL2000
Enterprise Manager. Always was. The only thing a LITTLE unconventional about
this query is that the reference to obgyns.dbo.storeOccasions is in the
code made up of left outer join #datasource#.dbo.storeOccasions so on
re.occasion_id = so.id and the primary tables are in a datasource OTHER than
#datasource# Actual code is: <cfquery name='o' datasource='m8_reminders'>
select so.professional_id, sf.address_2, sf.city, sf.state, sf.id, sf.phone,
sf.email, so.object_id, sf.address_1, sf.id as friend_id, sf.name_alias,
e.note, e.name, e.remind_days_before, oc.id as occasion_type, oc.occasion,
re.occasion_date, re.remind_on, re.event_id, re.media, re.sms_id,
m.first_name+' '+m.last_name as pro_name from reminders re left outer join
#datasource#.dbo.storeOccasions so on re.occasion_id = so.id left outer join
#datasource#.dbo.storeFriends sf on sf.id = so.friend_id left outer join
#datasource#.dbo.occasions oc on oc.id = so.occasion_id left outer join
#datasource#.dbo.event e on e.event_id = re.event_id left outer join
#datasource#.dbo.member m on so.professional_id = m.member_id where
re.member_id = #smn# and re.site_id=#application.site_id# order by #url.sort#
#url.order# </cfquery> There's no problem with the DSN as the site works
perfectly well elsewhere. And other sites work fine using this same query,
except that #datasource# is different. No caching. Weird. Any ideas,
anyone, Robert
cf_code_warrior Guest
-
SQL qury works in access but not dreamweaver
I am using InterAKT dynamic charts extension to create a chart on a page. The chart is to show number of meetings per month. The following SQL works... -
Query Works in ACCESS DB but not on Front End
Okay...i am trying to run a query to view people that are overdue in there medical appts. i did the <cfoutput> in place of <cfquery> and ran the... -
Join Query works in access but not via ColdFusion
I have a query I built with the query builder in Access and through access it works fine. here is the query: SELECT appUsers.AppId,... -
Insert fails on access that I know works...
Folks, I use PHP to write my form data to MySQL. I have a database with about ten tables. I'm trying to fill one table with some dummy data... -
Can't seem to add to access database online, offline works fine
I developed an asp.net store with vb.net offline and everything works fine. The user is prompted to log in when they try to add to shopping cart...



Reply With Quote

