Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating Stored Procedures in TOAD

Status
Not open for further replies.

cmitsys

Technical User
Oct 31, 2003
14
0
0
Ok, let me start off by saying that I can already create a stored procedure from the MYSQL command line, what I want to figure out is how to create a stored procedure using TOAD.

I can take the exact same code I would use at the commnd line and paste that into TOAD's procedure builder, but I get an error.

Here is a sample Stored Procedure script, followed by the error. I believe I am building these procedures with the same user (root) in both the command line method and when in TOAD.

------------------
USE HWRTEST_DB;

DELIMITER //

CREATE PROCEDURE sp_settings ()
BEGIN
select * from settings;
END;
//

DELIMITER ;
------------------


ERROR:
Statusbar: 12/28/2006 11:40:29 PM: MySQL Database Error: No database selected


Anyone ever been able to use TOAD to create a stored procedure? If so can you please give me some guidance. Is tis a security issue, or something else?

Regards,
Charlie

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top