EDIT: Ok I figured it out, I have an if statement that must return true in order for the SQL to run, that's the problem. Nothing was wrong with my SQL. Sorry!
I don't know what is wrong with this statement, but it will not UPDATE any row.
IF EXISTS (
SELECT *
FROM dtRaces
WHERE
Date = @date
AND Location = @location
AND Time = @time
)
UPDATE dtRaces SET
Date=@date,
Location=@location,
Time=@time
City=@city,
State=@state,
Title=@title
WHERE
Date = @date
AND Location = @location
AND Time = @time
ELSE
INSERT INTO dtRaces (Date, Location, Time, City, State, Title)
VALUES (@date, @location, @time, @city, @state, @title)
Any ideas? I'm stumped. This is with SQL Server 2008, but I have not learned how to use MERGE yet.