Posts by Péricles Almeida Jr • 1 point
1 post
-
0
votes2
answers412
viewsA: Sql Server - Does checking for field NOT work if to avoid select?
Maybe you can solve using the sp_executesql function. As for example in INSERT below: BEGIN DECLARE @name VARCHAR(70) = 'San Francisco', @sql_stmt NVARCHAR(100) = 'INSERT INTO cities (name) VALUES…