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 - Generate A Single Random Number for Range of Rows of Any Table - Very interesting Question from Reader

SQL SERVER – Generate A Single Random Number for Range of Rows of Any Table – Very interesting Question from Reader

January 28, 2009
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Random, SQL Scripts

A reader asked how to get a single random number for a set of rows, like one per PostalCode. I compare NEWID() for each row with RAND() for a whole set.

Read More
Three short plain cords with different simple metal connectors arranged neatly on a wooden tabletop.

Connecting to SQL Server From Java, Python and .NET

January 27, 2009
Pinal Dave
SQL Tips and Tricks
Best Practices, Database, SQL Scripts, SQL Server

Choose a SQL Server driver for Java, Python, or .NET, then verify encryption, authentication, pooling, and the application's connection.

Read More
Displaying AdventureWorks database files.

SQL SERVER – Shrinking NDF and MDF Files – A Safe Operation

January 25, 2009
Pinal Dave
SQL Performance
SQL Data Storage, SQL Scripts, SQL Server DBCC, SQL Server Security

Is shrinking NDF and MDF files safe? A reader asked if it causes data loss. It does not, but I explain why shrinking them is often not a good idea.

Read More
SQL SERVER - 2008 - 2005 - Find Longest Running Query - TSQL - Part 2

SQL SERVER – 2008 – 2005 – Find Longest Running Query – TSQL – Part 2

January 23, 2009
Pinal Dave
SQL Performance
Best Practices, SQL Scripts, SQL Server DBCC, SQL System Table

An updated script to find the longest running query in SQL Server 2005 and 2008, with the divide by zero error fixed and time now shown in milliseconds.

Read More
SQL SERVER - Rules for Optimizining Any Query - Best Practices for Query Optimization

SQL SERVER – Rules for Optimizining Any Query – Best Practices for Query Optimization

January 20, 2009
Pinal Dave
SQL Performance
Best Practices, SQL Scripts

My quick rules for query optimization: a primary key, a clustered index, the right non-clustered indexes, fewer views and triggers, and other simple checks.

Read More
SQL SERVER - Difference Between Index Scan and Index Seek

SQL SERVER – Difference Between Index Scan and Index Seek

January 18, 2009
Pinal Dave
SQL Performance
SQL Index, SQL Scripts

What is the difference between Index Scan and Index Seek? I explain how SQL Server uses search predicates to decide which index operation a query gets.

Read More
ALTER FUNCTION UDF.

SQL SERVER – Remove Duplicate Entry from Comma Delimited String – UDF

January 15, 2009
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts, SQL String

A simple UDF from reader Ashish Jain that removes duplicate entries from a comma delimited string by turning it into a table and using DISTINCT.

Read More
Previous 1 … 293 294 295 296 297 298 299 … 365 Next
  • Books
  • Testimonials
  • Privacy Policy

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