Click here to Skip to main content
15,916,527 members
Home / Discussions / Database
   

Database

 
GeneralRe: Clear database contents Pin
Zoltan Balazs15-Feb-07 11:33
Zoltan Balazs15-Feb-07 11:33 
GeneralRe: Clear database contents Pin
Member 9615-Feb-07 11:39
Member 9615-Feb-07 11:39 
GeneralRe: Clear database contents Pin
Zoltan Balazs15-Feb-07 11:42
Zoltan Balazs15-Feb-07 11:42 
GeneralRe: Clear database contents Pin
Member 9615-Feb-07 11:47
Member 9615-Feb-07 11:47 
GeneralRe: Clear database contents Pin
Zoltan Balazs15-Feb-07 11:52
Zoltan Balazs15-Feb-07 11:52 
Questionautocomplete using large lookup table Pin
AndrusM15-Feb-07 8:52
AndrusM15-Feb-07 8:52 
AnswerRe: autocomplete using large lookup table Pin
-Dr_X-15-Feb-07 10:55
-Dr_X-15-Feb-07 10:55 
GeneralRe: autocomplete using large lookup table Pin
AndrusM16-Feb-07 3:09
AndrusM16-Feb-07 3:09 
AnswerRe: autocomplete using large lookup table Pin
Keith Worden16-Feb-07 6:08
Keith Worden16-Feb-07 6:08 
GeneralRe: autocomplete using large lookup table Pin
AndrusM16-Feb-07 6:16
AndrusM16-Feb-07 6:16 
GeneralRe: autocomplete using large lookup table Pin
Keith Worden16-Feb-07 6:23
Keith Worden16-Feb-07 6:23 
QuestionTransaction on Dataset in ADO.net Pin
Neeraj_Maurya15-Feb-07 5:37
Neeraj_Maurya15-Feb-07 5:37 
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 

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.