backup and delete data from SQL 2008
hi all,this sounds simple buy I cant seem to get a good steer on it. I have a database and some of the child tables might have around 1 million records added to it in a week. After about 2 or 3 days...
View ArticleSelect or Insert from table dynamically
Hi there, I have a store proc that takes in an ID and depending on the ID it will select from the approperiate table. There is say 6 tables, all with the same data columns but broke out like this for...
View Articlevariable replacement using sp_executesql
Hi there, I'm on MS SQL 2008 and thought I had the hang of using sp_executesql as I have used it successful with other queries using the params as search conditions in the where clauses. So now I,ve...
View ArticleDATETIME millisecs cannot be relied on
Hi there, ok so i thought that when I stored these dates I would get them back as they where in the database... So for example if you run these and look at the results. The same happens on an insert. I...
View ArticlePoint of update when using case in an Update statement
hi there, I have cut this down to keep it simple but here goes... I have a table with 4 columns - OrderID, InitialOrderAmount, RemainingOrderAmount, CompletedDate Rule is when the remaining order...
View ArticleBest practice for Table Historys and pin pointing data at a point in time
Hi there, I,ve been doing history tables for some time now in databases but never put to much effort or thought into it. I wonder what is the best practice out there. my main goal is to record any...
View Articlebackup and delete data from SQL 2008
hi all,this sounds simple buy I cant seem to get a good steer on it. I have a database and some of the child tables might have around 1 million records added to it in a week. After about 2 or 3 days...
View ArticleSelect or Insert from table dynamically
Hi there, I have a store proc that takes in an ID and depending on the ID it will select from the approperiate table. There is say 6 tables, all with the same data columns but broke out like this for...
View Articlevariable replacement using sp_executesql
Hi there, I'm on MS SQL 2008 and thought I had the hang of using sp_executesql as I have used it successful with other queries using the params as search conditions in the where clauses. So now I,ve...
View ArticleDATETIME millisecs cannot be relied on
Hi there, ok so i thought that when I stored these dates I would get them back as they where in the database... So for example if you run these and look at the results. The same happens on an insert. I...
View ArticlePoint of update when using case in an Update statement
hi there, I have cut this down to keep it simple but here goes... I have a table with 4 columns - OrderID, InitialOrderAmount, RemainingOrderAmount, CompletedDate Rule is when the remaining order...
View ArticleBest practice for Table Historys and pin pointing data at a point in time
Hi there, I,ve been doing history tables for some time now in databases but never put to much effort or thought into it. I wonder what is the best practice out there. my main goal is to record any...
View Article
More Pages to Explore .....