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 - 2005 - Get Current User - Get Logged In User

SQL SERVER – 2005 – Get Current User – Get Logged In User

October 27, 2007
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts, SQL Server Security, SQL System Table

How to get current user for a query in SQL Server 2005: SELECT SYSTEM_USER returns the name of the current context, which helps with debugging and security.

Read More
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
Server is configured for RPC.

SQL SERVER – 2005 – Fix : Error : Msg 7411, Level 16, State 1 Server is not configured for RPC

October 18, 2007
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Server Management Studio, SQL Server Security

Msg 7411 says the server is not configured for RPC. A Jr. DBA I am training found the fix on his own: turn the RPC option from False to True.

Read More
A narrow post office service window revealing only a few wooden pigeonholes of the sorting wall behind it.

Querying Active Directory From SQL Server

September 16, 2007
Pinal Dave
SQL Tips and Tricks
Linked Server, SQL Domain Controller, SQL Server, SQL Server Security

Querying active directory through an ADSI linked server can answer narrow questions, but its limits favor staged data for repeatable work.

Read More
SQL SERVER - Frequency of SQL Server Reboot and Restart

SQL SERVER – Frequency of SQL Server Reboot and Restart

September 11, 2007
Pinal Dave
SQL Tips and Tricks
Database, DBA, SQL Server Security

How often should you do a SQL Server reboot? From my experience there is no need, though our network team reboots all our servers every 15 days.

Read More
Two plain brass keys with different teeth beside a small wooden lock block on a table.

Orphaned Users After a Restore, and How to Fix Them

August 2, 2007
Pinal Dave
SQL Tips and Tricks
Best Practices, Database, SQL Server, SQL Server Security

Find orphaned users after a SQL Server restore, compare user and login SIDs, and repair the intended mapping with ALTER USER.

Read More
Convert Query Results.

SQL SERVER – 2005 – SSMS – View/Send Query Results to Text/Grid/Files

July 19, 2007
Pinal Dave
SQL Performance
SQL Download, SQL Error Messages, SQL Joins, SQL Scripts, SQL Server DBCC, SQL Server Security

Three ways to send query results to text, grid or file in SSMS: the shortcuts CTRL+T, CTRL+D and CTRL+SHIFT+F, the toolbar, or the menu bar.

Read More
Previous 1 … 47 48 49 50 51 52 53 … 56 Next
  • Books
  • Testimonials
  • Privacy Policy

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