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

C#

 
GeneralRe: Float Data Type Pin
Andrei Ungureanu8-Oct-07 4:58
Andrei Ungureanu8-Oct-07 4:58 
AnswerRe: Float Data Type Pin
Dan Neely8-Oct-07 4:52
Dan Neely8-Oct-07 4:52 
GeneralRe: Float Data Type Pin
Imran Adam8-Oct-07 4:58
Imran Adam8-Oct-07 4:58 
GeneralRe: Float Data Type Pin
Anthony Mushrow8-Oct-07 5:06
professionalAnthony Mushrow8-Oct-07 5:06 
AnswerRe: Float Data Type Pin
Pete O'Hanlon8-Oct-07 5:10
mvePete O'Hanlon8-Oct-07 5:10 
Questioncheck if record exist in a database C# sql 2005 Pin
Gazide8-Oct-07 4:02
Gazide8-Oct-07 4:02 
AnswerRe: check if record exist in a database C# sql 2005 Pin
Andrei Ungureanu8-Oct-07 4:18
Andrei Ungureanu8-Oct-07 4:18 
GeneralRe: check if record exist in a database C# sql 2005 Pin
ffowler8-Oct-07 5:49
ffowler8-Oct-07 5:49 
Additional to what Andrei submitted, you could check the return value from your stored procedure to see if the record exists. For example in your SP you could use:

IF EXISTS(Select Pinfo from
Where Pinfo = @info)Begin
RETURN 2
END
Else
BEGIN
<insert stuff="" here.......="">
END

If the return value is 2 then you know the record exists. Check out SQLParameters and ParameterDirection.ReturnValue for help.

HTH

F

QuestionOnline Verification Pin
Nokoff8-Oct-07 4:00
Nokoff8-Oct-07 4:00 
AnswerRe: Online Verification Pin
il_masacratore8-Oct-07 4:16
il_masacratore8-Oct-07 4:16 
GeneralRe: Online Verification Pin
Nokoff8-Oct-07 4:34
Nokoff8-Oct-07 4:34 
GeneralRe: Online Verification Pin
Andrei Ungureanu8-Oct-07 4:42
Andrei Ungureanu8-Oct-07 4:42 
GeneralRe: Online Verification Pin
Nokoff8-Oct-07 4:54
Nokoff8-Oct-07 4:54 
GeneralRe: Online Verification Pin
Andrei Ungureanu8-Oct-07 5:02
Andrei Ungureanu8-Oct-07 5:02 
QuestionDataGridView Selections Pin
ffowler8-Oct-07 3:59
ffowler8-Oct-07 3:59 
AnswerRe: DataGridView Selections Pin
Anthony Mushrow8-Oct-07 4:05
professionalAnthony Mushrow8-Oct-07 4:05 
AnswerRe: DataGridView Selections Pin
Andrei Ungureanu8-Oct-07 4:07
Andrei Ungureanu8-Oct-07 4:07 
GeneralRe: DataGridView Selections Pin
ffowler8-Oct-07 4:15
ffowler8-Oct-07 4:15 
GeneralRe: DataGridView Selections Pin
Andrei Ungureanu8-Oct-07 4:22
Andrei Ungureanu8-Oct-07 4:22 
GeneralRe: DataGridView Selections Pin
ffowler8-Oct-07 5:39
ffowler8-Oct-07 5:39 
QuestionReflection Pin
karoitay8-Oct-07 3:49
karoitay8-Oct-07 3:49 
AnswerRe: Reflection Pin
Judah Gabriel Himango8-Oct-07 4:31
sponsorJudah Gabriel Himango8-Oct-07 4:31 
GeneralThanks Pin
karoitay8-Oct-07 5:29
karoitay8-Oct-07 5:29 
AnswerRe: Reflection Pin
Pete O'Hanlon8-Oct-07 4:32
mvePete O'Hanlon8-Oct-07 4:32 
GeneralRe: Reflection Pin
karoitay8-Oct-07 5:27
karoitay8-Oct-07 5: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.