SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 SQL Server Administration (2008)
 Partition Function
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

PadLing
Starting Member

2 Posts

Posted - 02/27/2013 :  04:00:37  Show Profile  Reply with Quote
Hi All,

New to partition function. I ran a trace and used DB tuning wizard to get some recommendations. One of which was a partition function as follows

CREATE PARTITION FUNCTION [_dta_pf__4364](varchar(50)) AS RANGE LEFT FOR VALUES (N'214', N'249', N'50000', N'66767')
CREATE PARTITION SCHEME [_dta_ps__8066] AS PARTITION [_dta_pf__4364] TO ([PRIMARY], [PRIMARY], [PRIMARY], [PRIMARY], [PRIMARY])

All the partitions are created in the Primary and should I need to change the Stored Proc to get data from different partition.

Also, how to remove the partition .
Kindly help.

visakh16
Very Important crosS Applying yaK Herder

India
52325 Posts

Posted - 02/27/2013 :  04:11:38  Show Profile  Reply with Quote
yep...recommended approach is to associate partitions to different filegroups

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

PadLing
Starting Member

2 Posts

Posted - 02/27/2013 :  04:37:58  Show Profile  Reply with Quote
Hi,

Thanks, but if the recommended script is with only the PRIMARY filegroup, can I simply execute it.

If I do so, do I need to change the stored procs to collect from the PRIMARY Partition.

Thanks
Pad
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

India
52325 Posts

Posted - 02/27/2013 :  04:42:22  Show Profile  Reply with Quote
nope if you want them to be in different filegroups you need to replace PRIMARY with correct filegroup names in above statements

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

srimami
Posting Yak Master

160 Posts

Posted - 02/28/2013 :  11:16:27  Show Profile  Reply with Quote
"Thanks, but if the recommended script is with only the PRIMARY filegroup, can I simply execute it."

by default it will take primary but it is always advisable to have on different file groups.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.08 seconds. Powered By: Snitz Forums 2000