Click here to Skip to main content
15,917,174 members
Home / Discussions / Database
   

Database

 
GeneralRe: Insert query and Cursor in same stored procedure Pin
Jay Royall22-Jan-09 9:52
Jay Royall22-Jan-09 9:52 
Ok Thanks. I have just looked at your example again and now understand a little more where you're coming from and i think that it would acually work for my insert statement by changing one of the lines from
UPDATE set sequence = sequence + 10 where id = @id

to
UPDATE set sequence = sequence + 5 where id = @id

which is great and I will use this, thanks Smile | :)

But I have a similar stored procedure for doing an update on an existing record, that is, updating the sequence of one of the records already in the table. Maybe I will look into my logic further for this too.

Thanks again Smile | :)
GeneralRe: Insert query and Cursor in same stored procedure Pin
Wendelius22-Jan-09 9:50
mentorWendelius22-Jan-09 9:50 
GeneralRe: Insert query and Cursor in same stored procedure Pin
Jay Royall22-Jan-09 9:56
Jay Royall22-Jan-09 9:56 
GeneralRe: Insert query and Cursor in same stored procedure Pin
Wendelius22-Jan-09 10:05
mentorWendelius22-Jan-09 10:05 
GeneralRe: Insert query and Cursor in same stored procedure Pin
Jay Royall22-Jan-09 21:31
Jay Royall22-Jan-09 21:31 
GeneralRe: Insert query and Cursor in same stored procedure Pin
Wendelius22-Jan-09 21:36
mentorWendelius22-Jan-09 21:36 
AnswerRe: Insert query and Cursor in same stored procedure [modified] Pin
omlac21-Jan-09 23:35
omlac21-Jan-09 23:35 
GeneralRe: Insert query and Cursor in same stored procedure Pin
Jay Royall21-Jan-09 23:51
Jay Royall21-Jan-09 23:51 
QuestionReading html into a Sql Server Report Pin
omlac21-Jan-09 22:37
omlac21-Jan-09 22:37 
Questionconversion from access to oracle-select ? Pin
premprakashbhati21-Jan-09 22:09
premprakashbhati21-Jan-09 22:09 
AnswerRe: conversion from access to oracle-select ? Pin
Wendelius21-Jan-09 22:39
mentorWendelius21-Jan-09 22:39 
QuestionIIf In SQL Compact Edition 3.5 Pin
VinothRao21-Jan-09 20:54
VinothRao21-Jan-09 20:54 
AnswerRe: IIf In SQL Compact Edition 3.5 Pin
Ashfield21-Jan-09 20:59
Ashfield21-Jan-09 20:59 
GeneralRe: IIf In SQL Compact Edition 3.5 Pin
VinothRao21-Jan-09 21:17
VinothRao21-Jan-09 21:17 
GeneralRe: IIf In SQL Compact Edition 3.5 Pin
Ashfield21-Jan-09 22:56
Ashfield21-Jan-09 22:56 
QuestionSql Script to Pull Records Based on Specific Date within A Year Pin
dboy22121-Jan-09 3:10
dboy22121-Jan-09 3:10 
AnswerRe: Sql Script to Pull Records Based on Specific Date within A Year Pin
dboy22121-Jan-09 3:26
dboy22121-Jan-09 3:26 
Questionquery optimization Pin
Uma Kameswari21-Jan-09 1:05
Uma Kameswari21-Jan-09 1:05 
GeneralRe: query optimization Pin
Senthil_M21-Jan-09 1:20
Senthil_M21-Jan-09 1:20 
GeneralRe: query optimization Pin
Uma Kameswari21-Jan-09 2:44
Uma Kameswari21-Jan-09 2:44 
GeneralRe: query optimization Pin
J4amieC21-Jan-09 4:28
J4amieC21-Jan-09 4:28 
GeneralRe: query optimization Pin
Wendelius21-Jan-09 4:57
mentorWendelius21-Jan-09 4:57 
QuestionTransfering Database? Pin
Karthick_gc20-Jan-09 23:58
Karthick_gc20-Jan-09 23:58 
AnswerRe: Transfering Database? Pin
perle121-Jan-09 0:18
perle121-Jan-09 0:18 
AnswerRe: Transfering Database? Pin
Reza Raad21-Jan-09 0:19
Reza Raad21-Jan-09 0:19 

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.