• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

MS SQL

timot

Member
Hey guys,

I've searched the web, and couldnt find any answer that can make me understand.

Let's say i have a table called tblLocation and there's no primary key in this table by the way.

They are connected to another table with LocationCode.

Now, i have 2 of the same LocationCode with the same columns.

How do i delete this?

Thanks.
 
hmmm nevermind... found a solution... TOTALLY forgot about the rowcount

SET ROWCOUNT 1

DELETE FROM #tmpTable
WHERE PrimaryKey = @variable
AND OtherField = @otherVariable
SET ROWCOUNT 0

Thanks all
 
Back
Top