RE: [ACFUG Discuss] Issue with return from cfquery

2006-10-04 Thread Jeff Howard
So I got access to the CF Admin this morning and between that and Profiler I can see what is causing my issue and can resolve. Thanks for everyone's help once again. It was a comination of advice that got me to this point.Now I was wondering if anyone could tell me why this issue is happening

RE: [ACFUG Discuss] Issue with return from cfquery

2006-10-04 Thread axunderwood
:[EMAIL PROTECTED]On Behalf Of Jeff HowardSent: Wednesday, October 04, 2006 9:50 AMTo: discussion@acfug.orgSubject: RE: [ACFUG Discuss] Issue with return from cfquery So I got access to the CF Admin this morning and between that and Profiler I can see what is causing my issue and can

Re: [ACFUG Discuss] Issue with return from cfquery

2006-10-04 Thread Douglas Knudsen
I'm no SQL Server master, but I'd think you just use the SELECT SCOPE_IDENTITY() as ID; to fetch the last used id.so, in one cfquery tag you'd havecfquery name=fooINSERT INTO table (col1, col2)VALUES(val1, val2);SELECT SCOPE_IDENTITY() as ID;/cfqueryThen foo.id has your last inserted id. DK On

RE: [ACFUG Discuss] Issue with return from cfquery

2006-10-04 Thread axunderwood
... -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of Jeff HowardSent: Wednesday, October 04, 2006 9:50 AMTo: discussion@acfug.orgSubject: RE: [ACFUG Discuss] Issue with return from cfquery So I got access to the CF Admin this morning

RE: [ACFUG Discuss] Issue with return from cfquery

2006-10-04 Thread Charlie Arehart
On Behalf Of Jeff HowardSent: Wednesday, October 04, 2006 9:50 AMTo: discussion@acfug.orgSubject: RE: [ACFUG Discuss] Issue with return from cfquery So I got access to the CF Admin this morning and between that and Profiler I can see what is causing my issue and can resolve. Thanks f

RE: [ACFUG Discuss] Issue with return from cfquery

2006-10-03 Thread axunderwood
Maybe try this: SELECT [id] from test -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of Jeff HowardSent: Tuesday, October 03, 2006 12:32 PMTo: discussion@acfug.orgSubject: [ACFUG Discuss] Issue with return from cfquery Does anyone know

Re: [ACFUG Discuss] Issue with return from cfquery

2006-10-03 Thread Precia
ARe you placing your output as such cfoutput query=getIDs #ID# /cfoutput or cfoutput #getIDs.ID# /cfoutput or some other way? The firstexample will return all rows. The second example will return one row. Precia On 10/3/06, Jeff Howard [EMAIL PROTECTED] wrote: Does anyone know what

Re: [ACFUG Discuss] Issue with return from cfquery

2006-10-03 Thread Jeff Howard
I've tried both ways and they both produce the same result.Precia [EMAIL PROTECTED] wrote:ARe you placing your output as suchcfoutput query="getIDs" #ID# /cfoutputor cfoutput #getIDs.ID# /cfoutputor some other way?The firstexample will return all rows. The second

RE: [ACFUG Discuss] Issue with return from cfquery

2006-10-03 Thread Jeff Howard
I tried something like that. Didn't work. Thanks though.Dan Kaufman [EMAIL PROTECTED] wrote:How about adding a WHERE clause which is always true for all records, such as:WHERE 1 = 1 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jeff HowardSent:

Re: [ACFUG Discuss] Issue with return from cfquery

2006-10-03 Thread Dean H. Saxe
Totally WAG, but try select id as my_id from The column name may be the problem you're having. You'd then output #my_id# in the cfoutput block. -dhs Dean H. Saxe, CISSP, CEH [EMAIL PROTECTED] Here in America everything is bought and sold, you can get anything for little bits of

Re: [ACFUG Discuss] Issue with return from cfquery

2006-10-03 Thread Dean H. Saxe
And are you sure Sysmods is the correct DB? Are you connecting to the same DB with enterprise manager? -dhs Dean H. Saxe, CISSP, CEH [EMAIL PROTECTED] Great spirits have often encountered violent opposition from weak minds. --Einstein On Oct 3, 2006, at 12:53 PM, Jeff Howard wrote:

RE: [ACFUG Discuss] Issue with return from cfquery

2006-10-03 Thread Charlie Arehart
Besides the other helpful suggestions so far, do you have debugging turned on, to see how many records are being returned in the resultset? More important, If the issue is really that it's just returning 1 record, then the question could be one of security and authorization, in SQL I mean.

RE: [ACFUG Discuss] Issue with return from cfquery

