bind
IS-IT--Management
- Dec 13, 2004
- 25
I have a Microsoft SQL database thats rather large in size and I need to come up with a store procedure to move this database by the year and month. for example
SELECT * FROM plat_calls.dbo.calls where calldate >= '2001-01-01' and calldate < '2002-02-01'
I need to somehow break this query up into months and then insert it into another database 20020201- would contain all of the entries for 2002 for the month of feb.
Anyone have any advise or sample code as to how I might be able to do this ?
SELECT * FROM plat_calls.dbo.calls where calldate >= '2001-01-01' and calldate < '2002-02-01'
I need to somehow break this query up into months and then insert it into another database 20020201- would contain all of the entries for 2002 for the month of feb.
Anyone have any advise or sample code as to how I might be able to do this ?