TempDB – Relocate the TempDB Database Files
I took control of a new server recently and noticed that Tempdb was not configured to best practice. It was...
2010-03-28
1,283 reads
I took control of a new server recently and noticed that Tempdb was not configured to best practice. It was...
2010-03-28
1,283 reads
For those people who like to use the Activity Monitor in the SQL Server Management Studio GUI instead of, or...
2010-03-25
2,863 reads
I recently posted a couple of scripts that backup all databases on your SQL Server instance to disk with a...
2010-03-23
1,319 reads
My last post showed a little script that I use for taking full backups of all my databases on an...
2010-03-21
7,787 reads
We all know the importance of taking regular backups of our SQL Server databases. This is a useful little script...
2010-03-18
1,711 reads
This is a short post on enabling file streaming. I have read a few sources that cover the same topic...
2010-03-16
734 reads
Recently I wrote a short post on the default trace in SQL Server. You can read that here. In this...
2010-03-14
14,615 reads
This post is the second post in my series about Database mirroring. For part one is titled Configuring Database Mirroring...
2010-03-11
730 reads
“IO IO, It’s off to disk we go!” was in Mike Walsh’s blog post that introduced this TSQL Tuesday and...
2010-03-09
572 reads
I plan on writing a series of posts on database mirroring, this is the first. Database Mirroring is a new...
2010-03-07
3,703 reads
Do you know if your SQL Server is really running at its best? To...
You can find the slides of my session on the €100 DWH in Azure...
By Steve Jones
This value is something that I still hear today: our best work is done...
Hi everyone I am writing an SP where there is logic inside the SP...
Comments posted to this topic are about the item Planning for tomorrow, today -...
We have a BI-application that connects to input tables on a SQL Server 2022...
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; goWhat is the result? See possible answers