Viewing 15 posts - 11,611 through 11,625 (of 15,377 total)
komal145 (6/18/2012)
Union all
select '10704' as entry_id , '2012-05-18 14:24:45.057' as Start_time ,'2012-05-18 14:25:14.780' as End_time...
June 18, 2012 at 2:51 pm
Lynn Pettis (6/18/2012)
komal145 (6/18/2012)
Union all
select '10704' as entry_id , '2012-05-18 14:24:45.057' as Start_time ,'2012-05-18 14:25:14.780'...
June 18, 2012 at 2:50 pm
It is not really help to provide any actual details but it sounds like your insert/update is trying to do this on two tables at the same time. You can't...
June 18, 2012 at 2:49 pm
Well if you rollback inside your other proc it will rollback all the "nested" transactions. Then your trancount will be off and it will fail. There are probably some other...
June 18, 2012 at 2:34 pm
Given the code snippet I am guessing you are using some sort of looping splitter. I am already thinking you can vastly improve performance by reading the article in my...
June 18, 2012 at 1:54 pm
There is nowhere near enough information posted here to have any chance of helping. There are variable referenced and a lot of details that we don't know about. This is...
June 18, 2012 at 1:50 pm
Pretty sparse on details here. What does the VB code look like? What does the sql you are using look like?
You will get lot more help if you can...
June 18, 2012 at 1:35 pm
This is kind of like taking your car to the mechanic and telling them it doesn't run well. Imagine your response at the car repair shop with this conversation.
You -...
June 18, 2012 at 11:01 am
You can't use a variable like that. You should look at the link in my signature for splitting a string.
--EDIT--
Hint -- your query would end up something like this.
select *...
June 18, 2012 at 10:48 am
To prove my point I altered my proc with yours above. Then to test the nested transactions is quite simple.
begin transaction
exec proc1
commit transaction
It doesn't work.
June 18, 2012 at 9:50 am
If you want some real help, again read the first article in my signature and post ddl, sample data and desired output.
June 18, 2012 at 9:45 am
thadeushuck (6/18/2012)
create table ProcTable1(
ProcID int identity,
ProcVal varchar(10)
)
go
...snip...
exec Proc1
select * from ProcTable1
You really should read the article I posted above. Nested transactions are lie, myth, whatever you want to call it....
June 18, 2012 at 9:41 am
Viewing 15 posts - 11,611 through 11,625 (of 15,377 total)