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 - Marking Filegroup as ReadOnly with SQL Server

SQL SERVER – Marking Filegroup as ReadOnly with SQL Server

March 17, 2015
Pinal Dave
SQL Tips and Tricks
SQL Server Security

Readers asked how to mark a filegroup as ReadOnly. Here is a T-SQL script that creates a test database, adds a filegroup and marks it ReadOnly.

Read More
Registry Editor.

SQL SERVER – SCRIPT – SQL Listening on Dynamic Port?

March 14, 2015
Pinal Dave
SQL Tips and Tricks
SQL Server Security

How do you know if SQL Server is listening on a fixed or dynamic port? Here is a script that reads the TcpDynamicPorts registry value for your instance.

Read More
Gouache painting: one brass key hanging on a post beside a long row of identical wooden garden gates in a stone wall, every gate ajar, a small vermilion ribbon tied to the key

Add a User Across Databases: A Tested Script With Cleanup

March 9, 2015
Pinal Dave
SQL Tips and Tricks
Dynamic SQL, SQL Login, SQL Scripts, SQL Server Security

To add a user across databases you need one login and, in every chosen database, a user and a role. This post gives a tested script that does it, checks it and removes it again on SQL Server 2025. It also answers the model database question and shows the server-level shortcut.

Read More
Gouache painting: two armchairs facing each other by a tall window, a small round table between them holding a ring of old keys and a closed padlock; one key tag is vermilion

SQL SERVER – Security Conversations and Notes with a DBA

March 3, 2015
Pinal Dave
SQL Tips and Tricks
SQL Server Security

At a Pluralsight booth, a DBA from the banking world asked me many SQL Server security questions. Here are my notes from those security conversations.

Read More
A letter slot seen from inside a front door, with a fine metal cage fitted behind it.

SQL SERVER – One Trick of Handling Dynamic SQL to Avoid SQL Injection Attack?

February 6, 2015
Pinal Dave
SQL Tips and Tricks
MySQL, SQL Scripts, SQL Server, SQL Server Security

SQL Injection is not a SQL Server problem, it comes from coding habits. Here is one trick of handling dynamic SQL to avoid SQL injection attack on a search page.

Read More
SQL SERVER - Invoking a Stored Procedure from Azure Mobile Services - Notes from the Field #066

SQL SERVER – Invoking a Stored Procedure from Azure Mobile Services – Notes from the Field #066

February 5, 2015
Pinal Dave
SQL Tips and Tricks
Notes from the Field, SQL Server, SQL Server Security

Can you call a SQL stored procedure from Azure Mobile Services? In Notes from the Field #066, Kevin Hazzard shows how, with a bit of humor along the way.

Read More
A man laughing.

SQL SERVER – The DBA goes to MARS – Maintenance, Architecture, Research and Support – Notes from the Field #063

January 22, 2015
Pinal Dave
SQL Tips and Tricks
Notes from the Field, SQL Server Security

Stuart Ainsworth tells a captivating story on why the DBA goes to MARS: Maintenance, Architecture, Research and Support, the proactive side of the job.

Read More
Previous 1 … 23 24 25 26 27 28 29 … 56 Next
  • Books
  • Testimonials
  • Privacy Policy

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