Click here to Skip to main content
15,898,987 members
Home / Discussions / Database
   

Database

 
GeneralRe: compare two tables in different environments. Pin
vanikanc10-Mar-11 10:40
vanikanc10-Mar-11 10:40 
GeneralRe: compare two tables in different environments. Pin
Wendelius11-Mar-11 11:54
mentorWendelius11-Mar-11 11:54 
AnswerRe: compare two tables in different environments. Pin
dingoishere13-Mar-11 21:09
dingoishere13-Mar-11 21:09 
AnswerRe: compare two tables in different environments. Pin
Om Prakash Pant14-Mar-11 2:04
Om Prakash Pant14-Mar-11 2:04 
QuestionMaintaing DB Pin
Hum Dum8-Mar-11 23:45
Hum Dum8-Mar-11 23:45 
AnswerRe: Maintaing DB Pin
Wendelius9-Mar-11 0:20
mentorWendelius9-Mar-11 0:20 
GeneralRe: Maintaing DB Pin
Hum Dum9-Mar-11 0:41
Hum Dum9-Mar-11 0:41 
GeneralRe: Maintaing DB Pin
Wendelius9-Mar-11 0:55
mentorWendelius9-Mar-11 0:55 
Hum Dum wrote:
I think about moving data to separate table as query which has to run on table,
will need only information of 1 previous day , today, 1 after day on any given
day.

This makes things even easier and goes back to good indexing. So if the new rows are always added to the end in your timeline, you could consider using clustered index. This would make queries selecting the near past very efficient, see: http://msdn.microsoft.com/en-us/library/ms190639.aspx[^]


Hum Dum wrote:
If apply all these will it still work after 5 year (assuming 12000 * 12 * 365 *
5 rows) ?


Roughly 25 million rows, as long as the structure and indexing are well done you should be safe, of course depending on the requirements Smile | :)
Basically the earlier rows are kinda a dead mass if you don't query them as long as you have a good access path to the few rows you need

Hum Dum wrote:
don't have any clue about this?
Will be helpful if you point to an article
(targeting less then have DBA exp)

Here's one starting point: http://msdn.microsoft.com/en-us/library/ms178148.aspx[^]

Hopefully these help,

mika
The need to optimize rises from a bad design.My articles[^]

AnswerRe: Maintaing DB Pin
PIEBALDconsult9-Mar-11 1:58
mvePIEBALDconsult9-Mar-11 1:58 
QuestionAliasing Problem In SQL Query Pin
Anubhava Dimri8-Mar-11 22:24
Anubhava Dimri8-Mar-11 22:24 
AnswerRe: Aliasing Problem In SQL Query Pin
Luc Pattyn8-Mar-11 22:37
sitebuilderLuc Pattyn8-Mar-11 22:37 
AnswerRe: Aliasing Problem In SQL Query Pin
Simon_Whale8-Mar-11 22:55
Simon_Whale8-Mar-11 22:55 
GeneralRe: Aliasing Problem In SQL Query Pin
Anubhava Dimri8-Mar-11 22:58
Anubhava Dimri8-Mar-11 22:58 
GeneralRe: Aliasing Problem In SQL Query Pin
Simon_Whale8-Mar-11 23:01
Simon_Whale8-Mar-11 23:01 
GeneralRe: Aliasing Problem In SQL Query Pin
Anubhava Dimri8-Mar-11 23:08
Anubhava Dimri8-Mar-11 23:08 
GeneralRe: Aliasing Problem In SQL Query Pin
Simon_Whale8-Mar-11 23:18
Simon_Whale8-Mar-11 23:18 
GeneralRe: Aliasing Problem In SQL Query Pin
Mycroft Holmes8-Mar-11 23:30
professionalMycroft Holmes8-Mar-11 23:30 
AnswerRe: Aliasing Problem In SQL Query Pin
Wendelius9-Mar-11 0:27
mentorWendelius9-Mar-11 0:27 
AnswerRe: Aliasing Problem In SQL Query Pin
venkynataraj9-Mar-11 0:52
venkynataraj9-Mar-11 0:52 
AnswerRe: Aliasing Problem In SQL Query Pin
Prasanta_Prince15-Apr-11 1:00
Prasanta_Prince15-Apr-11 1:00 
GeneralRe: Aliasing Problem In SQL Query Pin
Anubhava Dimri15-Apr-11 1:06
Anubhava Dimri15-Apr-11 1:06 
QuestionTransactional Replicated Databases And Changing Schema Pin
wizardzz8-Mar-11 6:50
wizardzz8-Mar-11 6:50 
AnswerRe: Transactional Replicated Databases And Changing Schema Pin
Wendelius8-Mar-11 8:21
mentorWendelius8-Mar-11 8:21 
GeneralRe: Transactional Replicated Databases And Changing Schema Pin
wizardzz8-Mar-11 8:34
wizardzz8-Mar-11 8:34 
GeneralRe: Transactional Replicated Databases And Changing Schema Pin
Wendelius8-Mar-11 11:24
mentorWendelius8-Mar-11 11:24 

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.