SQL RNNR

Blog Post

Events By Feature

Within the world of SQL Server there are a few things one can be certain of - things will change. This is true of the features in SQL Server....

2016-08-30

Blog Post

Finding the Right Path

What is this gaping hole in the coverage of Extended Events? To be honest, it is not a very complicated topic or very difficult gap to fill. It's just...

2016-08-24

1 reads

Blog Post

T-SQL Tuesday #081: Recap

August 2016 TSQL Tuesday Recap
Related Posts:

T-SQL Tuesday 109: Influence Somebody Invite December 4, 2018

Passion, Challenges, and SQL February 12, 2019

T-SQL Tuesday #102: Giving Back May 8, 2018...

2016-08-18

1 reads

Blog Post

T-SQL Tuesday #081: Getting Sharper

Getting sharper at JSON through a little experimentation.
Related Posts:

Passion, Challenges, and SQL February 12, 2019

T-SQL Tuesday #097: Learning Plans December 18, 2017

T-SQL Tuesday 109: Influence Somebody Invite...

2016-08-16

2 reads

Blogs

A New Word: Ecstatic Shock

By

ecstatic shock – n. a surge of energy upon catching a glimpse from someone...

The CDO’s Playbook for AI Driven Decision Making

By

The New Arena of Leadership The role of the Chief Data Officer is no...

sp_snapshot – The easy way to take database snapshots of one or more databases – V3.0

By

Presenting you with an updated version of our sp_snapshot procedure, allowing you to easily...

Read the latest Blogs

Forums

sp_prepare and sp_execute vs sp_executesql

By rajemessage 14195

I have noticed sp_executesql also makes a single plan for a stmt with parameter...

Who am I?

By Steve Jones - SSC Editor

Comments posted to this topic are about the item Who am I?

Find Invalid Objects in SQL Server

By Nisarg Upadhyay

Comments posted to this topic are about the item Find Invalid Objects in SQL...

Visit the forum

Question of the Day

Who am I?

If I want to track which login called a stored procedure and use the value in an audit, what function can I use to replace the xxx below?

create procedure AddNewCustomer
  @customername varchar(200)
AS
BEGIN
    DECLARE @added VARCHAR(100)
    SELECT @added = xxx

    IF @customername IS NOT NULL
      INSERT dbo.Customer
      (
          CustomerName,
          AddedBy 
      )
      VALUES
      (@customername, @added)
END

See possible answers