2006-10-03 Thread Benjamin Bloodworth
In the datasource, do you have Maintain connections across client requests? If so, uncheck it, save the changes to the datasource and then run your query again. If you get different results, you may be running into a query caching issue. From: [EMAIL PROTECTED] [mailto:[EMAIL

Re: [ACFUG Discuss] Issue with return from cfquery

2006-10-03 Thread Jeff Howard
Yes, absolutely positive. I am getting a return, just 1 row instead of 10 and it was working this morning."Dean H. Saxe" [EMAIL PROTECTED] wrote: And are you sure Sysmods is the correct DB? Are you connecting to the same DB with enterprise manager?-dhsDean H. Saxe, CISSP, CEH[EMAIL

Re: [ACFUG Discuss] Issue with return from cfquery

2006-10-03 Thread Dean H. Saxe
SELECT count(*) as counter from test... then output the value of counter. If its 1, you have 1 row and you're looking at the wrong DB. Dean H. Saxe, CISSP, CEH [EMAIL PROTECTED] What difference does it make to the dead, the orphans, and the homeless, whether the mad destruction is

Re: [ACFUG Discuss] Issue with return from cfquery

2006-10-03 Thread Dean H. Saxe
maintain connections... has nothing to do with query caching. Its caching connections, not data. -dhs Dean H. Saxe, CISSP, CEH [EMAIL PROTECTED] What is objectionable, what is dangerous about extremists is not that they are extreme, but that they are intolerant. -- Robert F. Kennedy,

RE: [ACFUG Discuss] Issue with return from cfquery

2006-10-03 Thread Benjamin Bloodworth
query. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dean H. Saxe Sent: Tuesday, October 03, 2006 1:30 PM To: discussion@acfug.org Subject: Re: [ACFUG Discuss] Issue with return from cfquery maintain connections... has nothing to do with query caching

RE: [ACFUG Discuss] Issue with return from cfquery

2006-10-03 Thread Jeff Howard
Ok, the new issue is it all of a sudden started working again. I didn't change any settings anywhere or even change my script. All I did was eat a sandwich and hit refresh on the page and it started working.This is obviously not a good situation once the project I'm working on is live.Any

RE: [ACFUG Discuss] Issue with return from cfquery

2006-10-03 Thread axunderwood
@acfug.orgSubject: RE: [ACFUG Discuss] Issue with return from cfquery Ok, the new issue is it all of a sudden started working again. I didn't change any settings anywhere or even change my script. All I did was eat a sandwich and hit refresh on the page and it started working

Re: [ACFUG Discuss] Issue with return from cfquery

2006-10-03 Thread Dean H. Saxe
] Issue with return from cfquery maintain connections... has nothing to do with query caching. Its caching connections, not data. -dhs Dean H. Saxe, CISSP, CEH [EMAIL PROTECTED] What is objectionable, what is dangerous about extremists is not that they are extreme, but that they are intolerant

Re: [ACFUG Discuss] Issue with return from cfquery

2006-10-03 Thread Teddy Payne
Is this portion a typo wher there exists a space in the #ID#? Also, try #getIDs.ID#.cfoutput query=getIDs #getIDs.recordcount# --# ID# br /cfoutputTeddyOn 10/3/06, Jeff Howard [EMAIL PROTECTED] wrote: No offense taken, I thought I explained it fairly clearly.In any case, maybe this will help

Re: [ACFUG Discuss] Issue with return from cfquery

2006-10-03 Thread Mark Fennell
The inserts for 2 - 10 were not committed in the db? Otherwise, someone's messing with you. :) mf Jeff Howard wrote: Ok, the new issue is it all of a sudden started working again. I didn't change any settings anywhere or even change my script. All I did was eat a sandwich and hit refresh

RE: [ACFUG Discuss] Issue with return from cfquery

2006-10-03 Thread axunderwood
: discussion@acfug.orgSubject: RE: [ACFUG Discuss] Issue with return from cfquery Ok, the new issue is it all of a sudden started working again. I didn't change any settings anywhere or even change my script. All I did was eat a sandwich and hit refresh on the page

Re: [ACFUG Discuss] Issue with return from cfquery

2006-10-03 Thread Shawn . Gorrell
Return Receipt Your Re: [ACFUG Discuss] Issue with return from cfquery document

Re: [ACFUG Discuss] Issue with return from cfquery

2006-10-03 Thread Craig . Nassal
Return Receipt Your Re: [ACFUG Discuss] Issue with return from cfquery document

RE: [ACFUG Discuss] Issue with return from cfquery

2006-10-03 Thread Charlie Arehart
- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jeff Howard Sent: Tuesday, October 03, 2006 1:58 PM To: discussion@acfug.org Subject: Re: [ACFUG Discuss] Issue with return from cfquery snip This test app all of a sudden started functioning properly as well when I hit refresh

RE: [ACFUG Discuss] Issue with return from cfquery

2006-10-03 Thread Charlie Arehart
] On Behalf Of Dean H. Saxe Sent: Tuesday, October 03, 2006 2:10 PM To: discussion@acfug.org Subject: Re: [ACFUG Discuss] Issue with return from cfquery Ben, cfqueryparam explicitly prevents caching of result sets. -dhs Dean H. Saxe, CISSP, CEH [EMAIL PROTECTED] What difference does it make to the dead

RE: [ACFUG Discuss] Issue with return from cfquery

2006-10-03 Thread Jeff Howard
Charlie,I appreciate the help.I have not used SQL Profiler before. I have been looking at it and can see it "really is querying the database". Once again, I've never used SQL Profiler but I'm pretty positive that I've figured this part out.As far as the CF debugging tool, we had a

RE: [ACFUG Discuss] Issue with return from cfquery

2006-10-03 Thread Charlie Arehart
PROTECTED] On Behalf Of Jeff HowardSent: Tuesday, October 03, 2006 4:40 PMTo: discussion@acfug.orgSubject: RE: [ACFUG Discuss] Issue with return from cfquery Charlie, I appreciate the help. I have not used SQL Profiler before. I have been looking at it and can see it "really is que

RE: [ACFUG Discuss] Issue with return from cfquery

2006-10-03 Thread Charlie Arehart
Yeah, and here I broke out themusket for nothin'. :-) /charlie http://www.carehart.org/blog/ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]Sent: Tuesday, October 03, 2006 4:18 PMTo: discussion@acfug.orgSubject: Re: [ACFUG Discuss] Issue with return

RE: [ACFUG Discuss] Issue with return from cfquery

2006-10-03 Thread Jeff Howard
4:40 PMTo: discussion@acfug.orgSubject: RE: [ACFUG Discuss] Issue with return from cfqueryCharlie, I appreciate the help.I have not used SQL Profiler before. I have been looking at it and can see it "really is querying the database". Once again, I've never used SQL Pro