Viewing 15 posts - 61 through 75 (of 117 total)
Aligned index (separate indexes split by partition):
create index ix_pt_index on partitioned_table (indexed_value)
ON [ps_PartitionScheme](partition_key) --Name of partition scheme
Non-aligned index (one index that covers all values across all partitions):
create index ix_index on...
April 29, 2009 at 10:06 pm
SID (4/29/2009)
April 29, 2009 at 1:37 pm
Have they created a GUI for you to see how your data is split among partitions in SSMS 2008? Before I just used a custom RDL report in SSMS 2005...
April 29, 2009 at 4:54 am
Check Constraints are good for validating field formatting or values.
For example:
SSN text field must have the format ###-##-####
An integer field must be within the values 0-30
A field cannot contain an...
April 15, 2009 at 6:38 am
Sorry Slange already posted this.
Gabriel P (4/14/2009)
INSERT INTO TABLE1 (
Version
, Type
, Name
, Description
, Category
)
SELECT
Version...
April 14, 2009 at 3:51 pm
This also should work if you can't modify the table.
INSERT INTO TABLE1 (
Version
, Type
, Name
, Description
, Category
)
SELECT
Version = 1
, Type = 2
, Name...
April 14, 2009 at 3:47 pm
You probably already know this, but make sure you can't achieve the same functionality with a check constraint - as that would function like a true "before" trigger.
April 14, 2009 at 3:36 pm
Also, I just noticed I don't have it in the code above, but there's a clustered index on the #nums table. That might be where the problem came in.
March 30, 2009 at 6:48 pm
tfifield (3/30/2009)
March 30, 2009 at 6:45 pm
I am guessing you are thinking in terms of clustering. Mirroring is not Clustering. Honestly, in my opinion it's not a viable solution for existing applications because it requires ADO.net...
March 27, 2009 at 5:27 pm
I figured it out in case anyone is interested.
declare @first_month datetime, @last_month datetime
select @first_month = DATEADD(m,DateDiff(m,0,Min(sale_datetime)),0),
@last_month = DATEADD(m,DateDiff(m,0,Max(sale_datetime)),0)
from #temp
select n.n, t1.*
from #nums n
cross apply (select top 10 *
from #temp
where sale_datetime...
March 27, 2009 at 3:16 pm
I forgot to mention another thing, dynamic sql is strong opposed in this environment :angry:
March 27, 2009 at 1:17 pm
FYI I just realized I put top 1000 in the title. Please ignore that, it is misleading... I really meant top 10
March 27, 2009 at 12:54 pm
GSquared, I want to return 10 regardless if their are ties. The data set I gave you isn't realistic and has a lot more ties, but for the actual data,...
March 27, 2009 at 12:47 pm
Viewing 15 posts - 61 through 75 (of 117 total)