 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Morpheus Guest
|
Posted: Mon Apr 26, 2004 10:11 am Post subject: Stroed Procedure problem |
|
|
Whilst I am very familiar with MS SQL syntax regarding stored procedures, I
am battling with Interbase. I want to create this very simple stored proc,
using SQL Explorer, but I am having no luck:
CREATE PROCEDURE MATERIALNOTUSED (QUOTEID INTEGER) AS
BEGIN
Select
M.MaterialID,
M.Name,
M.Cost
from Material M where M.MaterialID not in (
select QM.MaterialID from QuoteMaterial QM where QM.QuoteID=:QuoteID);
END
When I attempt to create this proc, I get the following error message:
General SQL error.
Token unknown - line 8, char 68 ;
The offending token appears to be the statement terminator character which
is ;
I have tired using the set term statement to change the statement
terminator, but I get a similar error indicating that the word "term" is an
unknow token.
Can somebody please tell me what stupid thing I am doing but not seeing?
Regards,
Morpheus
|
|
| Back to top |
|
 |
Kevin Frevert Guest
|
Posted: Mon Apr 26, 2004 12:37 pm Post subject: Re: Stroed Procedure problem |
|
|
Morpheus,
I'm guessing SQL Explorer is attempting to Open the script (expecting a
result set) verses Executing the script. SQL Explorer isn't the best tool
to do manage database objects on Interbase, MSSQL or any other RDBMS. If
you need to create that stored procedure on Interbase, use it's native
management tools or use a real ISQL tool.
krf
"Morpheus" <morpheusNOPSAM (AT) redpoint (DOT) co.za> wrote
| Quote: | Can somebody please tell me what stupid thing I am doing but not seeing?
Regards,
Morpheus
|
|
|
| Back to top |
|
 |
Bill Todd (TeamB) Guest
|
Posted: Mon Apr 26, 2004 1:03 pm Post subject: Re: Stroed Procedure problem |
|
|
Please do not multipost or cross post your messages. It violates
Borland's guidelines for using their newsgroups and wastes everyone's
time. Please post one message in the most appropriate newsgroup and
please take a moment to read the newsgroup guidelines at
http://info.borland.com/newsgroups/guide.html
Answered in interbaseexpress.
--
Bill (TeamB)
(TeamB cannot respond to questions received via email)
|
|
| Back to top |
|
 |
Morpheus Guest
|
Posted: Mon Apr 26, 2004 8:15 pm Post subject: Re: Stroed Procedure problem |
|
|
Hi Bill,
Sorry, I thought that I had posted in the wrong group initially, that's why
I re-posted here. Won't happen again.
Regards,
Morpheus
"Bill Todd (TeamB)" <no (AT) no (DOT) com> wrote
| Quote: | Please do not multipost or cross post your messages. It violates
Borland's guidelines for using their newsgroups and wastes everyone's
time. Please post one message in the most appropriate newsgroup and
please take a moment to read the newsgroup guidelines at
http://info.borland.com/newsgroups/guide.html
Answered in interbaseexpress.
--
Bill (TeamB)
(TeamB cannot respond to questions received via email)
|
|
|
| Back to top |
|
 |
Morpheus Guest
|
Posted: Mon Apr 26, 2004 8:17 pm Post subject: Re: Stroed Procedure problem |
|
|
Actuall;y, no, Sql Explorer is the tool bundled with Delphi so it should
work OK with Interbase. Certainly has up until now. Anyway, I have solved
the problem. It was a syntax problem.
Regards,
Morpheus
"Kevin Frevert" <Work (AT) drinkingcoffee (DOT) com> wrote
| Quote: | Morpheus,
I'm guessing SQL Explorer is attempting to Open the script (expecting a
result set) verses Executing the script. SQL Explorer isn't the best tool
to do manage database objects on Interbase, MSSQL or any other RDBMS. If
you need to create that stored procedure on Interbase, use it's native
management tools or use a real ISQL tool.
krf
"Morpheus" <morpheusNOPSAM (AT) redpoint (DOT) co.za> wrote in message
news:408ce0be (AT) newsgroups (DOT) borland.com...
Can somebody please tell me what stupid thing I am doing but not seeing?
Regards,
Morpheus
|
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|