Jump to content

One serious doubt in SQL.. Please help


Recommended Posts

Posted

Hello pends,

Can we rollback any statement if its NOT used within transaction ??? ninna, mana galigannarao mama, rollback cheyochu(without keeping the statements in transactions) ani cheppadu.. but I m trying, I m not getting.... I am getting error when i m using rollback...

I tried by creating a gif to show u how exactly I m doing...


[img]http://i.picasion.com/pic43/e027c20bd94727c4c015e626e033c293.gif[/img]



I am getting this error... ( this error can be observed above)

[size=10pt][color=red]
Msg 3903, Level 16, State 1, Line 5
The ROLLBACK TRANSACTION request has no corresponding BEGIN TRANSACTION.[/color][/size]

can some help me how can we rollback a statement even when we don't use it in transactions .... thanx

  • Replies 33
  • Created
  • Last Reply

Top Posters In This Topic

  • Jambhalheart

    10

  • Ranga_The_Donga

    6

  • dkchinnari

    5

  • pulithoka

    4

Popular Days

Top Posters In This Topic

Posted

CITI#H@ CITI#H@ CITI#H@ CITI#H@

Nuvvu use chestunna SQL tool la setting unodcchu, auto commit ani!!! Adi check cheyyi.

Suggestion: Anta kashtapadi GIF cheshe badulu, 2 screenshots eyyocchu kada. Choodadaniki kuda easy ga untadi.

Posted

[quote author=subba rao link=topic=219819.msg2708750#msg2708750 date=1312387321]
CITI#H@ CITI#H@ CITI#H@ CITI#H@

Nuvvu use chestunna SQL tool la setting unodcchu, auto commit ani!!! Adi check cheyyi.

Suggestion: Anta kashtapadi GIF cheshe badulu, 2 screenshots eyyocchu kada. Choodadaniki kuda easy ga untadi.
[/quote]

kani mama, gif aithe asalu exact ga nenu em chesthunnano janalaki ardham avthundhi kadha ani, I am using MS Sql Server 2008 database with Sql Server Management Studio 2008 tool. thanks for response

Posted

baa nenu kooda sadivinde kani eppudu try seyyaledu. infact avasaram raledu. sare chusi chebuta undu matter endi anedi @3$% @3$% @3$%

Posted

sCo_^Y naku gif kanipinchatam ledhu...
nenu practical ga epudu rollback use cheyaledhu.. kani Delete use chesthe with out begin transaction roll back cheyochu antaru

Posted

[quote author=meghana9 link=topic=219819.msg2708790#msg2708790 date=1312387975]
sCo_^Y naku gif kanipinchatam ledhu...
nenu practical ga epudu rollback use cheyaledhu.. kani Delete use chesthe with out begin transaction roll back cheyochu antaru
[/quote] you rock you rock you rock you rock Ammugif

Posted

syntax.....>


begin transaction

try

statement....
....

catch
commit tran
rollback


try catch block vunte roll back use cheochu....try dis...

Posted

[quote author=galigannarao link=topic=219819.msg2708784#msg2708784 date=1312387905]
baa nenu kooda sadivinde kani eppudu try seyyaledu. infact avasaram raledu. sare chusi chebuta undu matter endi anedi @3$% @3$% @3$%
[/quote]

Nenu chaala saarlu rollback use cheshina on Oracle. Same nuvvu cheshinde cheshina. Definite ga, nuvvu icchina every command automatic ga commit ayitundi, Adi usual ga Toad la setting untadi AUTO COMMIT AFTER EVERY STATEMENT ani. Daanni uncheck chesta nenu usual ga.

See if there is such a setting in your SQL Tool.

Naaku aa begin transaction ante cheppandi  CITI#H@ CITI#H@ CITI#H@

Posted

[url=http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=137180]http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=137180[/url]

Posted

begin transaction

delete from test where id=5

rollback tran

Posted

[quote author=Jeedeelu link=topic=219819.msg2708804#msg2708804 date=1312388138]
syntax.....>


begin transaction

try

statement....
....

catch
commit tran
rollback


try catch block vunte roll back use cheochu....try dis...
[/quote]


here, ur using begin transaction but I want to rollback a statement without using begin transaction

Posted

[quote author=Jeedeelu link=topic=219819.msg2708827#msg2708827 date=1312388428]
begin transaction

delete from test where id=5

rollback tran
[/quote] %<>( %<>( :0012391: :0012391: nenu esa already

Posted

[quote author=Maddy_Rulez link=topic=219819.msg2708828#msg2708828 date=1312388447]

here, ur using begin transaction but I want to rollback a statement without using begin transaction
[/quote]

i think u cant rollback without begin transaction...

and error kuda dhani gurinche chepthunattundhii...

Posted

[quote author=vishwamithra link=topic=219819.msg2708829#msg2708829 date=1312388466]
%<>( %<>( :0012391: :0012391: nenu esa already
[/quote]

chusukoledhu ba....... CITI_$D# CITI_$D# CITI_$D#

×
×
  • Create New...