Click here to Skip to main content
15,920,896 members
Home / Discussions / Database
   

Database

 
GeneralRe: Preparing SQL for Insert Pin
Sean McCormack3-Dec-03 3:01
Sean McCormack3-Dec-03 3:01 
Generalrows in nested relationship couldnt be deleted Pin
meroo30-Nov-03 18:47
meroo30-Nov-03 18:47 
GeneralSql query question Pin
pankajdaga30-Nov-03 3:26
pankajdaga30-Nov-03 3:26 
GeneralRe: Sql query question Pin
Ian Darling30-Nov-03 3:50
Ian Darling30-Nov-03 3:50 
Generalserver explorer Pin
Member 72360328-Nov-03 23:48
Member 72360328-Nov-03 23:48 
GeneralRe: server explorer Pin
Mike Dimmick1-Dec-03 6:44
Mike Dimmick1-Dec-03 6:44 
Generali want to del a row from nested relationship Pin
meroo28-Nov-03 6:35
meroo28-Nov-03 6:35 
GeneralRe: i want to del a row from nested relationship Pin
Husein29-Nov-03 9:41
Husein29-Nov-03 9:41 
It means that you specified an index which is bigger than DataTable.Rows.Count. If you want to delete the last row in the collection you have to use the index of DataTable.Rows.Count - 1. Remember that the Count tells you how many rows you have, but the collection starts from 0 and not 1.

The other thing, when perfoming a certain operation on a table which is in a relationship with another table, you have to follow a little guidline:
1. When inserting, insert first to the parent table and then the child table.
2. When updating, update the parent table first and then the child table.
3. When deleting, delete from the child table first and then from the parent table.

Regards,

Husein
Generali want to del a row from data grid Pin
kings_128-Nov-03 6:04
kings_128-Nov-03 6:04 
QuestionHow to retrieve image data with MSDE Pin
parag28-Nov-03 1:20
parag28-Nov-03 1:20 
Generalstoring passwords ! Pin
ranjjj27-Nov-03 18:45
ranjjj27-Nov-03 18:45 
GeneralRe: storing passwords ! Pin
Vasudevan Deepak Kumar27-Nov-03 20:40
Vasudevan Deepak Kumar27-Nov-03 20:40 
GeneralRe: storing passwords ! Pin
Steve S8-Dec-03 0:28
Steve S8-Dec-03 0:28 
Questionwhat is the max length of ADO command string? Pin
gowinder27-Nov-03 14:42
gowinder27-Nov-03 14:42 
QuestionHow to change the displaying sequence of columns in a DataView Pin
itismydick26-Nov-03 20:48
itismydick26-Nov-03 20:48 
AnswerRe: How to change the displaying sequence of columns in a DataView Pin
Husein29-Nov-03 9:46
Husein29-Nov-03 9:46 
Generalsql stored proc Pin
ranjjj26-Nov-03 19:09
ranjjj26-Nov-03 19:09 
GeneralRe: sql stored proc Pin
Mike Dimmick27-Nov-03 5:27
Mike Dimmick27-Nov-03 5:27 
Generalsql stored proc Pin
ranjjj26-Nov-03 19:09
ranjjj26-Nov-03 19:09 
GeneralSQL Statement with Dates in ASP Pin
AGeNt7eVeN26-Nov-03 13:36
AGeNt7eVeN26-Nov-03 13:36 
Generalxmsgsp_helprotect Pin
ranjjj25-Nov-03 23:42
ranjjj25-Nov-03 23:42 
GeneralTroublesome Query Pin
DEWright_CA25-Nov-03 17:58
DEWright_CA25-Nov-03 17:58 
GeneralRe: Troublesome Query Pin
Roger Wright25-Nov-03 21:26
professionalRoger Wright25-Nov-03 21:26 
GeneralRe: Troublesome Query Pin
Ian Darling25-Nov-03 21:27
Ian Darling25-Nov-03 21:27 
GeneralEmpty recordset Pin
Mike Osbahr25-Nov-03 4:03
Mike Osbahr25-Nov-03 4:03 

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.