Click here to Skip to main content
15,882,152 members
Home / Discussions / Database
   

Database

 
AnswerRe: Staging Area Pin
R. Giskard Reventlov16-Nov-12 8:34
R. Giskard Reventlov16-Nov-12 8:34 
AnswerRe: Staging Area Pin
Mycroft Holmes16-Nov-12 15:20
professionalMycroft Holmes16-Nov-12 15:20 
GeneralRe: Staging Area Pin
S Douglas27-Nov-12 19:38
professionalS Douglas27-Nov-12 19:38 
GeneralRe: Staging Area Pin
Mycroft Holmes27-Nov-12 20:31
professionalMycroft Holmes27-Nov-12 20:31 
GeneralRe: Staging Area Pin
S Douglas29-Nov-12 7:52
professionalS Douglas29-Nov-12 7:52 
Questionfirst linq for entity frame work? Pin
Member 875182715-Nov-12 1:02
Member 875182715-Nov-12 1:02 
AnswerRe: first linq for entity frame work? Pin
Herman<T>.Instance15-Nov-12 3:17
Herman<T>.Instance15-Nov-12 3:17 
QuestionBEGIN TRANSACTION AND COMMIT TRANSACTION Pin
vanikanc14-Nov-12 7:40
vanikanc14-Nov-12 7:40 
Hello All,

If I use a try-catch block in my stored proc, and in the catch block write error to table, do I need to use BEGIN TRANSACTION - COMMIT TRANSACTION to get the try-catch block to work?

I am using -
BEGIN TRY
write my code here
END TRY

BEGIN CATCH
write my code here
END CATCH

But should be - to write errors to a log table.
BEGIN TRY
BEGIN TRANSACTION
write code here
COMMIT TRANSACTION
END TRY
BEGIN CATCH
write code here
END CATCH
AnswerRe: BEGIN TRANSACTION AND COMMIT TRANSACTION Pin
Phanindra26114-Nov-12 8:40
Phanindra26114-Nov-12 8:40 
QuestionFault Exception in WCF Services Pin
Phanindra26114-Nov-12 6:15
Phanindra26114-Nov-12 6:15 
AnswerRe: Fault Exception in WCF Services Pin
Eddy Vluggen14-Nov-12 6:36
professionalEddy Vluggen14-Nov-12 6:36 
GeneralRe: Fault Exception in WCF Services Pin
Phanindra26114-Nov-12 8:05
Phanindra26114-Nov-12 8:05 
QuestionRelation multiple table using in C# Pin
YBG13-Nov-12 2:53
YBG13-Nov-12 2:53 
AnswerRe: Relation multiple table using in C# Pin
Phanindra26114-Nov-12 8:23
Phanindra26114-Nov-12 8:23 
QuestionTrying to get a MySQL subquery to return multiple records Pin
SQL Ed12-Nov-12 8:19
SQL Ed12-Nov-12 8:19 
AnswerRe: Trying to get a MySQL subquery to return multiple records Pin
Eddy Vluggen12-Nov-12 11:33
professionalEddy Vluggen12-Nov-12 11:33 
QuestionSending data to database Pin
Phanindra26111-Nov-12 19:03
Phanindra26111-Nov-12 19:03 
AnswerRe: Sending data to database Pin
jschell12-Nov-12 10:08
jschell12-Nov-12 10:08 
AnswerRe: Sending data to database Pin
Mycroft Holmes12-Nov-12 12:51
professionalMycroft Holmes12-Nov-12 12:51 
GeneralRe: Sending data to database Pin
Phanindra26113-Nov-12 18:40
Phanindra26113-Nov-12 18:40 
QuestionHow to create reports effectively Pin
Frygreen9-Nov-12 0:52
Frygreen9-Nov-12 0:52 
AnswerRe: How to create reports effectively Pin
David Mujica9-Nov-12 2:32
David Mujica9-Nov-12 2:32 
AnswerRe: How to create reports effectively Pin
Mycroft Holmes9-Nov-12 4:08
professionalMycroft Holmes9-Nov-12 4:08 
AnswerRe: How to create reports effectively Pin
Frygreen9-Nov-12 4:10
Frygreen9-Nov-12 4:10 
Suggestionsql server 2008 security Pin
Member 36227527-Nov-12 8:00
Member 36227527-Nov-12 8:00 

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.