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
Database Location Change Tool.

SQL SERVER – Changing Default Installation Path for SQL Server

November 11, 2012
Pinal Dave
SQL Tips and Tricks
SQL Server Management Studio

Tired of moving MDF and LDF files after you create a database? Change the default installation path in server properties so new databases go where you want.

Read More
Open cleanout hatch aligned with a chimney flue

Finding the Error Log Folder and Other Paths From T-SQL

October 29, 2012
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server, SQL Server Management Studio

Pasted a server path into File Explorer and found nothing? The folder is on the server, not your laptop. Here are the queries that tell you where.

Read More
Gouache painting of a balance scale where one small framed painting with a red frame outweighs a heap of pebbles

Draw Pictures with T-SQL: The SSMS Spatial Results Tab

September 28, 2012
Pinal Dave
SQL Tips and Tricks
Spatial Database, SQL Scripts, SQL Server Management Studio

The SSMS Spatial results tab draws every geometry value a query returns. This post draws a house and a tree with STGeomFromText and STBuffer, explains labels and the 5,000 object limit, and checks store service areas for overlaps and gaps.

Read More
Gouache painting of a row of potted herbs on two greenhouse shelves with the lead pot painted red

Copy Column Headers From SSMS Results to Excel

September 26, 2012
Pinal Dave
SQL Tips and Tricks
Excel, SQL Server Management Studio, SQL Shortcut, SQL Utility

To copy column headers from SSMS results, use Copy with Headers or press Ctrl+Shift+C. This post also shows the Options setting that includes headers every time, why a change can seem to do nothing, and how to stop Excel from dropping leading zeros.

Read More
SQL SERVER - Excel Losing Decimal Values When Value Pasted from SSMS ResultSet

SQL SERVER – Excel Losing Decimal Values When Value Pasted from SSMS ResultSet

September 24, 2012
Pinal Dave
SQL Tips and Tricks
Excel, SQL Server, SQL Server Management Studio, SQL Utility

I often get questions that how to fix the issue where excel loses decimal values when values are pasted from SSMS Resultset. 

Read More
SQL SERVER - Replace a Column Name in Multiple Stored Procedure All Together

SQL SERVER – Replace a Column Name in Multiple Stored Procedure All Together

September 21, 2012
Pinal Dave
SQL Tips and Tricks
SQL Server, SQL Server Management Studio, SQL Stored Procedure

A beginner on a development server asked how to replace a column name in Multiple Stored Procedure code all together. Here is the quick way I suggest.

Read More
SQL Server query designer top 100 percent.

SQL SERVER – SSMS Automatically Generates TOP (100) PERCENT in Query Designer

September 18, 2012
Pinal Dave
SQL Tips and Tricks
SQL Server Management Studio, SQL View

Why does Query Designer in SSMS keep adding TOP (100) PERCENT when you create a view? A forum question, the full scenario, and what is going on.

Read More
Previous 1 … 36 37 38 39 40 41 42 … 49 Next
  • Books
  • Testimonials
  • Privacy Policy

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