Click here to Skip to main content
15,909,939 members
Home / Discussions / Database
   

Database

 
GeneralRe: help .... Pin
Pete O'Hanlon6-Aug-07 22:17
mvePete O'Hanlon6-Aug-07 22:17 
QuestionRe: help .... Pin
B.A6-Aug-07 22:54
B.A6-Aug-07 22:54 
QuestionCannot generate SSPI context error Pin
xbiplav6-Aug-07 18:16
xbiplav6-Aug-07 18:16 
QuestionPuzzled by converting date on an export [modified] Pin
Jack Fleet6-Aug-07 8:37
Jack Fleet6-Aug-07 8:37 
AnswerRe: Puzzled by converting date on an export Pin
Mike Dimmick6-Aug-07 12:38
Mike Dimmick6-Aug-07 12:38 
GeneralRe: Puzzled by converting date on an export Pin
Jack Fleet6-Aug-07 12:43
Jack Fleet6-Aug-07 12:43 
QuestionSQL Query Pin
sangramkp6-Aug-07 7:06
sangramkp6-Aug-07 7:06 
AnswerRe: SQL Query Pin
andyharman6-Aug-07 7:15
professionalandyharman6-Aug-07 7:15 
For SQL-Server, your code should be something like:
create procedure MyProcedure
@c1 int,
@c2 int,
@c3 int,
@c4 int,
@c5 int,
@c6 int,
@c7 int
as begin
  set nocount off
 
  update MyTable set c5 = @c5, c6 = @c6, c7 = @c7
     where c1 = @c1
     and c2 = @c2
     and c3 = @c3
     and c4 = @c4
 
  if (@@ROWCOUNT = 0) begin
     insert into MyTable (c1, c2, c3, c4, c5, c6, c7)
       values (@c1, @c2, @c3, @c4, @c5, @c6, @c7)
  end

  return (0)
end
I have assumed that all of your variables are integers, and that none of your primary key columns can be null.

Regards
Andy



If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message".

GeneralRe: SQL Query Pin
sangramkp6-Aug-07 7:40
sangramkp6-Aug-07 7:40 
GeneralRe: SQL Query Pin
andyharman6-Aug-07 8:17
professionalandyharman6-Aug-07 8:17 
AnswerRe: SQL Query Pin
Pete O'Hanlon6-Aug-07 22:05
mvePete O'Hanlon6-Aug-07 22:05 
QuestionTimeout while reading data from database Pin
Muhammad Ahmed6-Aug-07 6:45
Muhammad Ahmed6-Aug-07 6:45 
AnswerRe: Timeout while reading data from database Pin
vimal_yet6-Aug-07 22:23
vimal_yet6-Aug-07 22:23 
AnswerRe: Timeout while reading data from database Pin
Pete O'Hanlon6-Aug-07 22:38
mvePete O'Hanlon6-Aug-07 22:38 
QuestionDataAdapter.Update Problem Pin
MohammadAmiry6-Aug-07 6:12
MohammadAmiry6-Aug-07 6:12 
Questionproblem with pop3 mail box Pin
shaikshavali6-Aug-07 2:17
shaikshavali6-Aug-07 2:17 
AnswerRe: problem with pop3 mail box Pin
Marek Grzenkowicz6-Aug-07 22:30
Marek Grzenkowicz6-Aug-07 22:30 
QuestionDate Range Pin
Brendan Vogt5-Aug-07 20:50
Brendan Vogt5-Aug-07 20:50 
AnswerRe: Date Range Pin
Krish - KP5-Aug-07 21:10
Krish - KP5-Aug-07 21:10 
QuestionReducing the Execution time of the Sql Server 2000 Stored procedure. Pin
tonic_valan5-Aug-07 20:32
tonic_valan5-Aug-07 20:32 
AnswerRe: Reducing the Execution time of the Sql Server 2000 Stored procedure. Pin
Marek Grzenkowicz5-Aug-07 21:02
Marek Grzenkowicz5-Aug-07 21:02 
GeneralRe: Reducing the Execution time of the Sql Server 2000 Stored procedure. Pin
tonic_valan5-Aug-07 22:03
tonic_valan5-Aug-07 22:03 
GeneralRe: Reducing the Execution time of the Sql Server 2000 Stored procedure. Pin
Marek Grzenkowicz5-Aug-07 23:47
Marek Grzenkowicz5-Aug-07 23:47 
GeneralRe: Reducing the Execution time of the Sql Server 2000 Stored procedure. Pin
tonic_valan6-Aug-07 1:50
tonic_valan6-Aug-07 1:50 
GeneralRe: Reducing the Execution time of the Sql Server 2000 Stored procedure. Pin
Marek Grzenkowicz6-Aug-07 21:57
Marek Grzenkowicz6-Aug-07 21:57 

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.