Click here to Skip to main content
15,887,027 members
Home / Discussions / Database
   

Database

 
AnswerRe: Transaction on Dataset in ADO.net Pin
Colin Angus Mackay15-Feb-07 13:47
Colin Angus Mackay15-Feb-07 13:47 
Questiongetting data from the DB Pin
minkinin15-Feb-07 2:25
minkinin15-Feb-07 2:25 
AnswerRe: getting data from the DB Pin
Member 9615-Feb-07 11:42
Member 9615-Feb-07 11:42 
QuestionTrigger examples needed Pin
Saira Tanwir14-Feb-07 14:28
Saira Tanwir14-Feb-07 14:28 
AnswerRe: Trigger examples needed Pin
subai14-Feb-07 18:11
subai14-Feb-07 18:11 
AnswerRe: Trigger examples needed Pin
Colin Angus Mackay14-Feb-07 22:39
Colin Angus Mackay14-Feb-07 22:39 
QuestionDelete row Pin
kani9814-Feb-07 11:23
kani9814-Feb-07 11:23 
AnswerRe: Delete row Pin
subai14-Feb-07 18:10
subai14-Feb-07 18:10 
may u can use triggers like this:

CREATE TRIGGER myTrigger<br />
ON myTable<br />
FOR INSERT <br />
AS<br />
  /* here check the count of rows and delete smaller id*/<br />
  BEGIN<br />
     DECLARE @count int;<br />
     SELECT @count = COUNT(*) FROM myTable<br />
     IF(@count>60)<br />
     BEGIN<br />
      DECLARE @first int;<br />
      SELECT @first = MIN(ID) FROM myTable<br />
      DELETE FROM myTable WHERE ID=@first<br />
     END<br />
  END<br />


and if you want to have your ID column Identity and only from 1-60 use IDENTITY_INSERT
check msdn and web for more





I Wish the Life Had CTRL-Z

QuestionAlter table query issue Pin
Saira Tanwir14-Feb-07 5:59
Saira Tanwir14-Feb-07 5:59 
AnswerRe: Alter table query issue Pin
Elina Blank14-Feb-07 8:22
sitebuilderElina Blank14-Feb-07 8:22 
QuestionConnect VB.net 2005 with Sql Server 2000 &amp;quot;connection string&amp;quot; [modified] Pin
kindman_nb14-Feb-07 5:07
kindman_nb14-Feb-07 5:07 
AnswerRe: Connect VB.net 2005 with Sql Server 2000 &amp;quot;connection string&amp;quot; Pin
kubben16-Feb-07 6:13
kubben16-Feb-07 6:13 
Questionsearching using gridview Pin
Kunal P14-Feb-07 3:47
Kunal P14-Feb-07 3:47 
AnswerRe: searching using gridview Pin
John.L.Ponratnam14-Feb-07 20:11
John.L.Ponratnam14-Feb-07 20:11 
GeneralRe: searching using gridview Pin
Kunal P15-Feb-07 2:36
Kunal P15-Feb-07 2:36 
QuestionSQL DATETIME ..... Help!!!!! Pin
BooleanTrue14-Feb-07 1:39
professionalBooleanTrue14-Feb-07 1:39 
AnswerRe: SQL DATETIME ..... Help!!!!! Pin
Colin Angus Mackay14-Feb-07 1:43
Colin Angus Mackay14-Feb-07 1:43 
GeneralRe: SQL DATETIME ..... Help!!!!! Pin
BooleanTrue14-Feb-07 2:18
professionalBooleanTrue14-Feb-07 2:18 
AnswerRe: SQL DATETIME ..... Help!!!!! Pin
andyharman14-Feb-07 2:05
professionalandyharman14-Feb-07 2:05 
GeneralRe: SQL DATETIME ..... Help!!!!! Pin
BooleanTrue14-Feb-07 2:54
professionalBooleanTrue14-Feb-07 2:54 
AnswerRe: SQL DATETIME ..... Help!!!!! Pin
Harini N K21-Feb-07 22:13
Harini N K21-Feb-07 22:13 
QuestionPlease review and suggest Pin
logicon14-Feb-07 0:52
logicon14-Feb-07 0:52 
AnswerRe: Please review and suggest Pin
Pete O'Hanlon14-Feb-07 1:35
mvePete O'Hanlon14-Feb-07 1:35 
GeneralRe: Please review and suggest Pin
logicon14-Feb-07 1:40
logicon14-Feb-07 1:40 
GeneralRe: Please review and suggest Pin
Pete O'Hanlon14-Feb-07 1:49
mvePete O'Hanlon14-Feb-07 1:49 

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.