Professional Development

SQLServerCentral Editorial

Small Changes, Big Results

  • Editorial

Last week I was able to attend THAT conference in Wisconsin Dells, Wisconsin. It was my first time in the great state of cheese, and the conference lived up to its reputation. As a developer focused conference (rather than a database conference), I didn't have much expectation that my session about automating database changes would […]

4 (1)

You rated this post out of 5. Change rating

2023-08-05

1,819 reads

SQLServerCentral Editorial

What Counts for a DBA: Skill

  • Editorial

Practice makes perfect:” right? Well, not exactly. The reality of it all is that this saying is an untrustworthy aphorism. I discovered this in my “younger” days when I was a passionate tennis player, practicing and playing 20+ hours a week. No matter what my passion level was, without some serious coaching (and perhaps a […]

5 (1)

You rated this post out of 5. Change rating

2021-08-14

230 reads

Blogs

Monday Monitor Tips: Tracking The Cost of Instances

By

One of the things that I’ve been asked in every operations situation is what...

Social Anxiety and Events Like the PASS Summit

By

If you are an introvert like me, events like the PASS Summit can call...

Thoughts on AI Data Infrastructure Field Day #1

By

On October 2nd and 3rd, I took part in an amazing event called AI...

Read the latest Blogs

Forums

Manual Distribution Database Cleanup

By five_ten_fiftyfold

Hi All. I have a reasonably straightforward transactional replication setup. I had two databases...

SSIS Package Consuming Excessive Disk Space on Local Drive (C:)

By abdalah.mehdoini

Hello everyone, I’ve developed an SSIS process to compare two relatively large tables. When...

Visit the forum

Question of the Day

Comparing Images

I am building an ETL process between these tables in SQL Server 2022 set to 160 compatibility level:

CREATE TABLE Image_Staging
( imageid     INT NOT NULL CONSTRAINT Image_StagingPK PRIMARY KEY
, imagestatus TINYINT
, imagebinary IMAGE);
GO

CREATE TABLE Images
( imageid       INT NOT NULL CONSTRAINT ImagesPK PRIMARY KEY
, imagestatus   TINYINT
, imagemodified DATETIME
, imagebinary   IMAGE);
GO
I want to run this query to check if the images already loaded exist. This will help me decide if I need to insert or update an image. What happens with this query?
SELECT i.imageid
FROM
  dbo.Image_Staging AS ist
  INNER JOIN dbo.Images AS i
    ON ist.imagebinary = i.imagebinary;

See possible answers