Re: SQL task and iterating over results

2011-11-23 Thread montechristos
And the code is like this: select ID from OPERATIONPLANHEADER

Re: SQL task and rowcountproperty

2011-10-25 Thread Andy Stevens
On 4 August 2011 09:20, Miras Bastien wrote: > I'm trying to use the rowcountproperty parameter in the sql task. > > My ant code looks like: >                             driver="oracle.jdbc.driver.OracleDriver" >                             url=" jdbc:oracle:thin:@localhost:11522:TINSTA" >      

Re: SQl task error - A ? placed at beginning of lines of sql file

2010-01-13 Thread Antoine Levy Lambert
Hi, I would think that the bugger here is the "commit;" line. I think commit is something that the SQL task can do for you. Regards, Antoine mtbvang wrote: Removing the "SET FOREIGN_KEY_CHECKS=0" resolved the issue in my create table statement. Now I'm getting pretty much the same error in m

Re: SQl task error - A ? placed at beginning of lines of sql file

2010-01-12 Thread mtbvang
Removing the "SET FOREIGN_KEY_CHECKS=0" resolved the issue in my create table statement. Now I'm getting pretty much the same error in my insert test data script. The strange thing is, when I embed this sql between the tags it runs, but when I specify a file using the src attribute of transaction

Re: SQl task error - A ? placed at beginning of lines of sql file

2010-01-12 Thread mtbvang
Thanks Antoine, that was it. It was a no brainer that I didn't see. Much appreciated. Vang mtbvang wrote: > > Hi, > > I am getting the following error when using the > /mysql-connector-java-5.1.10-bin.jar in an Ant 1.7 SQL task. For some > reason a ? is being placed at the beginning of my com

Re: SQl task error - A ? placed at beginning of lines of sql file

2010-01-12 Thread Antoine Levy-Lambert
Hello, maybe "SET FOREIGN_KEY_CHECKS=0" is not valid for a JDBC connection. There are some vendor specific SQL instructions which are not valid inside JDBC. The ant sql task is a wrapper around JDBC. Maybe the task would need to be extended somehow to allow this kind of settings. Regards, Ant

Re: sql task truncating utf8 input

2008-04-08 Thread Alex Miller
When I populate the database manually from the command line using: mysql -uroot -p mydb < mydb.sql ...everything works as it should. The value is not truncated as it is when run by Ant. This leads me to believe it is caused by Ant or Java. Thanks, Alex On Tue, 2008-04-08 at 12:16 -0500, David

Re: SQL task and resource collections ...

2008-02-27 Thread Matt Benson
--- John Shott <[EMAIL PROTECTED]> wrote: > Matt: > > Thanks for your quick response ... I had been > unaware of the > task/condition and will begin > reading up on it > immediately as that is clearly a useful feature in > cases such as this one. > > I particularly appreciate the fact that y

Re: SQL task and resource collections ...

2008-02-26 Thread John Shott
Matt: Thanks for your quick response ... I had been unaware of the task/condition and will begin reading up on it immediately as that is clearly a useful feature in cases such as this one. I particularly appreciate the fact that you and Steve have both taken the time to look into my particu

RE: SQL task and resource collections ...

2008-02-26 Thread Chun Ji
: SQL task and resource collections ... Steve: Thanks for your informative response and your suspicion that I may have a problem with the size() of my fileset. Since I can't seem to find a simple method of trying to test the size of my fileset, in advance of my call of the sql task, I&#

Re: SQL task and resource collections ...

2008-02-26 Thread Matt Benson
--- Matt Benson <[EMAIL PROTECTED]> wrote: > Pardon the top post, all. > > We have had trouble here and there with the > difference > between "no resources specified" (an error to be > reported) and "no resources found" (usu. ignore and > continue). This sounds like that kind of situation > and

Re: SQL task and resource collections ...

2008-02-26 Thread Matt Benson
Pardon the top post, all. We have had trouble here and there with the difference between "no resources specified" (an error to be reported) and "no resources found" (usu. ignore and continue). This sounds like that kind of situation and I will try to look into it. As for your question about an e

Re: SQL task and resource collections ...

2008-02-26 Thread John Shott
Steve: Thanks for your informative response and your suspicion that I may have a problem with the size() of my fileset. Since I can't seem to find a simple method of trying to test the size of my fileset, in advance of my call of the sql task, I've now tried to modify my target to first crea

Re: SQL task and resource collections ...

2008-02-26 Thread Steve Loughran
John Shott wrote: Ant community: I'm trying to upgrade my build.xml to be ant 1.7.0 compatible and seem to be stumbling on changes in the SQL task related to resource collections. I have been trying: keepformat="true" delimiter="/" escapeprocessing="false" print="true"

