Click here to Skip to main content
15,923,168 members
Home / Discussions / Database
   

Database

 
Questionhow t o call a stored procedure inside a stored procedure Pin
bhattiprolu4-Sep-07 0:59
bhattiprolu4-Sep-07 0:59 
AnswerRe: how t o call a stored procedure inside a stored procedure Pin
John-ph4-Sep-07 1:17
John-ph4-Sep-07 1:17 
GeneralRe: how t o call a stored procedure inside a stored procedure Pin
bhattiprolu4-Sep-07 1:26
bhattiprolu4-Sep-07 1:26 
GeneralRe: how t o call a stored procedure inside a stored procedure Pin
John-ph4-Sep-07 1:30
John-ph4-Sep-07 1:30 
GeneralRe: how t o call a stored procedure inside a stored procedure Pin
bhattiprolu4-Sep-07 1:34
bhattiprolu4-Sep-07 1:34 
GeneralRe: how t o call a stored procedure inside a stored procedure Pin
John-ph4-Sep-07 1:46
John-ph4-Sep-07 1:46 
GeneralRe: how t o call a stored procedure inside a stored procedure Pin
bhattiprolu4-Sep-07 2:03
bhattiprolu4-Sep-07 2:03 
GeneralRe: how t o call a stored procedure inside a stored procedure Pin
John-ph4-Sep-07 2:57
John-ph4-Sep-07 2:57 
bhattiprolu wrote:
i have one one registration page.
in that if user chooses his own question for security(while signup in yahoo also we will get security question like that) then the table field must b updated and question flag should be "yes"
if i take the custom question option else not.


with this information it's quite difficult for me to assume the table structure, their relationships and giving you a stored procedure in working condition.

In the previous post there is a sample procedure. I guess if you understand that you can solve your problem. First do an insert in whichever table you want and then read the newly inserted records PK_ID value using SCOPE_IDENTITY(). with primary key value of the newly inserted record you can perform the subsequent update in whichever table you want...

Hope this helps....



Regards
J O H N Rose | [Rose]

"Even eagles need a push." David McNally

QuestionInsert data into database Pin
Tuanhung1894-Sep-07 0:35
Tuanhung1894-Sep-07 0:35 
AnswerRe: Insert data into database Pin
John-ph4-Sep-07 1:03
John-ph4-Sep-07 1:03 
AnswerRe: Insert data into database Pin
Rami Said Abd Alhalim4-Sep-07 6:26
Rami Said Abd Alhalim4-Sep-07 6:26 
QuestionSql server. varbinary or varchar Pin
Eli Nurman4-Sep-07 0:24
Eli Nurman4-Sep-07 0:24 
AnswerRe: Sql server. varbinary or varchar Pin
Colin Angus Mackay4-Sep-07 0:50
Colin Angus Mackay4-Sep-07 0:50 
GeneralRe: Sql server. varbinary or varchar Pin
Eli Nurman4-Sep-07 0:51
Eli Nurman4-Sep-07 0:51 
GeneralRe: Sql server. varbinary or varchar Pin
Pete O'Hanlon4-Sep-07 22:16
mvePete O'Hanlon4-Sep-07 22:16 
QuestionDeleting a row Pin
Suresh R..3-Sep-07 22:26
Suresh R..3-Sep-07 22:26 
AnswerRe: Deleting a row Pin
Blue_Boy3-Sep-07 22:38
Blue_Boy3-Sep-07 22:38 
AnswerRe: Deleting a row Pin
John-ph4-Sep-07 0:51
John-ph4-Sep-07 0:51 
QuestionConcurrency Control Pin
leminhphuong3-Sep-07 21:06
leminhphuong3-Sep-07 21:06 
AnswerRe: Concurrency Control Pin
Pete O'Hanlon3-Sep-07 22:04
mvePete O'Hanlon3-Sep-07 22:04 
Questioni want to pass parameter from one report to other Pin
salman kazi3-Sep-07 20:06
salman kazi3-Sep-07 20:06 
AnswerRe: i want to pass parameter from one report to other Pin
DLM@TD14-Sep-07 12:06
DLM@TD14-Sep-07 12:06 
QuestionRecursive Trigger Pin
John Gathogo3-Sep-07 19:48
John Gathogo3-Sep-07 19:48 
Questionhow to format smalldatetime Pin
prasadbuddhika3-Sep-07 18:52
prasadbuddhika3-Sep-07 18:52 
AnswerRe: how to format smalldatetime Pin
John Gathogo3-Sep-07 20:18
John Gathogo3-Sep-07 20:18 

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.