RE: SQL Concetenation inside CFQuery

2006-12-13 Thread Mark Leder
Thanks to everyone for your help! These work perfectly. Mark [This E-mail scanned for viruses by Declude EVA] ~| Create robust enterprise, web RIAs. Upgrade & integrate Adobe Coldfusion MX7 with Flex 2 http://ad.doubleclic

RE: SQL Concetenation inside CFQuery

2006-12-13 Thread Andy Matthews
--- From: Mark Leder [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 13, 2006 8:18 AM To: CF-Talk Subject: SQL Concetenation inside CFQuery I'm using this cfquery to pull records from an MSSQL 2005 db: SELECT U.userID, U.userFirstName, U.userMiddleName, U.userLastName, (U.userFirstName + SP

Re: SQL Concetenation inside CFQuery

2006-12-13 Thread Gert Franz
tomer Care Railo Technologies GmbH [EMAIL PROTECTED] www.railo.ch Join our Mailing List / Treten Sie unserer Mailingliste bei: deutsch: http://de.groups.yahoo.com/group/railo/ english: http://groups.yahoo.com/group/railo_talk/ Mark Leder schrieb: > I'm using this cfquery to pull records

Re: SQL Concetenation inside CFQuery

2006-12-13 Thread Jim Wright
Mark Leder wrote: > I'm using this cfquery to pull records from an MSSQL 2005 db: > > SELECT U.userID, U.userFirstName, U.userMiddleName, U.userLastName, > (U.userFirstName + SPACE(1) + U.userMiddleName + SPACE(1) + U.userLastName) > AS assignedName >FROM a_Table &g

SQL Concetenation inside CFQuery

2006-12-13 Thread Mark Leder
I'm using this cfquery to pull records from an MSSQL 2005 db: SELECT U.userID, U.userFirstName, U.userMiddleName, U.userLastName, (U.userFirstName + SPACE(1) + U.userMiddleName + SPACE(1) + U.userLastName) AS assignedName FROM a_Table It works great, with one exception. In some cases

Re: help on cfquery and cfoutput

2006-11-30 Thread alex poyaoan
Thanks to both of you now it is outputing what i want and in different sections. >1) Refer to the query using array notation: > >Title: #NewsUpdates.Title[1]# Content: >#NewsUpdates.Content[1]# > >Title: #NewsUpdates.Title[2]# Content: >#NewsUpdates.Content[2]# > >etc > >OR > >2) If you don

Re: help on cfquery and cfoutput

2006-11-30 Thread James Holmes
1) Refer to the query using array notation: Title: #NewsUpdates.Title[1]# Content: #NewsUpdates.Content[1]# Title: #NewsUpdates.Title[2]# Content: #NewsUpdates.Content[2]# etc OR 2) If you don't know which row is which, use QoQ to select the one you need at each point in the template. On 11/3

RE: help on cfquery and cfoutput

2006-11-30 Thread Adrian Lynch
lto:[EMAIL PROTECTED] Sent: 30 November 2006 08:47 To: CF-Talk Subject: help on cfquery and cfoutput help on this please the code is the above query gives me three records.. the problem is how to display each record in three different sections of the template... is there a way to insert a pa

help on cfquery and cfoutput

2006-11-30 Thread alex poyaoan
help on this please the code is the above query gives me three records.. the problem is how to display each record in three different sections of the template... is there a way to insert a parameter like pubcontentid=3703 inside the creating each for every record? thanks for any help... ~

Re: CFQuery - cfoutput - list of months and their year

2006-11-29 Thread Scott Weikert
if recw_assign_month is a date/time field - wouldn't sorting on this field straight up work fine? Seems like you're jumping through unnecessary hoops... ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitt

CFQuery - cfoutput - list of months and their year

2006-11-29 Thread coldfusion . developer
All, I have a table that contains several items and most of these items are assigned a month and the current year using #CreateODBCDateTime(CreateDate(Year( Now() ), form.month_assigned, Day( Now() )))# in my insert or update sql statements. Some items will not be assigned a date. recw_assign_

RE: CFQUERY: comma delimited list of id values

