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

C#

 
AnswerRe: IDocHostUIHandler [modified] Pin
DavidAtAscent28-Feb-07 17:04
DavidAtAscent28-Feb-07 17:04 
GeneralRe: IDocHostUIHandler Pin
_80861-Mar-07 19:01
_80861-Mar-07 19:01 
QuestionIMediaEventEx.GetEvent( out code, out p1, out p2, 0 ); - Question Pin
Khoramdin28-Feb-07 13:02
Khoramdin28-Feb-07 13:02 
QuestionIcons for files added to the Deployment project ?? Pin
adamhb28-Feb-07 11:43
adamhb28-Feb-07 11:43 
QuestionHow do I communicate with a stored procedure? Pin
Vernware28-Feb-07 11:04
Vernware28-Feb-07 11:04 
AnswerRe: How do I communicate with a stored procedure? Pin
kryzchek28-Feb-07 12:54
kryzchek28-Feb-07 12:54 
GeneralRe: How do I communicate with a stored procedure? Pin
Vernware2-Mar-07 1:57
Vernware2-Mar-07 1:57 
AnswerRe: How do I communicate with a stored procedure? Pin
Ennis Ray Lynch, Jr.28-Feb-07 12:59
Ennis Ray Lynch, Jr.28-Feb-07 12:59 
See using System.Data.SqlClient;

Here is some code to play with. If you are returning a query use ExecuteReader instead.

SqlConnection connection = new SqlConnection("someConnectionString");
			SqlCommand command = new SqlCommand();
			command.Connection = connection;
			command.CommandType = System.Data.CommandType.StoredProcedure;
			command.CommandText = "stored procedure name");

			SqlParameter parameterCustomerId = command.CreateParameter();
			parameterCustomerId.DbType = System.Data.DbType.Int64;
			parameterCustomerId.Direction = System.Data.ParameterDirection.Output;
			
			command.ExecuteNonQuery();


I feel so silly, my code doesn't work!

parameterCustomerId.ParameterName = "@customerId";
command.Parameters.Add(parameterCustomerId);

needs to be added before the execute.



File Not Found

GeneralRe: How do I communicate with a stored procedure? Pin
Vernware2-Mar-07 1:56
Vernware2-Mar-07 1:56 
QuestionDate Conversion Pin
mrarunks28-Feb-07 10:38
mrarunks28-Feb-07 10:38 
AnswerRe: Date Conversion Pin
Christian Graus28-Feb-07 10:41
protectorChristian Graus28-Feb-07 10:41 
AnswerRe: Date Conversion Pin
Scott Dorman28-Feb-07 14:16
professionalScott Dorman28-Feb-07 14:16 
GeneralRe: Date Conversion Pin
mrarunks1-Mar-07 11:21
mrarunks1-Mar-07 11:21 
GeneralRe: Date Conversion Pin
Scott Dorman1-Mar-07 15:57
professionalScott Dorman1-Mar-07 15:57 
GeneralRe: Date Conversion Pin
mrarunks2-Mar-07 2:53
mrarunks2-Mar-07 2:53 
GeneralRe: Date Conversion Pin
mrarunks2-Mar-07 3:32
mrarunks2-Mar-07 3:32 
GeneralRe: Date Conversion Pin
Scott Dorman2-Mar-07 4:20
professionalScott Dorman2-Mar-07 4:20 
QuestionHELP :( Pin
İsmail Durmaz28-Feb-07 10:36
İsmail Durmaz28-Feb-07 10:36 
Questioncircle shapes Pin
md_refay28-Feb-07 10:29
md_refay28-Feb-07 10:29 
AnswerRe: circle shapes Pin
Christian Graus28-Feb-07 10:39
protectorChristian Graus28-Feb-07 10:39 
QuestionWindows Service in C#.Net 2.0, moving files from directory Pin
adnanrafiq28-Feb-07 10:05
adnanrafiq28-Feb-07 10:05 
AnswerRe: Windows Service in C#.Net 2.0, moving files from directory Pin
gus_br28-Feb-07 18:36
gus_br28-Feb-07 18:36 
GeneralRe: Windows Service in C#.Net 2.0, moving files from directory Pin
adnanrafiq28-Feb-07 18:54
adnanrafiq28-Feb-07 18:54 
GeneralRe: Windows Service in C#.Net 2.0, moving files from directory Pin
gus_br1-Mar-07 1:17
gus_br1-Mar-07 1:17 
QuestionHow to diplay web page inside another web page window? Pin
cebyrjoe228-Feb-07 9:27
cebyrjoe228-Feb-07 9:27 

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.