tags:

views:

243

answers:

1

How do I create a stored procedure for mysql using VB .NET programmatically?

EDIT:

Apologize to be so brief. I have tried using ExecuteNonQuery provided by MySQL .NET Connector. It prompts me error. Maybe it's because I put "Delimiter $$"?

I know I can create using script (batch file) if I want to send it to my client (as commented below). But my objective is to keep MySQL password safe. So script is not the way.

+1  A: 
  1. Connect to the database.
  2. Run the create procedure SQL command using ExecuteNonQuery
Jeremy Stein
Eh.. It gives me error. I believe it's due to "Delimiter $$". Or did I just do it wrong?
henry
Don't use the `Delimiter` command.
Jeremy Stein