This month's discount Comprehensive Database Performance Health Check · Testimonials
SQLAuthority with Pinal Dave
Home
  • Consulting
    • Health Check
  • Free Videos
  • All Articles
    • AI
    • SQL Performance
    • SQL Tips and Tricks
    • Interview Questions and Answers
    • SQL Puzzle
    • SQL Video
    • SQLAuthority News
    • Personal
  • Books
  • Consulting
SQL SERVER - Fix - Error: 1060 The number of rows provided for a TOP or FETCH clauses row count parameter must be an integer

SQL SERVER – Fix – Error: 1060 The number of rows provided for a TOP or FETCH clauses row count parameter must be an integer

March 22, 2013
Pinal Dave
SQL Tips and Tricks
SQL Error Messages

Error 1060 says the rows for a TOP or FETCH clause must be an integer. I tracked down its cause in a friend’s 10000 line stored procedure and fixed it.

Read More
SQL SERVER - Identify Last User Access of Table using T-SQL Script

SQL SERVER – Identify Last User Access of Table using T-SQL Script

March 21, 2013
Pinal Dave
SQL Tips and Tricks
SQL DMV, SQL Scripts

How do you find the last user access of a table? A question at TechEd India 2013 led to this quick DMV script. Keep in mind the data resets on restart.

Read More
A cloth-covered leather strip whose raised crease remains visible

Masked Values: What Dynamic Data Masking Does Not Hide

March 18, 2013
Pinal Dave
SQL Tips and Tricks
SQL Server, SQL Server Encryption, SQL Server Security

A masked column shows zeros, but a user with SELECT can still filter, sort and guess the real values. Here is the proof and the fix.

Read More
A pastry docker above equal pastry sheets turned in different directions

Does Column Order in CREATE TABLE Change How Rows Are Stored?

March 17, 2013
Pinal Dave
SQL Tips and Tricks
SQL Index, SQL Scripts, SQL Server

Someone wants to reorder columns to shrink rows. I measured it on SQL Server 2025, and the answer is mostly no, with one small exception worth knowing.

Read More
Gouache painting of a xylophone with one new red bar fitted into the middle of the row

How to Add Column at Specific Position in SQL Server

March 11, 2013
Pinal Dave
SQL Tips and Tricks
SQL Column, SQL Scripts, SQL Server, SQL Server Management Studio

To add column at specific position in SQL Server, you have three tested options, because ALTER TABLE always adds the column last. This post shows a SELECT list, a view for loads and reports, and a full table rebuild. It also explains what the rebuild costs.

Read More
Glass lavender alembic feeding a small oil vial beside an intact rooted lavender plant

BACPAC or Backup: When an Export Is the Wrong Tool

March 10, 2013
Pinal Dave
SQL Tips and Tricks
SQL Backup and Restore, SQL Migration, SQL Server

A BACPAC export has rows in it, but it is not a recovery backup. Here is a small demo that shows the difference.

Read More
A lone hawthorn tree bent sideways by old winds on a calm day, a red gate below.

Finding Procedures Created With the Wrong SET Options

March 9, 2013
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Server, SQL Stored Procedure

Find procedures with wrong SET options in sys.sql_modules, understand error 1934, and recreate modules with ANSI_NULLS and QUOTED_IDENTIFIER ON.

Read More
Previous 1 … 331 332 333 334 335 336 337 … 572 Next
  • Books
  • Testimonials
  • Privacy Policy

© 2006 – 2026 All rights reserved. pinal @ SQLAuthority.com