2006-11-29 Thread Andy Matthews
ValueList would be the simplest means of doing what you need. SELECT id FROM tableName ORDER BY id -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 29, 2006 8:08 AM To: CF-Talk Subject: CFQUERY: comma delimited list of id values All

Re: CFQUERY: comma delimited list of id values

2006-11-29 Thread Jochem van Dieten
coldfusion.developer wrote: > > I'm trying to figure out how best to pass a list of comma delimited id > (numeric) values to another query. > > > select * > from dbo.tbl_recipe_monthly_winner > where (month(recw_assign_month )= 01) AND (year(recw_assign_month )= > 2006) > SELECT *, R

Re: CFQUERY: comma delimited list of id values

2006-11-29 Thread Jim Wright
[EMAIL PROTECTED] wrote: > All, > > I'm trying to figure out how best to pass a list of comma delimited id > (numeric) values to > another query. I'm having trouble with getting the list of id values to not > have a "," (comma) > after the last value in the output. Any help would be very appre

RE: CFQUERY: comma delimited list of id values

2006-11-29 Thread Adrian Lynch
dbo.tbl_recipe_monthly_winner where (month(recw_assign_month )= 01) AND (year(recw_assign_month )= 2006) ) Adrian -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 29 November 2006 14:08 To: CF-Talk Subject: CFQUERY: comma delimited list of id values All, I'm t

RE: CFQUERY: comma delimited list of id values

2006-11-29 Thread Bobby Hartsfield
: CFQUERY: comma delimited list of id values All, I'm trying to figure out how best to pass a list of comma delimited id (numeric) values to another query. I'm having trouble with getting the list of id values to not have a "," (comma) after the last value in the output. An

RE: CFQUERY: comma delimited list of id values

2006-11-29 Thread Ben Koshy
Try this: -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 29, 2006 7:38 PM To: CF-Talk Subject: CFQUERY: comma delimited list of id values All, I'm trying to figure out how best to pass a list of comma delimited id (numeric) valu

CFQUERY: comma delimited list of id values

2006-11-29 Thread coldfusion . developer
All, I'm trying to figure out how best to pass a list of comma delimited id (numeric) values to another query. I'm having trouble with getting the list of id values to not have a "," (comma) after the last value in the output. Any help would be very appreciated. Should I be using a cfloop ins

Re: CFQUERY - Aggregate Function

2006-11-02 Thread Doug Brown
or http://www.sswug.org/ - Original Message - From: "Kris Jones" <[EMAIL PROTECTED]> To: "CF-Talk" Sent: Thursday, November 02, 2006 6:27 AM Subject: Re: CFQUERY - Aggregate Function > How about tek-tips.com? > >> Can any recommend a free f

Re: CFQUERY - Aggregate Function

2006-11-02 Thread Kris Jones
How about tek-tips.com? > Can any recommend a free forum like houseoffusion for SQL coding issues. ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, d

Re: CFQUERY - Aggregate Function

2006-11-01 Thread Ben Koshy
ent: Thursday, November 02, 2006 1:17 AM Subject: CFQUERY - Aggregate Function > Can any recommend a free forum like houseoffusion for SQL coding issues. > I've used sqlmag.com but they forums have little traffic. > >>From the 2nd query, I'm trying to extract only record

RE: CFQUERY - Aggregate Function

2006-11-01 Thread Dave Watts
> From the 2nd query, I'm trying to extract only records from > 2nd query where the average of avg(ratingvalue) >=4 and I'm > not sure how do do this. HAVING AVG(ratingvalue) >= 4 Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-

CFQUERY - Aggregate Function

2006-11-01 Thread coldfusion . developer
Can any recommend a free forum like houseoffusion for SQL coding issues. I've used sqlmag.com but they forums have little traffic. >From the 2nd query, I'm trying to extract only records from 2nd query where >the average of avg(ratingvalue) >=4 and I'm not sure how do do this. 1st Query SELECT

Re: cfquery result

2006-10-19 Thread Richard White
thats brilliant, thanks for all your advice ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fus

RE: cfquery result

2006-10-19 Thread Dave Watts
> Hi, i hope this is a very simple question! but i want to be > able to call a query but i want the result of the query to be > stored in a structure format so that i can use in cfscript, > the only examples i can find is if the result is used in a > > could someone possibly provide a simple

