Ask a Question related to Coldfusion Database Access, Design and Development.
-
PhilipJCaputo #1
problems with using GO
I have a query where I create a temp table, then I use the GO command to
execute the remainder of the query which accesses the temp table created....
then at the very end I have another GO and after that I drop my temp table.
(take a look at the example query)
when I copy and paste the query from the debug error message into SQL Query
Analyzer, the error message is repeated, however if in the query analyzer I put
a carriage return (press the enter key) before and after each GO, the query
runs without incident.
How does CFMX7 send queries to the SQL server? And or how can I force some
kind of carriage return character to be placed before and after each GO in my
query.
Example Query:
Select * from MyTable
Into #MyTempTable
Where something > 9 and Something < 20
GO
Insert Into ThisIsAnExistingTable ([FieldOne],[FieldTwo],[FieldThree])
Select FieldOne,FieldTwo,FieldThree
From #MyTempTable
Where FieldOne > 9
Union
Select FieldOne,FieldTwo,FieldThree
From #MyTempTable
Where FieldOne < 5
GO
Drop table #MyTempTable
PhilipJCaputo Guest
-
problems with 8.0 Rc4
I've been trying to check that my current application working on postgres 7.4 will work with 8.0. I've not checked the application yet but I'm... -
problems with preLoadNetThing and fileName (was problems with preLoadNetThing and importFileInto)
You don't want to leave the QT member in your cast when you publish your movie - it's not really there, it's linked. When you run the movie it will... -
IE6 problems
I have a login script to a website where a user logs in through a standard webform with a username and password that needs to be validated. My... -
I having problems with IIS
I just tried to view a page that I had earlier on my own personal web site and was not able to view it. I then tried just plain old localhost and... -
Why am I Having Problems ?
On 8/2/03 1:08 PM, in article 6TUWa.216121$o86.33889@news1.central.cox.net, "Spam@markris.com" <Spam@markris.com> wrote: A Relationship requires... -
mxstu #2
Re: problems with query using GO
I don't think the keyword GO is in the JDBC standards. Try using a semi-colon
at the end of each statement:
Select * from MyTable
Into #MyTempTable
Where something > 9 and Something < 20; <--- semi-colon at end of sql
statement
Insert Into ThisIsAnExistingTable ([FieldOne],[FieldTwo],[FieldThree])
Select FieldOne,FieldTwo,FieldThree
From #MyTempTable
Where FieldOne > 9
Union
Select FieldOne,FieldTwo,FieldThree
From #MyTempTable
Where FieldOne < 5 ; <--- semi-colon at end of sql statement
... etc ..
mxstu Guest
-
PhilipJCaputo #3
Re: problems with query using GO
Amazing what a little semi-colon can do!
thanks for the quick fix, it was spot on!
(back to the code)
PhilipJCaputo Guest



Reply With Quote

