Click here to Skip to main content
15,910,358 members
Home / Discussions / Database
   

Database

 
QuestionXml and Xls as Data for SSRS [modified] Pin
Katusha260125-Jul-07 2:16
Katusha260125-Jul-07 2:16 
Questionproblem in Take Data Offline Using Microsoft Synchronization Services for ADO.NET Pin
Vikas Shirsath25-Jul-07 1:55
Vikas Shirsath25-Jul-07 1:55 
Questionstored procedure Pin
Dhyanga25-Jul-07 1:48
Dhyanga25-Jul-07 1:48 
AnswerRe: stored procedure Pin
Pete O'Hanlon25-Jul-07 1:57
mvePete O'Hanlon25-Jul-07 1:57 
AnswerRe: stored procedure Ans for Que Pin
Vikas Shirsath25-Jul-07 2:02
Vikas Shirsath25-Jul-07 2:02 
QuestionSimple Begin-Commit-Rollback Transaction Pin
dabuskol25-Jul-07 1:37
dabuskol25-Jul-07 1:37 
AnswerRe: Simple Begin-Commit-Rollback Transaction Pin
Pete O'Hanlon25-Jul-07 1:53
mvePete O'Hanlon25-Jul-07 1:53 
GeneralRe: Simple Begin-Commit-Rollback Transaction Pin
Mike Dimmick25-Jul-07 3:49
Mike Dimmick25-Jul-07 3:49 
@@TRANCOUNT is useful if you've got nested transactions, because ROLLBACK TRANSACTION does not roll back to the last BEGIN TRANSACTION but to the first BEGIN TRANSACTION. A nested COMMIT TRANSACTION only decrements @@TRANCOUNT, only when @@TRANCOUNT is reduced to zero by a COMMIT TRANSACTION does the overall transaction get committed.

This surprises a lot of people.

If you need to roll back in the middle of a nested procedure and an error has NOT occurred (presumably you've detected some other logical error, not a physical error raised by SQL Server) you should use RAISERROR to set @@ERROR to something. Maybe you test whether @@TRANCOUNT is greater than zero in an error handler, in case the nested procedure you called has already rolled back. IIRC, you get an error if you try to roll back when the nested transaction count is already zero.

Stability. What an interesting concept. -- Chris Maunder

GeneralRe: Simple Begin-Commit-Rollback Transaction [modified] Pin
Pete O'Hanlon25-Jul-07 4:26
mvePete O'Hanlon25-Jul-07 4:26 
Question[Message Deleted] Pin
okkishore25-Jul-07 1:27
okkishore25-Jul-07 1:27 
AnswerRe: database recovery. Pin
originSH25-Jul-07 1:34
originSH25-Jul-07 1:34 
GeneralRe: database recovery. Pin
originSH25-Jul-07 2:48
originSH25-Jul-07 2:48 
GeneralRe: database recovery. Pin
Paul Conrad25-Jul-07 9:49
professionalPaul Conrad25-Jul-07 9:49 
AnswerRe: database recovery. Pin
Paul Conrad25-Jul-07 9:51
professionalPaul Conrad25-Jul-07 9:51 
Questiondeleting duplicate rows Pin
okkishore25-Jul-07 1:13
okkishore25-Jul-07 1:13 
AnswerRe: deleting duplicate rows Pin
kubben25-Jul-07 2:01
kubben25-Jul-07 2:01 
GeneralRe: deleting duplicate rows Pin
okkishore25-Jul-07 2:13
okkishore25-Jul-07 2:13 
GeneralRe: deleting duplicate rows Pin
kubben25-Jul-07 2:17
kubben25-Jul-07 2:17 
GeneralRe: deleting duplicate rows Pin
okkishore25-Jul-07 2:25
okkishore25-Jul-07 2:25 
GeneralRe: deleting duplicate rows Pin
kubben25-Jul-07 2:34
kubben25-Jul-07 2:34 
QuestionHow to insert large amount of data into column of a table Pin
yuvachandra25-Jul-07 0:47
yuvachandra25-Jul-07 0:47 
AnswerRe: How to insert large amount of data into column of a table Pin
originSH25-Jul-07 0:54
originSH25-Jul-07 0:54 
QuestionRe: How to insert large amount of data into column of a table Pin
chandragupta.k25-Jul-07 1:39
chandragupta.k25-Jul-07 1:39 
AnswerRe: How to insert large amount of data into column of a table Pin
Pete O'Hanlon25-Jul-07 1:07
mvePete O'Hanlon25-Jul-07 1:07 
QuestionRe: How to insert large amount of data into column of a table Pin
chandragupta.k25-Jul-07 1:37
chandragupta.k25-Jul-07 1:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.