Peter PitLock's user avatar
Peter PitLock's user avatar
Peter PitLock's user avatar
Peter PitLock
  • Member for 10 years, 8 months
  • Last seen more than a week ago
18 votes
2 answers
21k views

Moving from SQL 2005 [SQL_Latin1_General_CP1_CI_AS] to 2008 - will I lose any features by using 'backwards compatibility'

14 votes
2 answers
29k views

Understanding varchar(max) 8000 column and why I can store more than 8000 characters in it

8 votes
1 answer
4k views

SQLPackage : Import or Export SQL Azure BACPAC without users

7 votes
3 answers
8k views

Running Total which Resets when Customer changes (keeping existing RowNumbers)- attempt included

7 votes
3 answers
381 views

Everyone warns against shrinking a database, but will it work in my case? 1 GB db with tables removed now 100 MB

6 votes
1 answer
23k views

Operand type clash: my first User Defined Type with list of Integers, how to test via SSMS

5 votes
1 answer
982 views

After 5 years of working, SQL Server 2k5 Table now locking without any changes made to DB

4 votes
2 answers
7k views

Update row based on match to previous row

4 votes
1 answer
294 views

Advice on setting up a Reporting server

4 votes
1 answer
3k views

Why do I have to backup a transaction log twice for it to shrink?

3 votes
0 answers
366 views

VSS Writer : RESTORE VERIFYONLY FROM VIRTUAL_DEVICE breaks log shipping

3 votes
2 answers
295 views

Query has where (a = a) or (b = b) - the 2nd part causing index scan. Full example included

3 votes
2 answers
2k views

Can 2 tables lock each other if concurrent read/update do not affect same rows? pagelocks off

2 votes
1 answer
179 views

Can one assign a performance score to a stored proc to compare performance of 2 procs

2 votes
1 answer
945 views

Does rowlocks on index cause keylocks? : Transaction (Process ID xy) was deadlocked, example included

2 votes
1 answer
17k views

View all 32 possible Binary combinations for 5 digits

2 votes
1 answer
2k views

Inside stored procedure, set column names of returned query according to variable

2 votes
1 answer
601 views

Databases created with different collations - why?

2 votes
1 answer
597 views

SQL Server 2008 R2 - remove line below heading (which has ----,----) - dont have SSIS

2 votes
3 answers
758 views

Compare each day of year with DATEFIRST = 1 and DATEFIRST = 7

2 votes
2 answers
1k views

Possible to intercept and alter SQL Queries in the engine before it gets executed?

2 votes
1 answer
4k views

SQL Server Availability Group does not update DB owner automatically

1 vote
0 answers
2k views

"The server principal is not able to access the database under the current security context" - Availability Group

1 vote
1 answer
497 views

View history of preferred replica in Availability Group - when

1 vote
2 answers
670 views

Local SSMS connected to VPN SQL Instance - update fails when VPN disconnects

1 vote
1 answer
114 views

Security per database in SQL Azure Pool

1 vote
3 answers
4k views

Matching 3 columns in row - if one column is null then exclude it from comparison

1 vote
1 answer
144 views

SQL 2014 Availability group of Same DB produces different size Backup from Node A to Node B

1 vote
1 answer
1k views

Log Shipping - Monitor Server Down - Copying happening but not restoring on secondary

1 vote
2 answers
780 views

Read GPS Coordinates into LineString from Table