Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 11212

Splitting a database table into multiple segments for performance or manageability.

1 vote
1 answer
2k views

Partition Tables Based on a non-Date Based Column

Can the client key be used in the partitioning function? … Is partitioning by clients name practical in Sql Server. …
Ross Bush's user avatar
  • 629
0 votes
0 answers
52 views

RLS Does Not Bind Queries to List Partitioned Partitions

Each table in this database is partitioned with a column named SourceId, list partitioned such that SourceId= 'COKE' or 'PEPSI', etc. RLS(Row Level Security) is being used such that each user will be …
Ross Bush's user avatar
  • 629
0 votes
1 answer
44 views

SSDT Project Will Not Publish or Generate Preview When Source and Target Partition Function ...

In a SSDT project there is a partition function defined in a file as follows. CREATE PARTITION FUNCTION [pfSourceID](varchar(50)) AS RANGE RIGHT FOR VALUES ( '', 'COKE', 'DRPEPPER', 'MOUNTAINDEW', 'P …
Ross Bush's user avatar
  • 629
0 votes

SSDT Project Will Not Publish or Generate Preview When Source and Target Partition Function ...

This was solved by the following steps: Align the PARTITON FUNCTION checked in to source control with the target databases current state. (If moving properly up the deployment chain, this should not …
Ross Bush's user avatar
  • 629
0 votes
1 answer
117 views

TRUNCATE WITH PARTITION Constantly Fails on 1 Out of 620 Tables

There is a table that seems to have constant updates. There is also a stored procedure that runs periodically and iterates through tables and attempts to truncate a partition of data using the command …
Ross Bush's user avatar
  • 629
1 vote
Accepted

TRUNCATE WITH PARTITION Constantly Fails on 1 Out of 620 Tables

As Dan Guzman mentioned, a truncate requires exclusive access to the entire table. It appears this is the case even when truncating a specific partition, as opposed to just requiring exclusive access …
Ross Bush's user avatar
  • 629