BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Stroed Procedure problem

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (SQL Servers)
View previous topic :: View next topic  
Author Message
Morpheus
Guest





PostPosted: Mon Apr 26, 2004 10:11 am    Post subject: Stroed Procedure problem Reply with quote



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





PostPosted: Mon Apr 26, 2004 12:37 pm    Post subject: Re: Stroed Procedure problem Reply with 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

Quote:
Can somebody please tell me what stupid thing I am doing but not seeing?
Regards,
Morpheus





Back to top
Bill Todd (TeamB)
Guest





PostPosted: Mon Apr 26, 2004 1:03 pm    Post subject: Re: Stroed Procedure problem Reply with 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





PostPosted: Mon Apr 26, 2004 8:15 pm    Post subject: Re: Stroed Procedure problem Reply with quote

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





PostPosted: Mon Apr 26, 2004 8:17 pm    Post subject: Re: Stroed Procedure problem Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (SQL Servers) All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.