Click here to Skip to main content
15,885,546 members
Home / Discussions / Windows Forms
   

Windows Forms

 
GeneralRe: Not able to call the procedure. Pin
Luc Pattyn15-Apr-12 6:26
sitebuilderLuc Pattyn15-Apr-12 6:26 
GeneralRe: Not able to call the procedure. Pin
nitish_0715-Apr-12 6:30
nitish_0715-Apr-12 6:30 
AnswerRe: Not able to call the procedure. Pin
Luc Pattyn15-Apr-12 6:38
sitebuilderLuc Pattyn15-Apr-12 6:38 
AnswerRe: Not able to call the procedure. Pin
Wes Aday15-Apr-12 7:01
professionalWes Aday15-Apr-12 7:01 
GeneralRe: Not able to call the procedure. Pin
nitish_0715-Apr-12 7:17
nitish_0715-Apr-12 7:17 
AnswerRe: Not able to call the procedure. Pin
Dave Kreskowiak15-Apr-12 7:50
mveDave Kreskowiak15-Apr-12 7:50 
GeneralRe: Not able to call the procedure. Pin
nitish_0715-Apr-12 7:53
nitish_0715-Apr-12 7:53 
AnswerRe: Not able to call the procedure. Pin
Bernhard Hiller15-Apr-12 21:42
Bernhard Hiller15-Apr-12 21:42 
GeneralRe: Not able to call the procedure. Pin
nitish_0716-Apr-12 8:28
nitish_0716-Apr-12 8:28 
AnswerRe: Not able to call the procedure. Pin
Luc Pattyn16-Apr-12 8:55
sitebuilderLuc Pattyn16-Apr-12 8:55 
GeneralRe: Not able to call the procedure. Pin
nitish_0716-Apr-12 9:20
nitish_0716-Apr-12 9:20 
AnswerRe: Not able to call the procedure. Pin
karthiDebug25-Apr-12 19:11
karthiDebug25-Apr-12 19:11 
QuestionHow to create mysql stored function from c#.net Pin
nitish_0714-Apr-12 23:51
nitish_0714-Apr-12 23:51 
AnswerRe: How to create mysql stored function from c#.net Pin
Eddy Vluggen15-Apr-12 0:30
professionalEddy Vluggen15-Apr-12 0:30 
GeneralRe: How to create mysql stored function from c#.net Pin
nitish_0715-Apr-12 3:33
nitish_0715-Apr-12 3:33 
AnswerRe: How to create mysql stored function from c#.net Pin
Eddy Vluggen15-Apr-12 3:49
professionalEddy Vluggen15-Apr-12 3:49 
GeneralRe: How to create mysql stored function from c#.net Pin
nitish_0715-Apr-12 4:31
nitish_0715-Apr-12 4:31 
GeneralRe: How to create mysql stored function from c#.net Pin
nitish_0715-Apr-12 4:37
nitish_0715-Apr-12 4:37 
AnswerRe: How to create mysql stored function from c#.net Pin
Dave Kreskowiak15-Apr-12 4:45
mveDave Kreskowiak15-Apr-12 4:45 
First, using string concatentation to build a query is just plain bad practice. Especially when you are doing with with consecutive, individual characters. It makes your code impossible to read and debug accurately.

Oh, and your call to Replace is not needed at all. Using the @ character in a string to denote new lines in an SQL statement is a bad idea since SQL parameters usually start with that character.

A better method is to use String.Format:
string queryString;
queryString = String.Format("CREATE FUNCTION '{0}'.'{1}'()\nRETURNS INT\nBEGIN\nEND;", node, functionName);

Now is your code easier to read, or is mine?

GeneralRe: How to create mysql stored function from c#.net Pin
nitish_0715-Apr-12 4:58
nitish_0715-Apr-12 4:58 
QuestionSearch Box In Windows Form Pin
Anurag Sarkar14-Apr-12 19:43
Anurag Sarkar14-Apr-12 19:43 
AnswerRe: Search Box In Windows Form Pin
Richard MacCutchan14-Apr-12 21:22
mveRichard MacCutchan14-Apr-12 21:22 
QuestionRe: Search Box In Windows Form Pin
Anurag Sarkar15-Apr-12 3:20
Anurag Sarkar15-Apr-12 3:20 
AnswerRe: Search Box In Windows Form Pin
Eddy Vluggen15-Apr-12 0:25
professionalEddy Vluggen15-Apr-12 0:25 
QuestionRe: Search Box In Windows Form Pin
Anurag Sarkar15-Apr-12 3:20
Anurag Sarkar15-Apr-12 3:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.