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 2005 Forums
 SQL Server Administration (2005)
 Paratitioning in SQL SERVER 2005
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

pelegk2
Aged Yak Warrior

Israel
723 Posts

Posted - 04/08/2008 :  17:41:21  Show Profile  Visit pelegk2's Homepage  Send pelegk2 an ICQ Message  Reply with Quote
dos in SQL2005 exist the possiblity to use "PARATITION" like in
mysql 5.1==> http://dev.mysql.com/doc/refman/5.1/en/partitioning-overview.html

thnaks in advance
peleg

Israel -the best place to live in aftr heaven 9but no one wan't to go there so fast -:)

sodeep
Flowing Fount of Yak Knowledge

USA
7174 Posts

Posted - 04/08/2008 :  17:45:43  Show Profile  Reply with Quote
Didn't get your question clearly? Yes, SQL server 2005 has table partition which is only supported in Enterprise edition.
Go to Top of Page

nr
SQLTeam MVY

United Kingdom
12543 Posts

Posted - 04/08/2008 :  17:48:51  Show Profile  Visit nr's Homepage  Reply with Quote
see
http://www.simple-talk.com/sql/sql-server-2005/partitioned-tables-in-sql-server-2005/

==========================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page

pelegk2
Aged Yak Warrior

Israel
723 Posts

Posted - 04/08/2008 :  18:19:32  Show Profile  Visit pelegk2's Homepage  Send pelegk2 an ICQ Message  Reply with Quote
thnaks for the article!
but i didnt understand what execlly does the left/right in the paratition means?
for example:

CREATE PARTITION FUNCTION MyPartitionRange (datetime)
AS RANGE RIGHT FOR VALUES ('20070101', '20070201', '20070301', '20070401')

what/hoe does the right command Influence on the creation of the paratition?
thnaks in advance
peleg

Israel -the best place to live in aftr heaven 9but no one wan't to go there so fast -:)
Go to Top of Page

sodeep
Flowing Fount of Yak Knowledge

USA
7174 Posts

Posted - 04/08/2008 :  18:29:32  Show Profile  Reply with Quote
For LEFT

1st partition is all data <= ‘20070101’

2nd partition is all data > ‘20070101’


For RIGHT

1st partition is all data < ‘20070101’

2nd partition is all data => ‘20070101’


Check out Microsoft White paper and test it:

http://www.sqlskills.com/resources/Whitepapers/Partitioning%20in%20SQL%20Server%202005%20Beta%20II.htm
Go to Top of Page

pelegk2
Aged Yak Warrior

Israel
723 Posts

Posted - 05/26/2008 :  09:38:11  Show Profile  Visit pelegk2's Homepage  Send pelegk2 an ICQ Message  Reply with Quote
few questions about paration's :
1)if i already have a table - do i need to delete it to build it with paratition's?
if not what do i need to do so it will support paratitioning?
2)i want to build paratitions in ranges for each date, for example :
20080526000000 to 20080526235959 (day)
20080527000000 to 20080527235959 (day)
and so on.........
how can i create this paration's dynamicly,and how do i delete old paratitions?
thnaks in advance
peleg


Israel -the best place to live in aftr heaven 9but no one wan't to go there so fast -:)
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

India
52317 Posts

Posted - 05/26/2008 :  09:44:31  Show Profile  Reply with Quote
http://www.databasejournal.com/features/mssql/article.php/3643726
Go to Top of Page

sodeep
Flowing Fount of Yak Knowledge

USA
7174 Posts

Posted - 05/26/2008 :  10:02:27  Show Profile  Reply with Quote
1)No
2) Did you see the white paper ?
3) See whitepaper for Partitioning for Switch out.
Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

Sweden
30265 Posts

Posted - 05/26/2008 :  10:22:33  Show Profile  Visit SwePeso's Homepage  Reply with Quote
There is alter partition function too.



E 12°55'05.25"
N 56°04'39.16"
Go to Top of Page

pelegk2
Aged Yak Warrior

Israel
723 Posts

Posted - 05/26/2008 :  12:07:49  Show Profile  Visit pelegk2's Homepage  Send pelegk2 an ICQ Message  Reply with Quote
any one know's what does this means :
quote:
ALTER PARTITION SCHEME MyPartitionScheme NEXT USED [PRIMARY]


thnaks in advance
peleg

Israel -the best place to live in aftr heaven 9but no one wan't to go there so fast -:)
Go to Top of Page

rmiao
Flowing Fount of Yak Knowledge

USA
7266 Posts

Posted - 05/26/2008 :  20:48:03  Show Profile  Reply with Quote
Specify filegroup. Does books online tell you that?
Go to Top of Page

pelegk2
Aged Yak Warrior

Israel
723 Posts

Posted - 05/27/2008 :  04:09:42  Show Profile  Visit pelegk2's Homepage  Send pelegk2 an ICQ Message  Reply with Quote
the reason that i ask about it, its beacuse when i tried to
chaghe the paratition few times i must use :
ALTER PARTITION SCHEME MyPartitionScheme NEXT USED [PRIMARY]
else i am getting this error :
quote:

Msg 7707 :
The associated partition function 'MyPartitionRange' generates more partitions than there are file groups mentioned in the scheme 'MyPartitionScheme'.


and the solution was to do :

ALTER PARTITION SCHEME MyPartitionScheme NEXT USED [PRIMARY]
ALTER PARTITION FUNCTION MyPartitionRange () split RANGE (10)
ALTER PARTITION SCHEME MyPartitionScheme NEXT USED [PRIMARY]
ALTER PARTITION FUNCTION MyPartitionRange () split RANGE (12)

Israel -the best place to live in aftr heaven 9but no one wan't to go there so fast -:)
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