Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
gaby_58
Starting Member
33 Posts |
Posted - 2013-07-25 : 17:09:42
|
We have 2009 thru 2013 data in the database, all the data 2009 thru 2012 comes out quick except 2013 data, it doesn't come out and hangs forever, what could be the problem and how to resolve this |
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2013-07-26 : 02:28:39
|
is table partitioned? do you've an index on date field?------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/https://www.facebook.com/VmBlogs |
|
|
gaby_58
Starting Member
33 Posts |
Posted - 2013-07-26 : 11:09:40
|
Not sure, how do I find it and what will this help? Thanks |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2013-07-26 : 11:18:01
|
have a look at sys.indexes for index info and to get partitioned tables use logic likeselect distinct t.namefrom sys.partitions pinner join sys.tables ton p.object_id = t.object_idwhere p.partition_number <> 1 ------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/https://www.facebook.com/VmBlogs |
|
|
gaby_58
Starting Member
33 Posts |
Posted - 2013-07-26 : 11:21:57
|
Could you give an example to use this |
|
|
Paul J. Brooks
7 Posts |
Posted - 2013-11-26 : 05:40:13
|
I m a stranger with this topic.i wanna discus on this topic.if any one is interested then plz reply me.i m waiting.Thanks for sharing this information.unspammed |
|
|
|
|
|