Click here to Skip to main content
15,913,685 members
Home / Discussions / C#
   

C#

 
Questionproviding sql database with you're application install for customer side Pin
spiritboy17-Jan-09 21:14
spiritboy17-Jan-09 21:14 
AnswerRe: providing sql database with you're application install for customer side Pin
Wendelius17-Jan-09 21:55
mentorWendelius17-Jan-09 21:55 
GeneralRe: providing sql database with you're application install for customer side Pin
spiritboy17-Jan-09 22:07
spiritboy17-Jan-09 22:07 
GeneralRe: providing sql database with you're application install for customer side Pin
Wendelius17-Jan-09 22:16
mentorWendelius17-Jan-09 22:16 
AnswerRe: providing sql database with you're application install for customer side Pin
WritinCode18-Jan-09 0:14
WritinCode18-Jan-09 0:14 
QuestionHow do I draw the image of a 'System.Windows.Form.Control' instance onto another Form Pin
astibich217-Jan-09 15:15
astibich217-Jan-09 15:15 
AnswerRe: How do I draw the image of a 'System.Windows.Form.Control' instance onto another Form Pin
S. Senthil Kumar17-Jan-09 19:51
S. Senthil Kumar17-Jan-09 19:51 
Questionvisual studio 2005 c# inserting SP Pin
Montypythons17-Jan-09 12:53
Montypythons17-Jan-09 12:53 
Hi i am using sql server 2005 and visual studio 2005 and have come up aganist
a break wall for inputing a insert statement from sql server 2005. below is
my stored procedure and my c# visual studio code. i am new to this so any
help would be very helpful.

THis is My SP

USE [PostBook] GO /* Object: StoredProcedure [dbo].[CreateNewPost] Script
Date: 01/17/2009 15:36:15 */ SET ANSINULLS ON GO SET QUOTEDIDENTIFIER ON GO
-- ============================================= -- Author: Mark Stewart --
Create date: 09/10/2008 -- Description: New Post Item --
============================================= ALTER PROCEDURE
[dbo].[CreateNewPost] -- Add the parameters for the stored procedure here

--@DateReceived smalldatetime , @PostFrom varchar(200), @PostTo
varchar(200), @CorrespondenceDate smalldatetime, @DateForwarded
smalldatetime, @ResponseDate smalldatetime, @Summary varchar(max), @Disposal
varchar(max), @DisposalDate smalldatetime, @ReferredTo varchar (200),
@AckDate smalldatetime, @AckBy varchar (200), @InterimReply varchar (200),
@InterimDate smalldatetime, @ReplyDate smalldatetime, @BusinessArea varchar
(200), @UserID int, @ClassID int

AS

DECLARE @i AS INT BEGIN TRANSACTION SELECT @i = COALESCE(MAX(ReferenceID),
0) FROM dbo.PostBookItems WITH (TABLOCKX, HOLDLOCK) WHERE PostBookID = 1

INSERT INTO dbo.PostBookItems(PostBookID, ReferenceID, DateReceived,
PostFrom, PostTo, CorrespondenceDate, DateForwarded, ResponseDate, Summary,
Disposal, DisposalDate, ReferredTo, AckDate, AckBy, InterimReply,
InterimDate, ReplyDate, BusinessArea,ClassID,UserID,DateUpdated) VALUES(1, @i
+ 1, GETDATE(), @PostFrom, @PostTo, @CorrespondenceDate, @DateForwarded,
@ResponseDate, @Summary,
@Disposal, @DisposalDate, @ReferredTo, @AckDate, @AckBy, @InterimReply,
@InterimDate, @ReplyDate, @BusinessArea,@ClassID,@UserID,GETDATE()) COMMIT

And this is my windows form code:-

private void saveNewPostItemMenuStrip_Click(object sender, EventArgs e) {
dtPostBookItemsBindingSource.EndEdit();
taPostBookItems.CreateNewPost(dsMain.dtPostBookItems,,
Program.PostbookID,(Convert.ToInt32(postFromTextBox.Text.ToString)
(Convert.ToString(postToTextBox.Text.ToString)
correspondenceDateDateTimePicker.Value.ToShortTimeString)
dateForwardedDateTimePicker.Value.ToShortTimeString),
responseDateDateTimePicker.Value, summaryTextBox.ToString,
disposedTextBox.ToString, disposalNotesTextBox.ToString, ValueType =
Convert.ToDateTime(disposalDateDateTimePicker.Value))
referredToTextBox.ToString, ackDateDateTimePicker.Value,
ackByTextBox.ToString, interimReplyTextBox.ToString,
interimDateDateTimePicker.Value, replyDateDateTimePicker.Value,
businessAreaTextBox.ToString, classIDTextBox)));

Help please.
AnswerRe: visual studio 2005 c# inserting SP Pin
Christian Graus17-Jan-09 14:09
protectorChristian Graus17-Jan-09 14:09 
QuestionNeed help in NAPS Pin
a2usmani17-Jan-09 11:35
a2usmani17-Jan-09 11:35 
AnswerRe: Need help in NAPS Pin
Christian Graus17-Jan-09 14:14
protectorChristian Graus17-Jan-09 14:14 
GeneralRe: Need help in NAPS Pin
a2usmani18-Jan-09 3:29
a2usmani18-Jan-09 3:29 
AnswerRe: Need help in NAPS Pin
Ravi Bhavnani18-Jan-09 8:05
professionalRavi Bhavnani18-Jan-09 8:05 
QuestionC++ Structure Analysis in C#? Pin
Abydosgater17-Jan-09 8:27
Abydosgater17-Jan-09 8:27 
AnswerRe: C++ Structure Analysis in C#? Pin
Ravi Bhavnani18-Jan-09 8:08
professionalRavi Bhavnani18-Jan-09 8:08 
GeneralRe: C++ Structure Analysis in C#? Pin
Abydosgater18-Jan-09 12:12
Abydosgater18-Jan-09 12:12 
GeneralRe: C++ Structure Analysis in C#? Pin
Ravi Bhavnani18-Jan-09 12:37
professionalRavi Bhavnani18-Jan-09 12:37 
Answerservice Pin
mnssr17-Jan-09 6:33
mnssr17-Jan-09 6:33 
GeneralRe: service Pin
EliottA17-Jan-09 6:33
EliottA17-Jan-09 6:33 
GeneralRe: service Pin
TylerBrinks17-Jan-09 7:18
TylerBrinks17-Jan-09 7:18 
GeneralRe: service Pin
Colin Angus Mackay17-Jan-09 7:32
Colin Angus Mackay17-Jan-09 7:32 
GeneralRe: service Pin
EliottA17-Jan-09 7:40
EliottA17-Jan-09 7:40 
GeneralRe: service Pin
TylerBrinks17-Jan-09 17:08
TylerBrinks17-Jan-09 17:08 
GeneralRe: service Pin
Colin Angus Mackay18-Jan-09 0:30
Colin Angus Mackay18-Jan-09 0:30 
GeneralRe: service Pin
mnssr18-Jan-09 14:54
mnssr18-Jan-09 14:54 

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.