Click here to Skip to main content
15,890,527 members
Home / Discussions / C#
   

C#

 
GeneralRe: Stupid WinForms Pin
Ashok Dhamija6-Jun-05 18:54
Ashok Dhamija6-Jun-05 18:54 
GeneralRe: Stupid WinForms Pin
Christian Graus6-Jun-05 18:58
protectorChristian Graus6-Jun-05 18:58 
GeneralRe: Stupid WinForms Pin
Maqsood Ahmed5-Jun-05 22:16
Maqsood Ahmed5-Jun-05 22:16 
GeneralRe: Stupid WinForms Pin
Christian Graus6-Jun-05 12:20
protectorChristian Graus6-Jun-05 12:20 
GeneralRe: Stupid WinForms Pin
S. Senthil Kumar6-Jun-05 0:42
S. Senthil Kumar6-Jun-05 0:42 
GeneralRe: Stupid WinForms Pin
Christian Graus6-Jun-05 12:21
protectorChristian Graus6-Jun-05 12:21 
Generalsql stored preocedure Pin
Mohammad Daba'an5-Jun-05 20:08
Mohammad Daba'an5-Jun-05 20:08 
GeneralRe: sql stored preocedure Pin
Colin Angus Mackay5-Jun-05 20:51
Colin Angus Mackay5-Jun-05 20:51 
Surely this should have gone in the SQL / ADO.NET forum.

The SQL code is:
IF NOT EXISTS (SELECT * FROM dbo.sysobjects 
               WHERE id = OBJECT_ID(N'[dbo].[StoredProcedureName]') 
               AND OBJECTPROPERTY(id, N'IsProcedure') = 1)
CREATE PROCEDURE ....


If you need to run this through a C# application just ExecuteNonQuery() on the SqlCommand like this:
SqlCommand cmd = new SqlCommand(sqlStatement, myConnection);
cmd.ExecuteNonQuery();
The above assumes that you already have a connection and it is open. The sqlStatement is a string that contains the completed contents of the SQL code above.

Does this help?


My: Blog | Photos
WDevs.com - Open Source Code Hosting, Blogs, FTP, Mail and More


GeneralRe: sql stored preocedure Pin
Mohammad Daba'an5-Jun-05 22:51
Mohammad Daba'an5-Jun-05 22:51 
GeneralRe: sql stored preocedure Pin
Colin Angus Mackay6-Jun-05 0:28
Colin Angus Mackay6-Jun-05 0:28 
GeneralRe: sql stored preocedure Pin
Mohammad Daba'an6-Jun-05 0:44
Mohammad Daba'an6-Jun-05 0:44 
GeneralFriend Assembly Help needed... Pin
chettu5-Jun-05 19:15
chettu5-Jun-05 19:15 
GeneralRe: Friend Assembly Help needed... Pin
oykica6-Jun-05 6:57
oykica6-Jun-05 6:57 
GeneralRe: Friend Assembly Help needed... Pin
pavel.drtil26-May-10 1:18
pavel.drtil26-May-10 1:18 
GeneralMy own little lexer/parser (trouble even getting started) Pin
Insolence5-Jun-05 18:50
Insolence5-Jun-05 18:50 
QuestionHow to save Images in Mysql DataBase Through C# Pin
monica2k5-Jun-05 18:37
monica2k5-Jun-05 18:37 
AnswerRe: How to save Images in Mysql DataBase Through C# Pin
Christian Graus5-Jun-05 18:39
protectorChristian Graus5-Jun-05 18:39 
GeneralRe: How to save Images in Mysql DataBase Through C# Pin
monica2k5-Jun-05 19:07
monica2k5-Jun-05 19:07 
AnswerRe: How to save Images in Mysql DataBase Through C# Pin
pubududilena5-Jun-05 22:35
pubududilena5-Jun-05 22:35 
GeneralRe: How to save Images in Mysql DataBase Through C# Pin
monica2k6-Jun-05 13:57
monica2k6-Jun-05 13:57 
QuestionCustom Repeater or something else? Pin
methodincharge5-Jun-05 16:52
methodincharge5-Jun-05 16:52 
AnswerRe: Custom Repeater or something else? Pin
Christian Graus5-Jun-05 16:54
protectorChristian Graus5-Jun-05 16:54 
GeneralRe: Custom Repeater or something else? Pin
methodincharge5-Jun-05 17:12
methodincharge5-Jun-05 17:12 
GeneralRe: Custom Repeater or something else? Pin
Christian Graus5-Jun-05 17:17
protectorChristian Graus5-Jun-05 17:17 
GeneralDisplay Application Names from Active Directory Group Policy Management Console using vb.net or C#.net Pin
Member 16715325-Jun-05 16:04
Member 16715325-Jun-05 16:04 

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.