Click here to Skip to main content
15,900,511 members
Home / Discussions / Database
   

Database

 
AnswerRe: Generating script file programmatically Pin
Colin Angus Mackay1-Mar-07 4:20
Colin Angus Mackay1-Mar-07 4:20 
GeneralRe: Generating script file programmatically Pin
Saira Tanwir1-Mar-07 5:25
Saira Tanwir1-Mar-07 5:25 
Questionquery problem Pin
Saira Tanwir1-Mar-07 3:27
Saira Tanwir1-Mar-07 3:27 
AnswerRe: query problem Pin
Colin Angus Mackay1-Mar-07 4:20
Colin Angus Mackay1-Mar-07 4:20 
GeneralRe: query problem Pin
Saira Tanwir1-Mar-07 5:22
Saira Tanwir1-Mar-07 5:22 
AnswerRe: query problem Pin
Priya_20071-Mar-07 20:25
Priya_20071-Mar-07 20:25 
Questionhelp on SP (edit / insert) Pin
firestoper1-Mar-07 1:05
firestoper1-Mar-07 1:05 
AnswerRe: help on SP (edit / insert) Pin
Pete O'Hanlon1-Mar-07 1:42
mvePete O'Hanlon1-Mar-07 1:42 
It's hard to know which of the fields you are intending to define as the control. If you just want to base the check on the message title, then the following will suffice:

IF Exists (SELECT MessageID FROM Message
  WHERE MessageTitle = @Title)
BEGIN
  UPDATE Message SET MessageText = @MessageText WHERE MessageTitle = @Title
END
ELSE
BEGIN
  INSERT INTO Message (MessageTitle, MessageText) VALUES
  (@Title, @MessageText)
END



the last thing I want to see is some pasty-faced geek with skin so pale that it's almost translucent trying to bump parts with a partner - John Simmons / outlaw programmer

Deja View - the feeling that you've seen this post before.

GeneralRe: help on SP (edit / insert) Pin
firestoper1-Mar-07 2:06
firestoper1-Mar-07 2:06 
GeneralRe: help on SP (edit / insert) Pin
Pete O'Hanlon1-Mar-07 2:45
mvePete O'Hanlon1-Mar-07 2:45 
GeneralRe: help on SP (edit / insert) Pin
firestoper1-Mar-07 12:35
firestoper1-Mar-07 12:35 
AnswerRe: help on SP (edit / insert) Pin
gauthee1-Mar-07 1:45
gauthee1-Mar-07 1:45 
GeneralRe: help on SP (edit / insert) Pin
firestoper1-Mar-07 2:10
firestoper1-Mar-07 2:10 
QuestionError on SP I made Pin
firestoper1-Mar-07 0:36
firestoper1-Mar-07 0:36 
AnswerRe: Error on SP I made Pin
Paddy Boyd1-Mar-07 0:44
Paddy Boyd1-Mar-07 0:44 
GeneralRe: Error on SP I made Pin
firestoper1-Mar-07 0:56
firestoper1-Mar-07 0:56 
QuestionIntersect in SQL Server2000 Pin
Prashant C28-Feb-07 23:34
Prashant C28-Feb-07 23:34 
AnswerRe: Intersect in SQL Server2000 Pin
Krish - KP28-Feb-07 23:52
Krish - KP28-Feb-07 23:52 
AnswerRe: Intersect in SQL Server2000 Pin
gauthee1-Mar-07 0:06
gauthee1-Mar-07 0:06 
QuestionRe: Intersect in SQL Server2000 Pin
Prashant C1-Mar-07 0:39
Prashant C1-Mar-07 0:39 
AnswerRe: Intersect in SQL Server2000 Pin
Harini N K1-Mar-07 0:45
Harini N K1-Mar-07 0:45 
AnswerRe: Intersect in SQL Server2000 Pin
Harini N K1-Mar-07 0:54
Harini N K1-Mar-07 0:54 
GeneralRe: Intersect in SQL Server2000 Pin
Prashant C1-Mar-07 1:11
Prashant C1-Mar-07 1:11 
AnswerRe: Intersect in SQL Server2000 Pin
Priya_20071-Mar-07 20:29
Priya_20071-Mar-07 20:29 
QuestionHow to run script file through .net? Pin
NanaAM28-Feb-07 21:33
NanaAM28-Feb-07 21:33 

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.