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 - Get Permissions of My Username / Userlogin on Server / Database

SQL SERVER – Get Permissions of My Username / Userlogin on Server / Database

October 23, 2007
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts, SQL Server Security, SQL Stored Procedure, SQL System Table

Invited to review a big company’s schema, I wanted to know my own permissions without asking their DBA. fn_my_permissions shows them at server and database level.

Read More
SQL SERVER - Difference Between @@Version and xp_msver - Retrieve SQL Server Information

SQL SERVER – Difference Between @@Version and xp_msver – Retrieve SQL Server Information

October 22, 2007
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts, SQL Stored Procedure, SQL System Table

SELECT @@Version gives the SQL Server version, edition and service pack in one string. I compare @@Version and xp_msver, which returns more server details.

Read More
SQL Server Database Settings.

SQL SERVER – Set Server Level FILLFACTOR Using T-SQL Script

October 20, 2007
Pinal Dave
SQL Performance
SQL Index, SQL Performance, SQL Scripts, SQL Server

A short T-SQL script to set server level FILLFACTOR, plus the Books Online definition of FILLFACTOR and what its values from 0 to 100 mean.

Read More
SQL SERVER - Three T-SQL Script to Create Primary Keys on Table

SQL SERVER – Three T-SQL Script to Create Primary Keys on Table

October 16, 2007
Pinal Dave
SQL Tips and Tricks
SQL Constraint and Keys, SQL Scripts

Three T-SQL scripts to create primary keys: two while creating the table and one with ALTER TABLE later, where the column must first be NOT NULL.

Read More
SQL SERVER - Explanation and Understanding NOT NULL Constraint

SQL SERVER – Explanation and Understanding NOT NULL Constraint

October 15, 2007
Pinal Dave
SQL Performance
SQL Constraint and Keys, SQL Joins, SQL NULL, SQL Scripts

What a NOT NULL constraint does and two ways to add one: when the table is created, or after the table is created. My example covers both.

Read More
SQL SERVER - Three Rules to Use UNION

SQL SERVER – Three Rules to Use UNION

October 14, 2007
Pinal Dave
SQL Performance
SQL Joins, SQL Scripts, SQL Union clause

The three rules to use UNION from Ben Forta’s T-SQL book: two or more SELECT statements, the same columns in the same order, and compatible data types.

Read More
SQL SERVER - Pre-Code Review Tips - Tips For Enforcing Coding Standards

SQL SERVER – Pre-Code Review Tips – Tips For Enforcing Coding Standards

October 12, 2007
Pinal Dave
SQL Tips and Tricks
Database, DBA, SQL Coding Standards, SQL Scripts

Pre-code review tips for DBAs: why I check stored procedures on our development server every day for coding standards, with a link to my full article.

Read More
Previous 1 … 301 302 303 304 305 306 307 … 336 Next
  • Books
  • Testimonials
  • Privacy Policy

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