Adam Machanic

  • Interests: RDB theory, VLDB, query optimization

SQLServerCentral Article

A Guide to SQL Server 2000 Transactional and Snapshot Replication

Two MVPs at one shot in this one. SQL Server MVP Hilary Cotter has written a book on replication, one of the very few there are on this topic. And it's presented as a review by MVP Adam Mechanic, a regular visitor to SQLServerCentral.com. If you're looking for replication help, check out this book.

You rated this post out of 5. Change rating

2005-04-13

7,197 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

Two queries or one?

By Steve Collins

The setup: 3 tables: core_users, core_roles, and core_user_roles.  core users is the "base" table,...

Best Clustered Index Configuration for Partitioned Multi-Tenant Table with RLS

By Jonathan AC Roberts

I’m working with a SQL Server database that supports a multi-tenant application. We have...

Unable to Pivot data in MS Excel for the (Output) file of SSIS package

By Reh23

Good Morning, I have built an SSIS package which produces Excel File Output. In...

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