Solved

DBCC OPENTRAN

Posted on 2010-08-19
2
526 Views
Last Modified: 2012-05-10
The result is
No active open transactions.
DBCC execution completed. If DBCC printed error messages, contact your system administrator.

Is it referring to only BEGIN TRAN transactions?

thanks
0
Comment
Question by:anushahanna
2 Comments
 
LVL 5

Accepted Solution

by:
jijeesh earned 500 total points
ID: 33477986
DBCC OPENTRAN returns the following result set when there are no open transactions:

"No active open transactions.
DBCC execution completed. If DBCC printed error messages, contact your system administrator.
"

see below sample from SQL Server BooksOnline

CREATE TABLE T1(Col1 int, Col2 char(3));

GO

BEGIN TRAN

INSERT INTO T1 VALUES (101, 'abc');

GO

DBCC OPENTRAN;

ROLLBACK TRAN;

GO

DROP TABLE T1;

GO

Open in new window

0
 
LVL 6

Author Comment

by:anushahanna
ID: 33478486
Thanks.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Everyone has problem when going to load data into Data warehouse (EDW). They all need to confirm that data quality is good but they don't no how to proceed. Microsoft has provided new task within SSIS 2008 called "Data Profiler Task". It solve th…
JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.
Viewers will learn how the fundamental information of how to create a table.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now