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 - Stored Procedure to Know Database Access Permission to Current User

SQL SERVER – Stored Procedure to Know Database Access Permission to Current User

September 23, 2007
Pinal Dave
SQL Tips and Tricks
SQL Cursor, SQL Scripts, SQL Stored Procedure, Undocumented SQL

Which databases can I use? Run EXEC sp_MShasdbaccess to see the database access permission of the current user. Our Jr. DBAs check it all the time.

Read More
SQL SERVER - 2005 - Version Information and Additional Information - Extended Stored Procedure xp_msver

SQL SERVER – 2005 – Version Information and Additional Information – Extended Stored Procedure xp_msver

September 22, 2007
Pinal Dave
SQL Tips and Tricks
SQL Scripts

EXEC xp_msver returns SQL Server version information plus server details like platform, language and file version, with no need to check Windows system info.

Read More
SQL SERVER - 2005 - Multiple Language Support

SQL SERVER – 2005 – Multiple Language Support

September 21, 2007
Pinal Dave
SQL Tips and Tricks
SQL Scripts

Multiple language support in SQL Server: sys.syslanguages holds the details for each language, including month and day names. One query lists them all.

Read More
SQL SERVER - FIX : ERROR : 3260 An internal buffer has become full

SQL SERVER – FIX : ERROR : 3260 An internal buffer has become full

September 20, 2007
Pinal Dave
SQL Tips and Tricks
SQL Error Messages

Error 3260, an internal buffer has become full, hit one of our older servers many times. A reboot and more RAM for the server and SQL Server helped.

Read More
SQL SERVER - Rename Database to New Name Using Stored Procedure by Changing to Single User Mode

SQL SERVER – Rename Database to New Name Using Stored Procedure by Changing to Single User Mode

September 19, 2007
Pinal Dave
SQL Tips and Tricks
Database, SQL Scripts, SQL Stored Procedure

How we rename database copies on our development server: set it to single user mode, run sp_renamedb, then set it back. The file names do not change.

Read More
SQL SERVER - UDF - Validate Positive Integer Function - Validate Natural Integer Function

SQL SERVER – UDF – Validate Positive Integer Function – Validate Natural Integer Function

September 18, 2007
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts

A Jr. DBA at my company changed my integer check so it accepts only a positive integer. I share his udf_IsNatural function with a few test values.

Read More
SQL SERVER - Difference Between UPDATE and UPDATE()

SQL SERVER – Difference Between UPDATE and UPDATE() in Triggers

September 17, 2007
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts

UPDATE changes rows in a table or view, while UPDATE() in triggers tells you if a column was part of an INSERT or UPDATE. Here is the difference.

Read More
Previous 1 … 534 535 536 537 538 539 540 … 570 Next
  • Books
  • Testimonials
  • Privacy Policy

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