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
A row of small snowmen along a snowy path, each wearing the same red scarf

Running a Command in Every Database Without sp_MSforeachdb

January 5, 2013
Pinal Dave
SQL Tips and Tricks
DBA, Dynamic SQL, SQL Scripts, SQL Server

Run a checked command in every database with a FAST_FORWARD cursor, AG role filter, QUOTENAME, and per-database error log.

Read More
SQL SERVER - Fix: Error: The conversion returned status value 2 and status text "The value could not be converted because of a potential loss of data.". (SQL Server Import and Export Wizard)

SQL SERVER – Fix: Error: The conversion returned status value 2 and status text “The value could not be converted because of a potential loss of data.”. (SQL Server Import and Export Wizard)

December 30, 2012
Pinal Dave
SQL Tips and Tricks
SQL Error Messages

Importing Excel data with the Import and Export Wizard failed with a potential loss of data error. Here is what causes it and how to fix it.

Read More
A glass-fronted emergency box with a spare key inside and a small red hammer on a chain.

Regaining sysadmin Access When Nobody Can Log In

December 29, 2012
Pinal Dave
SQL Tips and Tricks
DBA, SQL Login, SQL Server, SQL Server Security

Regaining sysadmin access starts with single-user SQL Server, a local sqlcmd connection, and a controlled Windows admin group.

Read More
A wheel of cheese cut into wrapped wedges on a wooden board, a long knife across it, one wedge bigger.

Sharding: When One Server Is Not Enough

December 28, 2012
Pinal Dave
SQL Tips and Tricks
Database, Software Development, SQL Server, Table Partitioning

Sharding splits SQL Server data by a stable key when one server cannot meet scale needs; learn routing, cross-shard costs, and simpler options first.

Read More
SQL SERVER - Creating Database with Different Collation on Server

SQL SERVER – Creating Database with Different Collation on Server

December 27, 2012
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server

A client ran two instances on every server just for case sensitivity. Here is how to create a database with a different collation on the same server instead.

Read More
Gouache painting of a finished blue vase beside an identical twin packed safely in a crate with red cloth

Take a Database Backup in SSMS: Step by Step

December 26, 2012
Pinal Dave
SQL Tips and Tricks
SQL Backup and Restore, SQL Scripts, SQL Server Management Studio

To take a database backup in SSMS, right-click the database, choose Tasks, then Back Up, and pick the backup type. This post walks through the dialog, shows the T-SQL that does the same work, explains the log backup error people meet first, and checks the files afterwards.

Read More
A butterfly drying its wings on a twig beside its empty chrysalis

SQL SERVER – Restoring 2012 Database to 2008 or 2005 Version and 2 other Most Asked Questions

December 25, 2012
Pinal Dave
SQL Tips and Tricks
SQL Backup and Restore, SQL Server

Three questions I get all the time: where to get AdventureWorks, restoring a 64-bit backup on a 32-bit server, and restoring a 2012 database to 2008 or 2005.

Read More
Previous 1 … 339 340 341 342 343 344 345 … 572 Next
  • Books
  • Testimonials
  • Privacy Policy

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