Drop Table

Support Forum for database administrators and web based access to important newsgroups related to databases
Register on Database Support Forum Edit your profileCalendarFind other Database Support forum membersFrequently Asked QuestionsSearch this forum -> 
For Database admins: Free Database-related Magazines Now Free shipping to Texas


Post New Thread










Thread
Author

sql server transaction configuration.
hi all, couple really easy questions for the guru out there.

1. is there any way i can totally switch off transactions in sql server so
that even if there are several statements with in a begin and commit\rollbac
k
transaction , without waiting for either the commit or rollback , it just
commits all the changes.

2. If there is how can i swith it back to ON again.

3. Is there any default timeout value for a transaction ( not talking about
deadlock or locking timeouts) after which even if the query is doing inserts
\
updates it rollsback everthing.

please suggest.
thanks

Report this thread to moderator Post Follow-up to this message
Old Post
sameer
09-29-05 06:23 PM


Re: sql server transaction configuration.
Sameer,

Transactions are used for data modifications whether or not they are
explicitly called or not.  I think the only exception to this would be a
READ ONLY database.

HTH

Jerry
"sameer" <sameer@discussions.microsoft.com> wrote in message
news:BD46BC49-4585-4F43-BB7A- 35164F5B0B2F@microso
ft.com...
> hi all, couple really easy questions for the guru out there.
>
> 1. is there any way i can totally switch off transactions in sql server so
> that even if there are several statements with in a begin and
> commit\rollback
> transaction , without waiting for either the commit or rollback , it just
> commits all the changes.
>
> 2. If there is how can i swith it back to ON again.
>
> 3. Is there any default timeout value for a transaction ( not talking
> about
> deadlock or locking timeouts) after which even if the query is doing
> inserts\
> updates it rollsback everthing.
>
> please suggest.
> thanks



Report this thread to moderator Post Follow-up to this message
Old Post
Jerry Spivey
09-30-05 01:23 AM


Re: sql server transaction configuration.
Comments Inline
"sameer" <sameer@discussions.microsoft.com> wrote in message
news:BD46BC49-4585-4F43-BB7A- 35164F5B0B2F@microso
ft.com...
> hi all, couple really easy questions for the guru out there.
>
> 1. is there any way i can totally switch off transactions in sql server so
> that even if there are several statements with in a begin and
> commit\rollback
> transaction , without waiting for either the commit or rollback , it just
> commits all the changes.
>
No.

> 2. If there is how can i swith it back to ON again.
>
No.

> 3. Is there any default timeout value for a transaction ( not talking
> about
> deadlock or locking timeouts) after which even if the query is doing
> inserts\
> updates it rollsback everthing.
>
No.  You can create a maximum timeout for a resource wait, but this is a bad
thing as it tends to break transactional consistency.  Transaction timeout
is typically controlled via the client application.
> please suggest.
> thanks

Geoff N. Hiten
Senior Database Administrator
Microsoft SQL Server MVP



Report this thread to moderator Post Follow-up to this message
Old Post
Geoff N. Hiten
09-30-05 01:23 AM


Re: sql server transaction configuration.
thanks for your reply Geoff,
this one time when i was working on a sql server, i had couple insert
statements after a begin transaction and as soon as i ran it, it was almost
as if it was commited to the db even without a commint transaction. I could
not even roll it back, could you shed some light on this. I always though du
e
to some reason the dba might have swithed off the trasnaction handling and
made it such that changes are commited even if commit is not ran.

thanks
sameer

"Geoff N. Hiten" wrote:

> Comments Inline
> "sameer" <sameer@discussions.microsoft.com> wrote in message
> news:BD46BC49-4585-4F43-BB7A- 35164F5B0B2F@microso
ft.com... 
> No.
> 
> No.
> 
> No.  You can create a maximum timeout for a resource wait, but this is a b
ad
> thing as it tends to break transactional consistency.  Transaction timeout
> is typically controlled via the client application. 
>
> Geoff N. Hiten
> Senior Database Administrator
> Microsoft SQL Server MVP
>
>
>

Report this thread to moderator Post Follow-up to this message
Old Post
sameer
09-30-05 01:23 AM


Re: sql server transaction configuration.
also is there any time out for abandoned transactions ?

"Geoff N. Hiten" wrote:

