Lost your password?

Blogs about: Sql Scripts

SQL SERVER - Understanding Table Hints with Examples4 comments

pinaldave wrote 2 days ago: Introduction Today we have a very interesting subject to look at. I tried to look for help online bu … more →

Tags: Pinal Dave, SQL, SQL Authority, SQL Joins, SQL Performance, SQL Query, SQL Server, SQL Tips and Tricks, T-SQL

List of Table Constraints in sql server

viralsarvaiya wrote 2 days ago: There five type of constrains provided by SQL Server. We shall see each one of then in details 1. Pr … more →

Tags: SQL Server, SQL, SQL Query, SQL Tips and Tricks, SQLSERVER, T-SQL, table constraints, Primary Key Constraint, foreign key constraint

SQL SERVER - Size of Index Table - A Puzzle to Find Index Size for Each Index on Table7 comments

pinaldave wrote 3 days ago: It is very easy to find out some basic details of any table using the following Stored Procedure. US … more →

Tags: Pinal Dave, Reader's question, SQL, SQL Authority, SQL Index, SQL Puzzle, SQL Query, SQL Server, SQL Stored Procedure

SQL SERVER - Policy Based Management - Create, Evaluate and Fix Policies

pinaldave wrote 1 week ago: Introduction This article will cover the most spectacular feature of SQL 2008 – Policy-based m … more →

Tags: Database, Pinal Dave, Software development, SQL, SQL Authority, SQL Query, SQL Server, SQL Tips and Tricks, T-SQL

SQL SERVER - Disable CHECK Constraint - Enable CHECK Constraint4 comments

pinaldave wrote 1 week ago: Foreign Key and Check Constraints are two types of constraints that can be disabled or enabled when … more →

Tags: Pinal Dave, SQL, SQL Authority, SQL Constraint and Keys, SQL Index, SQL Query, SQL Server, SQL Tips and Tricks, T-SQL

SQL Server - System Stored Procedure Script

Bhavesh Patel wrote 1 week ago: System Stored Procedure Script Have you seen script of System Stored Procedure of SQL Server? Well i … more →

Tags: SQL Tips and Tricks, Bhavesh Patel, sp_helptext, SQL, SQL Query, SQL Server, SQL Tips and Tricks, SQLSERVER, System Stored Procedure code

SQL SERVER - Removing Key Lookup - Seek Predicate - Predicate - An Interesting Observation Related to Datatypes3 comments

pinaldave wrote 1 week ago: Recently, I have been working on Query Optimization project. While working on it, I found the follow … more →

Tags: Pinal Dave, SQL, SQL Authority, SQL Index, SQL OPTIMIZATION, SQL Performance, SQL Query, SQL Server, SQL Tips and Tricks

SQL SERVER - Stored Procedure are Compiled on First Run - SP taking Longer to Run First Time5 comments

pinaldave wrote 1 week ago: During the PASS summit, one of the attendees asked me the following question. Why the Stored Procedu … more →

Tags: Pinal Dave, SQL, SQL Authority, SQL Interview Questions and Answers, SQL Query, SQL Server, SQL Stored Procedure, SQL Tips and Tricks, T-SQL

SQL Server - SERVERPROPERTY Function

Bhavesh Patel wrote 1 week ago: SERVERPROPERTY Function How does one get list all Server Properties? Well, we can use a very helpful … more →

Tags: SQL Function, SQL, SQL Query, SQL Server, Bhavesh Patel, SQL Tips and Tricks, SQLSERVER, T-SQL, technology

SQL Server - List all Foreign Key Constraints of Database or Table

Bhavesh Patel wrote 2 weeks ago: List all Foreign Key Constraints of Database or Table How often we face this problem? The Foreign Ke … more →

Tags: SQL Tips and Tricks, SQL, SQL Query, SQL Server, Bhavesh Patel, SQL Tips and Tricks, SQLSERVER, T-SQL, technology

SQL Server - Drop All Table Constraints

Bhavesh Patel wrote 2 weeks ago: Drop All Table Constraints You want to redefine all the constraints set on a Table. To do that you n … more →

Tags: SQL Tips and Tricks, SQL, SQL Query, SQL Server, Bhavesh Patel, SQL Tips and Tricks, SQLSERVER, T-SQL, technology

SQL Server - List all Constraints of Database or Table

Bhavesh Patel wrote 2 weeks ago: List all Constraints of Database or Table Many times when we are using DML commands like: INSERT, UP … more →

Tags: SQL Tips and Tricks, SQL, SQL Query, SQL Server, Bhavesh Patel, SQL Tips and Tricks, SQLSERVER, T-SQL, technology

SQL Server - Find Nth Highest or Lowest Value in Table

Bhavesh Patel wrote 2 weeks ago: Find Nth Highest or Lowest Value in Table This one is a tricky question. We all assume that this is … more →

Tags: SQL Tips and Tricks, Bhavesh Patel, Finding Nth highest value, Interview Question, Lowest value, Second-highest, second lowest, SQL, SQL Query

SQL Server - How to Handle Single Quote in String

Bhavesh Patel wrote 2 weeks ago: How to Handle Single Quote in String This is the common one-time problem (not for all ) faced by a n … more →

Tags: SQL Tips and Tricks, Bhavesh Patel, Handle Single Quote in String, Msg 105 Unclosed quotation mark after the character str, nvarchar, Quote, quote in varchar, Quotes, single quote

SQL Server - Set Functions - COUNT, MAX, MIN, SUM and AVG

Bhavesh Patel wrote 3 weeks ago: Set Functions – COUNT, MAX, MIN, SUM and AVG Many times the information we require from table … more →

Tags: SQL Function, avg, Bhavesh Patel, count, max, min, Set Functions, SQL, SQL Query

SQL Server - Difference between Primary key and Unique Key

Bhavesh Patel wrote 3 weeks ago: Difference between Primary key and Unique Key I hope you know it, as this is one to most frequently … more →

Tags: SQL DDL Statements, Bhavesh Patel, Difference between Primary key and Unique Key, Primary Key, Primary Key vs Unique Key, SQL, SQL Query, SQL Server, SQL Tips and Tricks

SQL SERVER - How to Enable Index - How to Disable Index - Incorrect syntax near 'ENABLE'6 comments

pinaldave wrote 3 weeks ago: Many times I have seen that the index is disabled when there is large update operation on the table. … more →

Tags: Pinal Dave, SQL, SQL Authority, SQL Index, SQL Query, SQL Server, SQL Tips and Tricks, T-SQL, technology

SQL SERVER - Difference Between Candidate Keys and Primary Key15 comments

pinaldave wrote 1 month ago: Introduction Not long ago, I had an interesting and extended debate with one of my friends regarding … more →

Tags: Pinal Dave, SQL, SQL Authority, SQL Constraint and Keys, SQL Query, SQL Server, SQL Tips and Tricks, T-SQL, technology

SQL SERVER - Change Collation of Database Column - T-SQL Script - Consolidating Collations - Extention Script

pinaldave wrote 1 month ago: This document is created by Brian Cidern, he has written this excellent extension to SQL Expert who … more →

Tags: reader's contribution, Reader's question, SQL, SQL Authority, SQL Query, SQL Server, SQL Tips and Tricks, sqlcmd, T-SQL


Have your say. Start a blog.

See our free features →

Related Tags
All →

Follow this tag via RSS