Click here to Skip to main content
16,004,924 members
Home / Discussions / C#
   

C#

 
GeneralRe: error handling in C# Pin
Mridang Agarwalla26-Mar-06 4:35
Mridang Agarwalla26-Mar-06 4:35 
QuestionWhy does this string not work? Pin
KaKa'26-Mar-06 3:55
KaKa'26-Mar-06 3:55 
AnswerRe: Why does this string not work? Pin
Guffa26-Mar-06 4:23
Guffa26-Mar-06 4:23 
GeneralRe: Why does this string not work? Pin
KaKa'26-Mar-06 13:31
KaKa'26-Mar-06 13:31 
GeneralRe: Why does this string not work? Pin
Christian Graus26-Mar-06 13:45
protectorChristian Graus26-Mar-06 13:45 
AnswerRe: Why does this string not work? Pin
Guffa27-Mar-06 0:11
Guffa27-Mar-06 0:11 
QuestionRunning Sql Script From C#? Pin
majidbhutta26-Mar-06 3:43
majidbhutta26-Mar-06 3:43 
AnswerRe: Running Sql Script From C#? Pin
Colin Angus Mackay26-Mar-06 3:53
Colin Angus Mackay26-Mar-06 3:53 
majidbhutta wrote:
I want to make this script a Stored Procedure so as i may be able to call it from my Application


You don't have to make a SQL Script a Stored procedure in order to run if from a C# application. Any SQL can be put in the CommandText propery of a SqlCommand.

majidbhutta wrote:
Should i be to remove all go Statements or anything else in sql Script.


The GO is not SQL. It is a pre-processor command to Query Analyzer to tell it where to split the script into batches.

When Query Analyzer encounters a GO while processing CREATE PROCEDURE statment it treats it as the end of the stored procedure. Everything after the GO will be in a new batch and not the stored procedure - That is likely to be the cause of the error.

ColinMackay.net
Scottish Developers are looking for speakers for user group sessions over the next few months. Do you want to know more?

QuestionAn attempt was made to load a program with an incorrect format Pin
Colin Angus Mackay26-Mar-06 2:05
Colin Angus Mackay26-Mar-06 2:05 
AnswerRe: An attempt was made to load a program with an incorrect format [SOLVED] Pin
Colin Angus Mackay27-Mar-06 9:17
Colin Angus Mackay27-Mar-06 9:17 
QuestionGrid computing Pin
Mridang Agarwalla26-Mar-06 0:00
Mridang Agarwalla26-Mar-06 0:00 
AnswerRe: Grid computing Pin
Guffa26-Mar-06 1:17
Guffa26-Mar-06 1:17 
QuestionAnother small listview problem Pin
Mridang Agarwalla25-Mar-06 23:50
Mridang Agarwalla25-Mar-06 23:50 
AnswerRe: Another small listview problem Pin
Stefan Troschuetz25-Mar-06 23:54
Stefan Troschuetz25-Mar-06 23:54 
GeneralRe: Another small listview problem Pin
Mridang Agarwalla26-Mar-06 0:13
Mridang Agarwalla26-Mar-06 0:13 
AnswerRe: Another small listview problem Pin
Ravi Bhavnani26-Mar-06 5:01
professionalRavi Bhavnani26-Mar-06 5:01 
QuestionCreating and placing controls on runtime and referencing via SQL string Pin
fracalifa25-Mar-06 23:04
fracalifa25-Mar-06 23:04 
QuestionImage properties Pin
valiovalio25-Mar-06 22:46
valiovalio25-Mar-06 22:46 
AnswerRe: Image properties Pin
Guffa25-Mar-06 23:56
Guffa25-Mar-06 23:56 
GeneralRe: Image properties Pin
valiovalio26-Mar-06 2:05
valiovalio26-Mar-06 2:05 
Questionresizing a button thru mouse???????? Pin
rani baji25-Mar-06 22:20
rani baji25-Mar-06 22:20 
QuestionC# and Inheritance Pin
hung_ngole25-Mar-06 22:00
hung_ngole25-Mar-06 22:00 
AnswerRe: C# and Inheritance Pin
Guffa26-Mar-06 0:10
Guffa26-Mar-06 0:10 
QuestionHow to draw text in Standard mode in CF? Pin
pmasknguyen25-Mar-06 21:48
pmasknguyen25-Mar-06 21:48 
Questionlistview problem Pin
Mridang Agarwalla25-Mar-06 16:49
Mridang Agarwalla25-Mar-06 16:49 

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.