Re: cfquery result

2006-10-19 Thread Teddy Payne
You can reference a query in cfscript: select col1, col2 from rownum = 0; while (row lt qryName.RecordCount) { rownum = IncrementValue(rownum); col1= qryName.col1[rownum]; col2 = qryName.col2[rownum]; } On 10/19/06, Richard White <[EMAIL PROTECTED]> wrote: > > Hi, i hope this i

RE: cfquery result

2006-10-19 Thread Turetsky, Seth
lk Subject: cfquery result Hi, i hope this is a very simple question! but i want to be able to call a query but i want the result of the query to be stored in a structure format so that i can use in cfscript, the only examples i can find is if the result is used in a http://www.fusionauthority.com

cfquery result

2006-10-19 Thread Richard White
Hi, i hope this is a very simple question! but i want to be able to call a query but i want the result of the query to be stored in a structure format so that i can use in cfscript, the only examples i can find is if the result is used in a http://www.fusionauthority.com/quarterly Archive: htt

RE: CFStoredProc vs CFQUERY

2006-10-13 Thread Tom Kitta
Another rather big difference is that inside CFquery SQL you can use CF and essentially have a dynamic SQL solution without the drawbacks of dynamic SQL. For some solutions this makes Ad-hock query faster than stored proc. TK -Original Message- From: Ninad Inamdar [mailto:[EMAIL

Re: CFStoredProc vs CFQUERY

2006-10-13 Thread Ninad Inamdar
The quick difference between the and is you can deal with multiple recordset returned from the stored procedure which was not possible using .With you can deal with the return values from the stored procedures. The Only drawback I see using is it can not handle the varbinary data which i

Re: Cfquery in Javascript

2006-09-20 Thread Mullai Subbiah
Thank you very much for responding. Mullai ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fus

Re: Cfquery in Javascript

2006-09-15 Thread Jake Churchill
Use Ajax. You can call a CF function with it which will perform the DB Query and return the results. Then call another CF function to populate form fields. Mullai Subbiah wrote: > Can we use Cfquery within Javascript. I am trying to populate a form based on > what I do within the Java

Re: Cfquery in Javascript

2006-09-14 Thread Matt Williams
ith SMTP; > Thu, 14 Sep 2006 23:06:15 -0400 > Received: from LOCALHOST by LOCALHOST > with ESMTP id CB61D8F0742DE746B9FB7725E507023A > Thu, 14 Sep 2006 23:06:27 -0400 > Subject: Cfquery in Javascript > From: Mullai Subbiah <[EMAIL PROTECTED]> > Content-Type: text/plain

re: Cfquery in Javascript

2006-09-14 Thread Bobby Hartsfiled
MTP id CB61D8F0742DE746B9FB7725E507023A Thu, 14 Sep 2006 23:06:27 -0400 Subject: Cfquery in Javascript From: Mullai Subbiah <[EMAIL PROTECTED]> Content-Type: text/plain Precedence: bulk Reply-To: cf-talk@houseoffusion.com To: CF-Talk Date: Thu, 14 Sep 2006 22:56:38 -0400 Message-ID: <[EMAIL PROTECTED]>

Cfquery in Javascript

2006-09-14 Thread Mullai Subbiah
Can we use Cfquery within Javascript. I am trying to populate a form based on what I do within the Javascript. Once I am done I need to populate the form fields by querying the database? Any thoughts will be appreciated

RE: CFQUERY of non-swequential primary key ids

2006-08-23 Thread Ben Nadel
OP 1. Not sure if this works on anything but MS SQL server. ... Ben Nadel www.bennadel.com -Original Message- From: Everett, Al (NIH/NIGMS) [C] [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 23, 2006 12:47 PM To: CF-Talk Subject: RE: CFQUERY of non-swequential p

Re: CFQUERY of non-swequential primary key ids

2006-08-23 Thread Greg Morphis
You could query the table and get a list of the available IDs. Generate a random number between 1 and listlen() and then using ListGetAt() you can get that random ID and then query the DB again to pull back that record. On 8/23/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > All, > > I'm doing

RE: CFQUERY of non-swequential primary key ids

2006-08-23 Thread Everett, Al \(NIH/NIGMS\) [C]
/udf.cfm?id=524 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 23, 2006 12:14 PM To: CF-Talk Subject: CFQUERY of non-swequential primary key ids All, I'm doing a query and randomly displaying images from within each record but records have

RE: CFQUERY of non-swequential primary key ids

2006-08-23 Thread Ben Nadel
ee_id" ][ RandRange( 1, get_vids_a.RecordCount ) ]# ... Ben Nadel www.bennadel.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 23, 2006 12:14 PM To: CF-Talk Subject: CFQUERY of non-swequential primary key ids

CFQUERY of non-swequential primary key ids

2006-08-23 Thread coldfusion . developer
All, I'm doing a query and randomly displaying images from within each record but records have been removed so I don't have sequential id values. PROBLEM: When I run this code sometime I get images, sometimes I get nothing. Should I be running a different random'izer? 8-) Any ideas? CODE:

Re: cfquery: search numeric IN/Contains/Like

2006-08-21 Thread Paul Ihrig
will match part of the database ID in the search form... > > > I have NOT tested this... But maybe It can give you some ideas. > > > ....... > Ben Nadel > www.bennadel.com > > > -Original Message- > From: Paul Ihrig [mailto:[EMAIL PROTECTED]

Re: cfquery: search numeric IN/Contains/Like

2006-08-21 Thread Paul Ihrig
the search field could be a first name, id date, whatever. i am doing the 0=0 to return all records if nothing is passed. then will check to see if it numeric, if it is they will be looking up an ID. if there is a similar id, return that set.. say our ids have 123456789 charecters. i just want to

RE: cfquery: search numeric IN/Contains/Like

2006-08-21 Thread Ben Nadel
ill match part of the database ID in the search form... I have NOT tested this... But maybe It can give you some ideas. ... Ben Nadel www.bennadel.com -Original Message- From: Paul Ihrig [mailto:[EMAIL PROTECTED] Sent: Monday, August 21, 2006 4:34 PM To: CF-Talk Subj

RE: cfquery: search numeric IN/Contains/Like

2006-08-21 Thread Snake
What is the value of #FORM.search# It must be at least 1 number, or a comma dleimited list of numbers. Contains requires full-text search and is for text fields. Snake -Original Message- From: Paul Ihrig [mailto:[EMAIL PROTECTED] Sent: 21 August 2006 21:34 To: CF-Talk Subject: cfquery

cfquery: search numeric IN/Contains/Like

2006-08-21 Thread Paul Ihrig
i cant get the IN/CONTAINS to work on searching a numeric field. i can can get the result if the passed value is the exact Number. but if i want the subset of a number or any results with 1300 then i cant get it to work. i have googled it, every way i can think SELECT * FROM ClientList_Query1 WH

Re: Using CFQUERY to access DBCC output?

2006-08-16 Thread Denny Valliant
OTECTED]> wrote: > > > > I'm trying to automate some of an application's database maintentance > > tasks via a CF script that will check to see if it's time for a defrag, > > index rebuild, etc. I know that I can put a DBCC statement in a > CFQUERY, > &g

Re: Using CFQUERY to access DBCC output?

2006-08-16 Thread Dan Plesse
. net < [EMAIL PROTECTED]> wrote: > > I'm trying to automate some of an application's database maintentance > tasks via a CF script that will check to see if it's time for a defrag, > index rebuild, etc. I know that I can put a DBCC statement in a CFQUERY, > bu

Using CFQUERY to access DBCC output?

2006-08-16 Thread powell
I'm trying to automate some of an application's database maintentance tasks via a CF script that will check to see if it's time for a defrag, index rebuild, etc. I know that I can put a DBCC statement in a CFQUERY, but what's got me scrambling is how to retrieve any output

RE: cfquery - single quotes become doubled

2006-08-08 Thread Josh Adams
data opens you up to CFML injection attacks so you'll need to sanitize for those. Josh -Original Message- From: David Carter [mailto:[EMAIL PROTECTED] Sent: Monday, August 07, 2006 4:34 PM To: CF-Talk Subject: Re: cfquery - single quotes become doubled Thanks all, PreserveSin

Re: cfquery - single quotes become doubled

2006-08-07 Thread David Carter
Thanks all, PreserveSingleQuotes() solved the problem. >That's by design. ColdFusion is escaping your single quotes. > >You need to either wrap your string in the PreserveSingleQuotes() >function or, better, use > ~| Introduc

RE: cfquery - single quotes become doubled

2006-08-07 Thread Everett, Al \(NIH/NIGMS\) [C]
That's by design. ColdFusion is escaping your single quotes. You need to either wrap your string in the PreserveSingleQuotes() function or, better, use -Original Message- From: David Carter Sent: Monday, August 07, 2006 3:14 PM To: CF-Talk Subject: cfquery - single quotes b

Re: cfquery - single quotes become doubled

2006-08-07 Thread Matt Williams
#PreserveSingleQuotes(sql_stmt)# On 8/7/06, David Carter <[EMAIL PROTECTED]> wrote: > > Hello all, > > I am having a strange problem with a cfquery through SQL Server where I am > building the SQL statement dynamically from form input. I wonder if anyone > here has enc

Re: cfquery - single quotes become doubled

2006-08-07 Thread Charlie Griefer
#preserveSingleQuotes(sql_statement)# On 8/7/06, David Carter <[EMAIL PROTECTED]> wrote: > Hello all, > > I am having a strange problem with a cfquery through SQL Server where I am > building the SQL statement dynamically from form input. I wonder if anyone > here has enco

cfquery - single quotes become doubled

2006-08-07 Thread David Carter
Hello all, I am having a strange problem with a cfquery through SQL Server where I am building the SQL statement dynamically from form input. I wonder if anyone here has encountered and over come a similar error in the past, and could lead me toward a solution. When the SQL statement is

Re: CFQuery simple but not working, strange

2006-06-15 Thread Claude Schneegans
>>SQLselect * from app_users where UID = 271 Looks like you've got a http://www.contentbox.com/claude/customtags/tagstore.cfm (Please send any spam to this address: [EMAIL PROTECTED]) Thanks. ~| Message: http://www.houseof

RE: CFQuery simple but not working, strange

2006-06-15 Thread Adkins, Randy
UID may be reserved but you can try: [UID] = #URL.dupid# -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, June 15, 2006 11:21 AM To: CF-Talk Subject: CFQuery simple but not working, strange Hey All, Argh! I've stared at this error for 10 mi

RE: CFQuery simple but not working, strange

2006-06-15 Thread Ben Nadel
Some people call me the gangster of love." -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, June 15, 2006 11:21 AM To: CF-Talk Subject: CFQuery simple but not working, strange Hey All, Argh! I've stared at this error for 10 minutes and i

CFQuery simple but not working, strange

2006-06-15 Thread coldfusion . developer
Hey All, Argh! I've stared at this error for 10 minutes and i can't see what' wrong with my query. This query is checking to see if a username already exists before adding a new username to the app_users table. UID is the primary key in the app_users table and URL.dupid is the triggered red

RE: MS-SQL - how to call a SP using CFQUERY?

2006-06-06 Thread Dave Watts
> However, you're probably much better off using the > CFSTOREDPROC / CFPROCPARAM tag set... it does validation and > handles procedures quite nicely. On the other hand, you can use CACHEDWITHIN/CACHEDAFTER with CFQUERY calling a stored procedure. Dave Watts, CTO, Fig Leaf

Re: MS-SQL - how to call a SP using CFQUERY?

2006-06-06 Thread Pete Ruckelshaus
sing MS SQL Server, how do you call a stored > > procedure using the CFQUERY tag? > > Take your normal call from Query Analyzer and paste it into a CFQuery. > > EXEC your_procedure_name @Parmeter1 = #Parameter1Value#, @Parameter2 = > '#Parameter2Value#' > > &g

Re: MS-SQL - how to call a SP using CFQUERY?

2006-06-05 Thread C. Hatton Humphrey
On 6/5/06, Pete Ruckelshaus <[EMAIL PROTECTED]> wrote: > Title says it all. Using MS SQL Server, how do you call a stored > procedure using the CFQUERY tag? Take your normal call from Query Analyzer and paste it into a CFQuery. EXEC your_procedure_name @Parmeter1 = #Par

MS-SQL - how to call a SP using CFQUERY?

2006-06-05 Thread Pete Ruckelshaus
Title says it all. Using MS SQL Server, how do you call a stored procedure using the CFQUERY tag? Thanks, Pete ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:242524 Archives: http://www.houseoffusion.com/cf_lists

RE: cfquery group and flash remoting

2006-03-14 Thread Dave Watts
> This maybe OT but I was wounder if its possible to group > recordset for Flash remoting the way cf does with cfquery group. > > > #mainGroup.Title# > >#subGroup.subTitle# > > No, I don't think so. When you use Flash Remoting, you don't outp

cfquery group and flash remoting

2006-03-14 Thread j s
This maybe OT but I was wounder if its possible to group recordset for Flash remoting the way cf does with cfquery group. #mainGroup.Title# #subGroup.subTitle# ~| Message: http://www.houseoffusion.com/lists.cfm/link

Re: cfquery and insert help needed

2006-03-10 Thread Rick Root
Andy Matthews wrote: > QFT? "Quoted For Truth" ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:235026 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/

RE: cfquery and insert help needed

2006-03-10 Thread Andy Matthews
QFT? -Original Message- From: Rick Root [mailto:[EMAIL PROTECTED] Sent: Friday, March 10, 2006 8:38 AM To: CF-Talk Subject: Re: cfquery and insert help needed James Holmes wrote: > Use cfqueryparm as should be done in every query. QFT. Get in the habit now before it's

Re: cfquery and insert help needed

2006-03-10 Thread Rick Root
James Holmes wrote: > Use cfqueryparm as should be done in every query. QFT. Get in the habit now before it's too late =) Rick ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:235006 Archives: http://www.houseoffusio

Re: cfquery and insert help needed

2006-03-09 Thread James Holmes
Sorry for abbreviating - "as should be done in every query in which user input is used" On 3/10/06, S. Isaac Dealey <[EMAIL PROTECTED]> wrote: > It's not dangerous if it's a hard-coded value... > > Otherwise, yes, use > > > Use cfqueryparm as should be done in every query. -- CFAJAX docs and oth

Re: cfquery and insert help needed

2006-03-09 Thread Aaron Rouse
Nah, I was leaving it off to see if he was paying attention to my description of the fix and not just copy n pasting my solution. Ok, you are right, I missed that one. On 3/9/06, S. Isaac Dealey <[EMAIL PROTECTED]> wrote: > > > You need to double up that single quote within your string > > that

Re: cfquery and insert help needed

2006-03-09 Thread S . Isaac Dealey
It's not dangerous if it's a hard-coded value... Otherwise, yes, use > Use cfqueryparm as should be done in every query. > On 3/10/06, Charles Heizer <[EMAIL PROTECTED]> wrote: >> Hello, >> I'm trying to insert a value in to a column in oracle and >> I'm getting >> a missing comma error. >> >>

Re: cfquery and insert help needed

2006-03-09 Thread S . Isaac Dealey
> You need to double up that single quote within your string > that you are > inserting. Are you just doing this directly in the DB or > through CF? If in > CF, using a cfqueryparam should take care of this for you. > If directly in > the DB then change it to: > insert into RADIA4.ZSERVICE_LIST(

Re: cfquery and insert help needed

2006-03-09 Thread S . Isaac Dealey
> Hello, > I'm trying to insert a value in to a column in oracle and > I'm getting > a missing comma error. > I know the problem has to do with value "'WORDPOS(EDMGETV > (ZMASTER,ZOS),' WIN2K WINXP')=0'" I just don't know what > to do to fix > it. > Thanks, > - charles > Here is my sql code... >

Re: cfquery and insert help needed

2006-03-09 Thread James Holmes
Use cfqueryparm as should be done in every query. On 3/10/06, Charles Heizer <[EMAIL PROTECTED]> wrote: > Hello, > I'm trying to insert a value in to a column in oracle and I'm getting > a missing comma error. > > I know the problem has to do with value "'WORDPOS(EDMGETV > (ZMASTER,ZOS),' WIN2K WI

Re: cfquery and insert help needed

2006-03-09 Thread Aaron Rouse
You need to double up that single quote within your string that you are inserting. Are you just doing this directly in the DB or through CF? If in CF, using a cfqueryparam should take care of this for you. If directly in the DB then change it to: insert into RADIA4.ZSERVICE_LIST(REMOVAL,ZSTOP00

cfquery and insert help needed

2006-03-09 Thread Charles Heizer
Hello, I'm trying to insert a value in to a column in oracle and I'm getting a missing comma error. I know the problem has to do with value "'WORDPOS(EDMGETV (ZMASTER,ZOS),' WIN2K WINXP')=0'" I just don't know what to do to fix it. Thanks, - charles Here is my sql code... insert into RADIA4

Re: cfloop vs cfquery

2006-02-25 Thread Rick Root
Will Tomlinson wrote: > > This is the only chat room I've ever seen where you hafta enter your messages > via your login name. lol!! > It's fixed Will! You can get on with life now! Yay! ~| Message: http://www.houseoffusion

Re: cfloop vs cfquery

2006-02-25 Thread Rick Root
Will Tomlinson wrote: > I ain't got all night. lol! It's past my bedtime. me neither.. it's a javascript error in the cfajax engine.js but I don't know why it started happening. Oh well, I'll figger it out eventually. Rick ~|

Re: cfloop vs cfquery

2006-02-25 Thread Will Tomlinson
>I noticed =) I think ther's some kinda of javascript error.. gimme a >few minutes =) This is the only chat room I've ever seen where you hafta enter your messages via your login name. lol!! I've been using these as logins tonight: Hey Guys! Wow, this is a cool chat room! Rick, when will y

Re: cfloop vs cfquery

2006-02-25 Thread Will Tomlinson
I ain't got all night. lol! It's past my bedtime. ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:233490 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.c

Re: cfloop vs cfquery

2006-02-25 Thread Rick Root
I noticed =) I think ther's some kinda of javascript error.. gimme a few minutes =) Will Tomlinson wrote: > And it's definitely rabid tonight. Keeps refreshing whenever I send in some > text. > > ~| Message: http://www.house

Re: cfloop vs cfquery

2006-02-25 Thread Will Tomlinson
And it's definitely rabid tonight. Keeps refreshing whenever I send in some text. ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:233487 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http

Re: cfloop vs cfquery

2006-02-25 Thread Will Tomlinson
I'm in your RabidAJAXChat... where are ya dude? Will ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:233486 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/li

Re: cfloop vs cfquery

2006-02-25 Thread Rick Root
Most of the time I use cfoutput, but if I'm concerned about whitespace output and I'm inside a cfsetting enablecfoutputonly="yes", I'll use cfloop and then place cfoutput tags only around what I want to output. Rick ~| Message:

Re: cfloop vs cfquery

2006-02-25 Thread dave
i ask because I just see some of the "better" coders using loop and of course I undestand that if you are outputing variables in the middle cfquery is a "doh" but say if you are using enableoutputonly then sticking page code between outputs its a null point, unless u w

Re: cfloop vs cfquery

2006-02-25 Thread Aaron Rouse
Erf, I hit send before reading what I typed, last closing tag should be not On 2/25/06, Aaron Rouse <[EMAIL PROTECTED]> wrote: > > If I need to actually output something from the query and I am not already > in a cfoutput block then I do cfoutput with the query attribute. I do not > think there

Re: cfloop vs cfquery

2006-02-25 Thread Aaron Rouse
If I need to actually output something from the query and I am not already in a cfoutput block then I do cfoutput with the query attribute. I do not think there is a "better" way, more to what is your preference. I work with some people who do something like this #somethingfromquery# and to me th

cfloop vs cfquery

2006-02-25 Thread dave
a ? i have always wondered is which is "better" to you when outputting a query? For example, is it better to do this /buck/large/1.jpg copyright Buck Forester /buck/thumbs/1.jpg or this /buck/large/1.jpg copyright

RE: cfquery param vs

2006-02-14 Thread Andy Matthews
-Talk Subject: cfquery param vs N'#address#', over this: Is there a performance gain? How does CF handle this differently? Does cfqueryparam behave the same in 5,6 and 7? Does SQL do anything differently? Any general points would also be grateful. I am just trying to understand the dif

RE: cfquery param vs

2006-02-13 Thread Dave Watts
> Thanks for the info so far guys, useful links too. > > I believe there is some sort of difference if you are using > Unicode, but I havent been able to put my finger on it - any > info on that side of things? Specifying Unicode hints simply tells the database to treat a string as a Unicode va

Re: cfquery param vs

2006-02-13 Thread Duncan
Thanks for the info so far guys, useful links too. I believe there is some sort of difference if you are using Unicode, but I havent been able to put my finger on it - any info on that side of things? On 2/14/06, Dave Watts <[EMAIL PROTECTED]> wrote: > > What is the difference of doing this: > >

RE: cfquery param vs

2006-02-13 Thread Dave Watts
> What is the difference of doing this: > > N'#address#', > > over this: > > They're not comparable at all. The CFQUERYPARAM tag builds a prepared statement and uses a bind parameter for your value. > Is there a performance gain? Generally, prepared statements execute faster than plain ol' p

Re: cfquery param vs

2006-02-13 Thread Barney Boisvert
There is a theoretical performance gain, because the DB server can cache they query plan, and just plug in differing values for different queries. However, the more important benefit is SQL injection protection. To my knowledge the behaviour hasn't changed between 5 and 7, but I could be wrong.

cfquery param vs

2006-02-13 Thread Duncan
What is the difference of doing this: N'#address#', over this: Is there a performance gain? How does CF handle this differently? Does cfqueryparam behave the same in 5,6 and 7? Does SQL do anything differently? Any general points would also be grateful. I am just trying to understand the dif

cfquery results attribute execution time question

2005-12-02 Thread Ryan Guill
Hey guys, Would those of you that are using my qbrowser on cf 7 check something out for me? When you execute a query using the qbrowser on cf 7, it takes the results attribute and then uses it to display the execution time of the query when it shows the results. But if you turn on debugging, the

Re: cfquery result=""

2005-11-30 Thread Ryan Guill
Thats what I figured. Thanks for checking for me though. On 11/30/05, Kerry <[EMAIL PROTECTED]> wrote: > 6.1 says: > Attribute validation error for tag CFQUERY. > The tag does not allow the attribute(s) RESULT > > -Original Message- > From: Ryan Guill [mailto:

RE: cfquery result=""

2005-11-30 Thread Kerry
6.1 says: Attribute validation error for tag CFQUERY. The tag does not allow the attribute(s) RESULT -Original Message- From: Ryan Guill [mailto:[EMAIL PROTECTED] Sent: 30 November 2005 14:11 To: CF-Talk Subject: cfquery result="" This is probably a dumb question, but I'

RE: cfquery result=""

2005-11-30 Thread Robertson-Ravo, Neil (RX)
It will fail in 6.1 - it is 7 only AFAIK. -Original Message- From: Ryan Guill [mailto:[EMAIL PROTECTED] Sent: 30 November 2005 14:11 To: CF-Talk Subject: cfquery result="" This is probably a dumb question, but I'll ask just to make sure. Does someone have a 6.1 bo

cfquery result=""

2005-11-30 Thread Ryan Guill
This is probably a dumb question, but I'll ask just to make sure. Does someone have a 6.1 box they can test something on for me? I just want to know if you have a cfquery tag with a result attribute if it will fail on 6.1? Im sure it will, but it would be awesome if it didn't...

Re: Philosophy Q: SP's or CFQUERY?

2005-10-31 Thread George Abraham
I do second the "too lazy to write SQL code if I don't have to." I have recently had the luxury of having in my team a person who is more DB-aware than I am. So now I just write library CFCs that have functions that call the SPs. Periodically when I see that there is a one-off query that really doe

RE: Philosophy Q: SP's or CFQUERY?

2005-10-31 Thread Robertson-Ravo, Neil (RX)
to write...as like most, I am just too damn lazy to code more than I have to ;-) -Original Message- From: Dave Watts To: CF-Talk Sent: 31/10/2005 16:50 Subject: RE: Philosophy Q: SP's or CFQUERY? > This is through experience; try and run some CPU intensive > processes and see

<    1   2   3   4   5   6   7   8   9   10   >