Click here to Skip to main content
15,913,944 members
Home / Discussions / Database
   

Database

 
GeneralRe: Updating Field Length of a Fields in Sql Server 2005 Pin
εїзεїзεїз8-Feb-09 21:34
εїзεїзεїз8-Feb-09 21:34 
GeneralRe: Updating Field Length of a Fields in Sql Server 2005 Pin
Mycroft Holmes8-Feb-09 21:53
professionalMycroft Holmes8-Feb-09 21:53 
GeneralRe: Updating Field Length of a Fields in Sql Server 2005 Pin
εїзεїзεїз8-Feb-09 22:00
εїзεїзεїз8-Feb-09 22:00 
QuestionSuggestion for Database model to store multiple value types Pin
Jani Giannoudis7-Feb-09 5:30
mvaJani Giannoudis7-Feb-09 5:30 
AnswerRe: Suggestion for Database model to store multiple value types Pin
Wendelius9-Feb-09 6:08
mentorWendelius9-Feb-09 6:08 
QuestionRe: Suggestion for Database model to store multiple value types Pin
Jani Giannoudis9-Feb-09 6:21
mvaJani Giannoudis9-Feb-09 6:21 
AnswerRe: Suggestion for Database model to store multiple value types Pin
Wendelius9-Feb-09 6:41
mentorWendelius9-Feb-09 6:41 
QuestionDelete Records Pin
Hemant Thaker7-Feb-09 0:59
Hemant Thaker7-Feb-09 0:59 
Hi..

I have one table with columns
Id int, Message varchar, QueId int
I store messages in this table. Id is auto generated and that will be the id of message. Message will be message and queid will be the Id of the message for which your reply message is posted.

So I am storing messages as well as their replies in the same table.
The message which is not the answer of any question will have value 0 in the queid field.

One message can have multiple reply messages and these replies again can have multiple replies -- just like discussion forum / blog.

So one message can have hierarchy of messages...

Now my question is that.. I want to delete a message , now if i delete a message then this message's whole hierarchy should be deleted...

I can delete the message and the messages which are replies of this message, but what about the messages which are the replies of these deleted messages ?... i.e I also want to delete the same...

Could you tell me the solution...or how can i create stored procedure which can work recursively , for deleting records...

Awaiting for reply
Thanks
Hemant Thaker

By:
Hemant Thaker

AnswerRe: Delete Records Pin
Vimalsoft(Pty) Ltd8-Feb-09 21:41
professionalVimalsoft(Pty) Ltd8-Feb-09 21:41 
Questionpasswords and varbinary in sql server... Pin
l a u r e n6-Feb-09 4:21
l a u r e n6-Feb-09 4:21 
AnswerRe: passwords and varbinary in sql server... Pin
Ennis Ray Lynch, Jr.6-Feb-09 7:23
Ennis Ray Lynch, Jr.6-Feb-09 7:23 
GeneralRe: passwords and varbinary in sql server... Pin
l a u r e n6-Feb-09 7:38
l a u r e n6-Feb-09 7:38 
GeneralRe: passwords and varbinary in sql server... Pin
Ennis Ray Lynch, Jr.6-Feb-09 7:42
Ennis Ray Lynch, Jr.6-Feb-09 7:42 
GeneralRe: passwords and varbinary in sql server... Pin
l a u r e n6-Feb-09 7:47
l a u r e n6-Feb-09 7:47 
QuestionMAX statement Pin
5fingers6-Feb-09 1:24
5fingers6-Feb-09 1:24 
AnswerRe: MAX statement Pin
Rupesh Kumar Swami6-Feb-09 1:36
Rupesh Kumar Swami6-Feb-09 1:36 
GeneralRe: MAX statement Pin
5fingers6-Feb-09 1:52
5fingers6-Feb-09 1:52 
AnswerRe: MAX statement Pin
l a u r e n6-Feb-09 4:41
l a u r e n6-Feb-09 4:41 
Questionhow to acess remote ms sql 2000 server Pin
schandrashekhar6-Feb-09 0:10
schandrashekhar6-Feb-09 0:10 
AnswerRe: how to acess remote ms sql 2000 server Pin
SeMartens6-Feb-09 1:34
SeMartens6-Feb-09 1:34 
QuestionReading from AS400 [modified] Pin
Giorgi Dalakishvili5-Feb-09 23:32
mentorGiorgi Dalakishvili5-Feb-09 23:32 
AnswerRe: Reading from AS400 Pin
Wendelius9-Feb-09 6:04
mentorWendelius9-Feb-09 6:04 
GeneralRe: Reading from AS400 Pin
Giorgi Dalakishvili9-Feb-09 6:21
mentorGiorgi Dalakishvili9-Feb-09 6:21 
GeneralRe: Reading from AS400 Pin
Wendelius9-Feb-09 6:43
mentorWendelius9-Feb-09 6:43 
Questioninstall the OSQL tool on the client machine Pin
sunil goyalG5-Feb-09 23:13
sunil goyalG5-Feb-09 23:13 

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.