Kathi Kellenberger

Kathi Kellenberger is a Sr. Consultant with Pragmatic Works. She is an author, speaker and trainer.
  • Interests: Walking, running, grandchildren!

SQLServerCentral Article

Using Parameters with Stored Procedures

It seems that SQL Server developers avoid stored procedures whenever possible, especially if they are new to the product. Kathi Kellenberger brings us a basic article that you can give to developers that explains the basics of how you use parameters with ADO.NET, especially output parameters.

4.18 (28)

You rated this post out of 5. Change rating

2019-05-23 (first published: )

119,671 reads

SQLServerCentral Editorial

Query Tuning Assistant: A Tool for Upgrades

If you have been working with SQL Server long enough, you have probably been involved with a SQL Server 2000 to 2005 upgrade. It was painful for many shops due to the deprecation of some features like DTS and the removal of old-fashioned comma joins with the plus operator. It was worth the pain as […]

You rated this post out of 5. Change rating

2019-03-25

1,208 reads

SQLServerCentral Editorial

Doing the Right Thing

From the time you rise in the morning until you close your eyes at night, your day is filled with thousands of small decisions, many that you don’t even think about. For each decision that you make, there is a probably a good choice and a poor choice available. Most of the time, the good […]

You rated this post out of 5. Change rating

2019-01-28

130 reads

SQLServerCentral Editorial

PASS Summit 2018 Recap

This year, PASS celebrated the 20th PASS Summit. As it has been many times, this year’s Summit was held in Seattle. PASS Summit has visited other locations such as Orlando and Charlotte, but, at least to me, it feels like home when it’s hosted in Seattle. For those of us who have participated for many […]

You rated this post out of 5. Change rating

2018-11-19

31 reads

SQLServerCentral Editorial

Explaining Our Professions to Our Parents

Have you ever had a difficult time explaining what your job entails to your parents or other family members? You may be working in a field that didn’t exist 20 years ago, such as mobile device development, or your job may be so specialized that non-technical people will never understand. Now that my job title […]

You rated this post out of 5. Change rating

2018-11-05

88 reads

SQLServerCentral Editorial

What Should You Look for in a SQL Monitoring Tool?

Performance is a common reason to monitor SQL Server. The work day of a database administrator is often interrupted with unexpected calls about slowness in applications or reports. But, how does the performance today compare to the performance last week or last month? Can the root cause of the issue be traced to the database […]

You rated this post out of 5. Change rating

2018-10-08

37 reads

SQLServerCentral Editorial

SQL Server Gets Smarter and Smarter

With each recent version of SQL Server, Microsoft has added features that can be used to improve query performance with much less effort than traditional index and query tuning require. First was Query Store, introduced with 2016. When enabled, this feature allows you to easily find regression in query performance due to changing execution plans. […]

4.5 (2)

You rated this post out of 5. Change rating

2018-05-21

72 reads

SQLServerCentral Editorial

SQL Community

Back in my early days as a database administrator, almost 16 years ago, I happened upon a web site called SQL Server Central. Because I found so many useful articles and forum posts, the site was open in my browser at work every single day. It was a great source of information, and eventually, I […]

4 (3)

You rated this post out of 5. Change rating

2018-04-23

90 reads

SQLServerCentral Article

So Many Choices with SQL Server

There was a day when you didn’t have many decisions to make about a new SQL Server instance. You had to choose from a few editions and two licensing models: per proc or server cal. It wasn’t long ago that SQL Server would almost always be installed on a physical server on premises, and the […]

You rated this post out of 5. Change rating

2018-03-26

75 reads

Blogs

The Book of Redgate: We Value Teams

By

This value is something that I still hear today: our best work is done...

Troubleshooting TempDB Log Full Errors When SSMS Won’t Connect

By

Have you ever received the dreaded error from SQL Server that the TempDB log...

Accelerating AI with Confidence: Why Microsoft Purview is Key to Responsible Innovation

By

Artificial intelligence is no longer a distant concept. It is here, embedded in the...

Read the latest Blogs

Forums

Planning for tomorrow, today - database migrations

By John Martin

Comments posted to this topic are about the item Planning for tomorrow, today -...

Bottlenecks on SQL Server performance

By runarlan

We have a BI-application that connects to input tables on a SQL Server 2022...

Is there some good routines for updating SQL Server database objects with GitHub

By Rod at work

At work we've been getting better at writing what's known as GitHub Actions (workflows,...

Visit the forum

Question of the Day

The Tightly Linked View

I try to run this code on SQL Server 2022. All the objects exist in the database.

CREATE OR ALTER VIEW OrderShipping
AS
SELECT cl.CityNameID,
       cl.CityName,
       o.OrderID,
       o.Customer,
       o.OrderDate,
       o.CustomerID,
       o.cityId
 FROM dbo.CityList AS cl
 INNER JOIN dbo.[Order] AS o ON o.cityId = cl.CityNameID
GO
CREATE OR ALTER FUNCTION GetShipCityForOrder
(
    @OrderID INT
)
RETURNS VARCHAR(50)
WITH SCHEMABINDING
AS
BEGIN
    DECLARE @city VARCHAR(50);
    SELECT @city = os.CityName
    FROM dbo.OrderShipping AS os
    WHERE os.OrderID = @OrderID;
    RETURN @city;
END;
go
What is the result?

See possible answers