Re: SQL task - creating tablespace in Oracle problem

2006-08-31 Thread Antoine Levy-Lambert
Hello, sorry, this is not an Ant problem at all. Look for an Oracle mailing list. Regards, Antoine Original-Nachricht Datum: Thu, 31 Aug 2006 06:52:34 -0700 (PDT) Von: Angus Rose <[EMAIL PROTECTED]> An: user@ant.apache.org Betreff: SQL task - creating tablespace in Oracle prob

RE: SQL task - how to set collation (working with MySQL)

2006-06-27 Thread Keith Hatton
t: 27 June 2006 17:49 To: Ant Users List Subject: RE: SQL task - how to set collation (working with MySQL) Sure. If I use the console for example, I use: mysql -u[user] -p[password] --default-character-set=[charset] This causes the console client to use the corresponding charset, and by that -

RE: SQL task - how to set collation (working with MySQL)

2006-06-27 Thread Eitan Gur
>-Ursprüngliche Nachricht- >Von: Eitan Gur [mailto:[EMAIL PROTECTED] >Gesendet: Dienstag, 27. Juni 2006 18:38 >An: Ant Users List >Betreff: RE: SQL task - how to set collation (working with MySQL) > >I think it is an Ant related question, as I only want to know >

RE: SQL task - how to set collation (working with MySQL)

2006-06-27 Thread Eitan Gur
I think it is an Ant related question, as I only want to know how to tell Ant to use a specific collation - I know how to do this in other clients. For me, Ant is just another client, and I would like to specify a parameter... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PR

RE: SQL task output encoding

2006-05-04 Thread Keith Hatton
coding=xxx on the command line to force the default encoding, if required. Hope this helps Keith -Original Message- From: Patrick Martin [mailto:[EMAIL PROTECTED] Sent: 04 May 2006 15:41 To: Ant User Subject: Re: SQL task output encoding I might be wrong on this: >>>>&g

Re: SQL task output encoding

2006-05-04 Thread Patrick Martin
I might be wrong on this: Java Reader and Writer always use Unicode by default On 5/4/06, Patrick Martin <[EMAIL PROTECTED]> wrote: Hello, I'd like to know which encoding is used by the SQL task when outputing to a file. I believe it is unicode but I need to be sure... has an encoding attri

RE: SQL Task: errors loading oracle Packages that contain stored procedures.

2006-03-19 Thread vikram shevde
Thanks for your tip...will try that for sure. Regards, Vik. From: "Anderson, Rob (Global Trade)" <[EMAIL PROTECTED]> Reply-To: "Ant Users List" To: "Ant Users List" Subject: RE: SQL Task: errors loading oracle Packages that contain stored procedures. D

Re: SQL Task: errors loading oracle Packages that contain stored procedures.

2006-03-19 Thread Andrew Goktepe
You could also try the task available from Incanto: http://incanto.sourceforge.net/usage-sqlplus.html -Andrew On 3/17/06, Anderson, Rob (Global Trade) <[EMAIL PROTECTED]> wrote: > > Those statements... > @ggov_applications.spc > @ggov_applications.bdy > > are not standard sql, they are specific

RE: SQL Task: errors loading oracle Packages that contain stored procedures.

2006-03-17 Thread Anderson, Rob (Global Trade)
Those statements... @ggov_applications.spc @ggov_applications.bdy are not standard sql, they are specific to oracle's sqlplus. IMHO, Your best option is to create a fileset, then run each file through the sql task using the task from ant-contrib. -Rob Anderson > -Original Message- > Fr

RE: sql task

2006-03-17 Thread Anderson, Rob (Global Trade)
I'm a little grumpy today. I apologize. -Rob A > -Original Message- > From: Matt Benson [mailto:[EMAIL PROTECTED] > Sent: Friday, March 17, 2006 11:41 AM > To: Ant Users List > Subject: RE: sql task > > --- "Anderson, Rob (Global Trade)" > <[EM

RE: sql task

2006-03-17 Thread Matt Benson
--- "Anderson, Rob (Global Trade)" <[EMAIL PROTECTED]> wrote: > First of all, posting the same question several > times is annoying. Try > not to do that. Didn't annoy me at all--I saw the same subject several times in a row from the same poster, and deleted every one without reading any of them.

RE: sql task

2006-03-17 Thread Anderson, Rob (Global Trade)
First of all, posting the same question several times is annoying. Try not to do that. It looks like the first thing you tried should have worked. Are you using the right Driver? My sql tasks use the Oracle driver that is in ojdbc14.jar. Also, try putting the jar file in $ANT_HOME/lib rather than

RE: sql task

2006-03-17 Thread Mike Miller
Shouldn't the last entry you tried be jdbc:oracle:thin:@localhost:1521:harshal and not jdbc:oracle:thin:@localhosthost:1521:harshal with 2 host -Original Message- From: Harshal Chavda [mailto:[EMAIL PROTECTED] Sent: Friday, March 17, 2006 11:23 AM To: user@ant.apache.org Subject: sql ta

RE: sql task sp_dboptions problem

2005-08-25 Thread RADEMAKERS Tanguy
/t >-Original Message- >From: Rizwan Merchant [mailto:[EMAIL PROTECTED] >Sent: Thursday, August 25, 2005 9:28 PM >To: 'Ant Users List' >Subject: RE: sql task sp_dboptions problem > >Hmmm...that looks like a good idea. Thanks... > >-Original Messag

RE: sql task sp_dboptions problem

2005-08-25 Thread Rizwan Merchant
Hmmm...that looks like a good idea. Thanks... -Original Message- From: RADEMAKERS Tanguy [mailto:[EMAIL PROTECTED] Sent: Thursday, August 25, 2005 3:06 PM To: Ant Users List Subject: RE: sql task sp_dboptions problem we... (more than one way to skin a cat) if the

RE: sql task sp_dboptions problem

2005-08-25 Thread RADEMAKERS Tanguy
ng about selectively executing only some parts of the file, but it would get messy quite quick! /t >-Original Message- >From: Rizwan Merchant [mailto:[EMAIL PROTECTED] >Sent: Thursday, August 25, 2005 9:00 PM >To: 'Ant Users List' >Subject: RE: sql task sp_dboptio

RE: sql task sp_dboptions problem

2005-08-25 Thread Rizwan Merchant
2005 2:51 PM To: Ant Users List Subject: RE: sql task sp_dboptions problem wouldn't this work? >-Original Message- >From: Moran Ben-David [mailto:[EMAIL PROTECTED] >Sent: Thursday, August 25, 2005 8:43 PM >To: 'Ant Users List' >Subject: RE: sql task s

RE: sql task sp_dboptions problem

2005-08-25 Thread RADEMAKERS Tanguy
wouldn't this work? >-Original Message- >From: Moran Ben-David [mailto:[EMAIL PROTECTED] >Sent: Thursday, August 25, 2005 8:43 PM >To: 'Ant Users List' >Subject: RE: sql task sp_dboptions problem > >Sorry Razwan, > >I am not familiar w

RE: sql task sp_dboptions problem

2005-08-25 Thread Rizwan Merchant
... -Original Message- From: Moran Ben-David [mailto:[EMAIL PROTECTED] Sent: Thursday, August 25, 2005 2:43 PM To: 'Ant Users List' Subject: RE: sql task sp_dboptions problem Sorry Razwan, I am not familiar with the task enough to help you on that. However, one thing I can suggest is th

RE: sql task sp_dboptions problem

2005-08-25 Thread Moran Ben-David
DROP DATABASE ${the.database.i.wanted.to.pass}; Moran > -Original Message- > From: Rizwan Merchant [mailto:[EMAIL PROTECTED] > Sent: Thursday, August 25, 2005 1:47 PM > To: 'Ant Users List' > Subject: RE: sql task sp_dboptions problem > > > Hi Moran,

RE: sql task sp_dboptions problem

2005-08-25 Thread Rizwan Merchant
From: Moran Ben-David [mailto:[EMAIL PROTECTED] Sent: Thursday, August 25, 2005 12:14 PM To: 'Ant Users List' Subject: RE: sql task sp_dboptions problem Sounds like you're issue is with the SQL Server connection properties. Query Analyzer tends to have different defaults for the con

RE: sql task sp_dboptions problem

2005-08-25 Thread Moran Ben-David
Sounds like you're issue is with the SQL Server connection properties. Query Analyzer tends to have different defaults for the connection settings than your Ant initiated connections. Look up the error in a sql site like "www.sqlmag.com", I'm sure there will be an explanation like set AutoCommit o

RE: SQL task and the delimiter and 1.6.2.

2005-01-03 Thread Anderson, Rob (Global Trade)
Don't worry about it. Everyone makes mistakes. Glad to hear you have it working now. -Rob Anderson > -Original Message- > From: news [mailto:[EMAIL PROTECTED] Behalf Of > [EMAIL PROTECTED] > Sent: Monday, January 03, 2005 6:11 AM > To: user@ant.apache.org > Subjec

Re: SQL task and the delimiter and 1.6.2.

2005-01-03 Thread galenboyerdev
locally unidentified bug prompting me to ask this group for help. -- Galen > > > -Original Message- > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > > Sent: Thursday, December 30, 2004 12:39 PM > > To: Ant Users List &g

RE: SQL task and the delimiter and 1.6.2.

2004-12-30 Thread Anderson, Rob (Global Trade)
Send the relevant portion of your build.xml. -Rob A > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Thursday, December 30, 2004 12:39 PM > To: Ant Users List > Subject: Re: SQL task and the delimiter and 1.6.2. > > > &quo

Re: SQL task and the delimiter and 1.6.2.

2004-12-30 Thread galenboyerdev
gt; > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > > Sent: Thursday, December 30, 2004 11:57 AM > > To: Ant Users List > > Subject: Re: SQL task and the delimiter and 1.6.2. > > > > > > Okay, > > > > I'm havi

RE: SQL task and the delimiter and 1.6.2.

2004-12-30 Thread Anderson, Rob (Global Trade)
In this case your delimiter is "go". -Rob Anderson > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Thursday, December 30, 2004 11:57 AM > To: Ant Users List > Subject: Re: SQL task and the delimiter and 1.6.2. > > > O

Re: SQL task and the delimiter and 1.6.2.

2004-12-30 Thread galenboyerdev
Okay, I'm having the same type of issue with SQLServer. I've mucked around with different combinations of delimiters but two statements in the same file being executed against SQLServer seem to fail. create view dbo.t1_v1 as select * from t1 go create view dbo.t1_v2 as select * from

RE: Sql task and property

2004-12-30 Thread Jacob, Anil - MWT
That makes perfect sense, I was able to send the o/p to a file now I just need to filter and load the file. Thanks Rob. ANil -Original Message- From: Anderson, Rob (Global Trade) [mailto:[EMAIL PROTECTED] Sent: Thursday, December 30, 2004 11:46 AM To: Ant Users List Subject: RE: Sql

RE: Sql task and property

2004-12-30 Thread Anderson, Rob (Global Trade)
Anil, You may be able to accomplish what you need by using the output attribute of the task to specify an output file for the sql statement, then use the task to load the value contained in the output file into a property, then use the ant-contrib task to test the value of the property. -Rob

Re: Sql task and property

2004-12-30 Thread galenboyerdev
"Jacob, Anil - MWT" <[EMAIL PROTECTED]> writes: > I have an sql task which checks the records in 3 tables. Is there a way > I can set a property if the value in any of the tables is > 0? This > property will be used for other tasks. > > Anil Here is the path I would try: The ant-contrib has a m

Re: SQL task and the delimiter and 1.6.2.

2004-12-30 Thread galenboyerdev
"Velagapudi, Murali" <[EMAIL PROTECTED]> writes: > try with delimiter="/" and replace ; with / > it works fine for me on oracle. Arghh!!! No sooner did I send the message than I found it out. But no matter. I truly appreciate the reply. -- Galen Boyer -

RE: SQL task and the delimiter and 1.6.2.

2004-12-30 Thread Velagapudi, Murali
try with delimiter="/" and replace ; with / it works fine for me on oracle. thanks, Murali -Original Message- From: news [mailto:[EMAIL PROTECTED] Behalf Of [EMAIL PROTECTED] Sent: Thursday, December 30, 2004 1:52 PM To: user@ant.apache.org Subject: SQL task and the delimiter and 1.6.2.

Re: Sql Task -- quote marks

2004-04-05 Thread Jack J. Woehr
"Anderson, Rob (Global Trade)" wrote: > Try setting the escapeprocessing attribute to false. This I already did on your previous recommendation. -- Jack J. Woehr # We have gone from the horse and buggy Senior Consultant # to the moon rocket in one lifetime, but Purematrix, Inc. # there h

RE: Sql Task -- quote marks

2004-04-05 Thread Anderson, Rob (Global Trade)
Try setting the escapeprocessing attribute to false. -Rob Anderson > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Monday, April 05, 2004 4:27 PM > To: Ant Users List > Subject: Re: Sql Task -- quote marks > > > Bill Rich wrote

Re: Sql Task -- quote marks

2004-04-05 Thread Jack J. Woehr
Bill Rich wrote: > If your problem with the quote marks is in the ant script you can use "e; No, it's in a separate .sql file ... -- Jack J. Woehr # We have gone from the horse and buggy Senior Consultant # to the moon rocket in one lifetime, but Purematrix, Inc. # there has not been a c