Viewing 14 posts - 1 through 14 (of 14 total)
yes, using another approach is a valid option, i need, at least, to reduce collisions.
May 8, 2019 at 8:55 am
CELKO (11/30/2016)
``
I never heard this term before, and I wrote the standards. I think you are...
December 2, 2016 at 7:04 am
Eric M Russell (6/13/2016)
June 15, 2016 at 2:07 am
GilaMonster (6/13/2016)
Y.B. (6/13/2016)
Maybe something like this would be better suited...
IF EXISTS (SELECT 1 FROM SomeTable WHERE ID = @id)
UPDATE SomeTable SET SomeText = @SomeText
ELSE
INSERT INTO SomeTable VALUES (@ID, @SomeText)
Not atomic,...
June 13, 2016 at 8:44 am
kapil_kk (6/13/2016)
Hi,Why are you doing deleting and insertion on the same id value?
what you want to accomplish from that.
the goal is to update text valus if a record with that...
June 13, 2016 at 7:23 am
delete insert are inside one transaction, so i think it would be atomic operation.
default level is read committed so it would be impossible another transacion insert and commmit before...
June 13, 2016 at 7:17 am
no, the data comes from a newspaper's supplement , first page is variable.
December 14, 2015 at 6:08 am
yes it's a newspaper, there's only one page for one day.
December 14, 2015 at 3:39 am
Kristen-173977 (9/23/2015)
fabriziodb (9/23/2015)
1) insert the rows from parameter that are not in the table
2) update the rows that are...
September 23, 2015 at 6:07 am
isolation level is irrilevant also in delete operation? i thought before deleting it need a select to identify the records to delete.
September 23, 2015 at 4:31 am
usally the stored procedure take from 1to 5 sec to execute, but apparentuly with no reason some time the execution time grows till 1 minute.
delete insert is 2 operation, i...
September 23, 2015 at 4:22 am
yes it does, thanks
March 5, 2015 at 6:34 am
i did it
declare @temp table (ID int)
declare @i int = 1
while(@i<1000) begin
insert into @temp values (@i)
set @i=@i+1
end
Select cast(A.ID as varchar) + ' - ' + cast(B.ID as varchar) From...
March 5, 2015 at 4:43 am
thanks, get spaghetti code 🙂
January 29, 2015 at 6:31 am
Viewing 14 posts - 1 through 14 (of 14 total)