Click here to Skip to main content
16,012,316 members
Home / Discussions / Database
   

Database

 
GeneralRe: Double field name in select statement Pin
Paddy Boyd22-Aug-06 5:08
Paddy Boyd22-Aug-06 5:08 
AnswerRe: Double field name in select statement Pin
Colin Angus Mackay22-Aug-06 5:06
Colin Angus Mackay22-Aug-06 5:06 
QuestionHow to catch the error return from a trigger in stored procedure in sql 2000 Pin
merlynml21-Aug-06 23:01
merlynml21-Aug-06 23:01 
AnswerRe: How to catch the error return from a trigger in stored procedure in sql 2000 Pin
Eric Dahlvang22-Aug-06 4:48
Eric Dahlvang22-Aug-06 4:48 
Question[DTS] Replace "N.A." with NULL Pin
Duncan Edwards Jones21-Aug-06 22:39
professionalDuncan Edwards Jones21-Aug-06 22:39 
QuestionAbout send mail from SQL Server 2000. Pin
selvaraj S.Kaliyappan21-Aug-06 22:28
selvaraj S.Kaliyappan21-Aug-06 22:28 
QuestionMultiple Tables/DB's performance Pin
MatthysDT21-Aug-06 20:57
MatthysDT21-Aug-06 20:57 
AnswerRe: Multiple Tables/DB's performance Pin
Mike Dimmick22-Aug-06 2:05
Mike Dimmick22-Aug-06 2:05 
It's always a bad idea to dynamically create tables. It invariably means creating dynamic SQL to access and modify data in the database, which will cause many more query plans to be cached. Also, it's difficult to know when to drop a given table.

Keeping your history data in a separate database is not really necessary, but you should consider keeping it on a separate disk (or disk array) from the transactional data, so that overhead of long running queries on the history does not impact the I/O performance of the immediate data. Also, you can get locking problems if you don't separate historical and live data: if your history queries tend to read a lot of rows, that can cause updates or inserts to block until the history query's transaction is committed or rolled back. This can also impact any OLTP work which uses table scans (this should be avoided if at all possible) since the cost of the table scan to find a given row is on average the cost of reading half the number of rows in the table.

To do this in a single database requires understanding additional data files and filegroups so that you can place a specific table in a specific file or group of files which will be on a particular disk. It's often simpler to keep it in a completely separate database. This will also generally be easier to migrate to a separate server later, if required.

Stability. What an interesting concept. -- Chris Maunder

AnswerRe: Multiple Tables/DB's performance Pin
i.j.russell22-Aug-06 2:57
i.j.russell22-Aug-06 2:57 
QuestionTable partitioning in SQL Server 2000 Pin
Uma Kameswari21-Aug-06 18:39
Uma Kameswari21-Aug-06 18:39 
AnswerRe: Table partitioning in SQL Server 2000 Pin
_AK_21-Aug-06 20:03
_AK_21-Aug-06 20:03 
GeneralRe: Table partitioning in SQL Server 2000 Pin
Uma Kameswari21-Aug-06 21:51
Uma Kameswari21-Aug-06 21:51 
GeneralRe: Table partitioning in SQL Server 2000 Pin
Colin Angus Mackay21-Aug-06 22:06
Colin Angus Mackay21-Aug-06 22:06 
QuestionAdding a new row to a DataTable Pin
dptalt21-Aug-06 10:09
dptalt21-Aug-06 10:09 
AnswerRe: Adding a new row to a DataTable Pin
Stephen McGuire21-Aug-06 11:48
Stephen McGuire21-Aug-06 11:48 
AnswerRe: Adding a new row to a DataTable Pin
Keith Malwitz21-Aug-06 12:10
Keith Malwitz21-Aug-06 12:10 
QuestionRe: Adding a new row to a DataTable Pin
dptalt21-Aug-06 16:26
dptalt21-Aug-06 16:26 
AnswerRe: Adding a new row to a DataTable Pin
Keith Malwitz21-Aug-06 17:34
Keith Malwitz21-Aug-06 17:34 
GeneralRe: Adding a new row to a DataTable Pin
dptalt22-Aug-06 3:37
dptalt22-Aug-06 3:37 
GeneralRe: Adding a new row to a DataTable Pin
Keith Malwitz22-Aug-06 4:53
Keith Malwitz22-Aug-06 4:53 
GeneralRe: Adding a new row to a DataTable Pin
dptalt23-Aug-06 16:52
dptalt23-Aug-06 16:52 
GeneralRe: Adding a new row to a DataTable Pin
Keith Malwitz23-Aug-06 17:33
Keith Malwitz23-Aug-06 17:33 
GeneralRe: Adding a new row to a DataTable Pin
dptalt25-Aug-06 3:11
dptalt25-Aug-06 3:11 
AnswerRe: Adding a new row to a DataTable [modified] Pin
Stephen McGuire22-Aug-06 7:12
Stephen McGuire22-Aug-06 7:12 
GeneralRe: Adding a new row to a DataTable Pin
dptalt22-Aug-06 16:34
dptalt22-Aug-06 16:34 

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.