on 07-07-2008 8:55 AM
Hi,
How can I execute the whole SQL script in one query template itself like
create table table1..
/
alter table table1..
/
create table table2..
/
....
I mean running more than one SQL statements in a single Query template.
Thanks,
Anil
Hi Anil,
Create a stored procedure in the database and execute it using a fixed query.
Hope that helps.
Regards,
Musarrat Husain
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Anil,
Use Command mode and not FixedQuery, since your query does not return a valid dataset. FixedQueryWithOutput, which was incorrectly mentioned in an earlier post, is only relevant for Oracle when the query returns a cursor holding the data set.
While a procedure will work for your needs, it is not exactly required. If the multi-line sql request is well formed (oracle requires BEGIN / END around the multi statements) then it should work, but if you use FixedQuery mode you will get a FatalError, even though the query was executed (this is because is does not return any dataset).
MII more or less just passes the query text through the JDBC driver to the DB on the other end for processing.
Regards,
Jeremy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In Fixed Query you write
EXECUTE STOREDPROC_NAME
'[Param.1]'
,'[Param.2]'
In my last post instead of '[Param.1]' it is showing as https://
So i replied again the samething.
Thanks,
Manisha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
13 | |
6 | |
3 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.