> Comments Inline
> "sameer" <sameer@discussions.microsoft.com> wrote in message
> news:BD46BC49-4585-4F43-BB7A- 35164F5B0B2F@microso
ft.com... 
> No.
> 
> No.
> 
> No.  You can create a maximum timeout for a resource wait, but this is a b
ad
> thing as it tends to break transactional consistency.  Transaction timeout
> is typically controlled via the client application. 
>
> Geoff N. Hiten
> Senior Database Administrator
> Microsoft SQL Server MVP
>
>
>

Report this thread to moderator Post Follow-up to this message
Old Post
sameer
09-30-05 01:23 AM


Re: sql server transaction configuration.
The SQL will roll back transactions if the connection is broken.

Regards,
John

"sameer" <sameer@discussions.microsoft.com> wrote in message
news:902AC15E-AF5F-44A2-BB5A- E0BED9D71AAA@microso
ft.com...
> also is there any time out for abandoned transactions ?
>
> "Geoff N. Hiten" wrote:
> 



Report this thread to moderator Post Follow-up to this message
Old Post
John J. Hughes II
09-30-05 01:23 AM


Re: sql server transaction configuration.
how about abandoned transactions? how long do they stay active in the databa
se.

"John J. Hughes II" wrote:

> The SQL will roll back transactions if the connection is broken.
>
> Regards,
> John
>
> "sameer" <sameer@discussions.microsoft.com> wrote in message
> news:902AC15E-AF5F-44A2-BB5A- E0BED9D71AAA@microso
ft.com... 
>
>
>

Report this thread to moderator Post Follow-up to this message
Old Post
sameer
09-30-05 08:23 AM


Re: sql server transaction configuration.
Sameer,

Ocassionaly a transaction will stay open and will prevent the log from
properly being truncated and may block other users to the locked data.  The
DBCC OPENTRAN statement can be used to find these rouge transactions and the
KILL statement can be used to end them.

HTH

Jerry
"sameer" <sameer@discussions.microsoft.com> wrote in message
news:9BB78025-E660-4F7C-BE42- E5FA6FEBA944@microso
ft.com...
> how about abandoned transactions? how long do they stay active in the
> database.
>
> "John J. Hughes II" wrote:
> 



Report this thread to moderator Post Follow-up to this message
Old Post
Jerry Spivey
09-30-05 08:23 AM


Re: sql server transaction configuration.
Jerry, but then won't there be a time out for transactions like these?
thanks

"Jerry Spivey" wrote:

> Sameer,
>
> Ocassionaly a transaction will stay open and will prevent the log from
> properly being truncated and may block other users to the locked data.  Th
e
> DBCC OPENTRAN statement can be used to find these rouge transactions and t
he
> KILL statement can be used to end them.
>
> HTH
>
> Jerry
> "sameer" <sameer@discussions.microsoft.com> wrote in message
> news:9BB78025-E660-4F7C-BE42- E5FA6FEBA944@microso
ft.com... 
>
>
>

Report this thread to moderator Post Follow-up to this message
Old Post
sameer
09-30-05 02:23 PM


Re: sql server transaction configuration.
No.  KILL will need to be used.
"sameer" <sameer@discussions.microsoft.com> wrote in message
news:9B39F23F-7850-4745-B939- D44F6DCCEA30@microso
ft.com...
> Jerry, but then won't there be a time out for transactions like these?
> thanks
>
> "Jerry Spivey" wrote:
> 



Report this thread to moderator Post Follow-up to this message
Old Post
Jerry Spivey
09-30-05 02:23 PM


Sponsored Links





Last Thread Next Thread
Pages (2): [1] 2 »
Post New Thread

MS SQL Server archive

Show a Printable Version Email This Page to Someone! Receive updates to this thread
Microsoft SQL Server
Access database support
PostgreSQL Replication
SQL Server ODBC
FoxPro Support
PostgreSQL pgAdmin
SQL Server Clustering
MySQL ODBC
Web Applications with dBASE
SQL Server CE
MySQL++
Sybase Database Support
MS SQL Full Text Search
PostgreSQL Administration
SQL Anywhere support
DB2 UDB Database
Paradox Database Support
Filemaker Database
Berkley DB
SQL 2000/2000i database
ASE Database
Forum Jump:
All times are GMT. The time now is 02:41 PM.

 
Mobile devices forum | Database support forum archive




Copyrights DropTable.com Database Support Forum 2004 - 2006