Click here to Skip to main content
15,888,351 members
Home / Discussions / Database
   

Database

 
GeneralRe: Coding efficiency question Pin
Vodstok27-Feb-06 2:24
Vodstok27-Feb-06 2:24 
GeneralRe: Coding efficiency question Pin
Andy Brummer27-Feb-06 18:53
sitebuilderAndy Brummer27-Feb-06 18:53 
AnswerRe: Coding efficiency question Pin
Andy Brummer27-Feb-06 18:56
sitebuilderAndy Brummer27-Feb-06 18:56 
GeneralRe: Coding efficiency question Pin
Vodstok28-Feb-06 1:44
Vodstok28-Feb-06 1:44 
QuestionSQL+C# Pin
papa198024-Feb-06 7:16
papa198024-Feb-06 7:16 
AnswerRe: SQL+C# Pin
Colin Angus Mackay24-Feb-06 16:52
Colin Angus Mackay24-Feb-06 16:52 
GeneralRe: SQL+C# Pin
papa198026-Feb-06 22:25
papa198026-Feb-06 22:25 
GeneralRe: SQL+C# Pin
Colin Angus Mackay26-Feb-06 22:34
Colin Angus Mackay26-Feb-06 22:34 
At the start put:
DECLARE @currentError int
After each insert put a
SELECT @currentError = @@ERROR;
IF @currentError <> 0
BEGIN
    ROLLBACK TRANSACTION
    RETURN
END

This would all be better in a stored procedure though.

Does this help?

ColinMackay.net
Scottish Developers are looking for speakers for user group sessions over the next few months. Do you want to know more?

GeneralRe: SQL+C# Pin
papa198027-Feb-06 0:41
papa198027-Feb-06 0:41 
Questionadding rows is access database file Pin
iramg24-Feb-06 3:44
iramg24-Feb-06 3:44 
AnswerRe: adding rows is access database file Pin
papa198024-Feb-06 4:37
papa198024-Feb-06 4:37 
GeneralRe: adding rows is access database file Pin
iramg24-Feb-06 4:42
iramg24-Feb-06 4:42 
AnswerRe: adding rows is access database file Pin
Seivan25-Feb-06 2:28
Seivan25-Feb-06 2:28 
QuestionWork with var Pin
papa198024-Feb-06 1:37
papa198024-Feb-06 1:37 
AnswerRe: Work with var Pin
Colin Angus Mackay24-Feb-06 1:53
Colin Angus Mackay24-Feb-06 1:53 
GeneralRe: Work with var Pin
papa198024-Feb-06 2:12
papa198024-Feb-06 2:12 
GeneralRe: Work with var Pin
Colin Angus Mackay24-Feb-06 2:14
Colin Angus Mackay24-Feb-06 2:14 
GeneralRe: Work with var Pin
goyal manish24-Feb-06 2:44
goyal manish24-Feb-06 2:44 
GeneralRe: Work with var Pin
papa198024-Feb-06 4:42
papa198024-Feb-06 4:42 
QuestionRequest from beginer? Pin
papa198024-Feb-06 0:56
papa198024-Feb-06 0:56 
AnswerRe: Request from beginer? Pin
goyal manish24-Feb-06 2:51
goyal manish24-Feb-06 2:51 
Questionhelp with data update strategy Pin
ekynox23-Feb-06 23:00
ekynox23-Feb-06 23:00 
AnswerRe: help with data update strategy Pin
Mike Ellison24-Feb-06 6:38
Mike Ellison24-Feb-06 6:38 
GeneralRe: help with data update strategy Pin
ekynox25-Feb-06 14:09
ekynox25-Feb-06 14:09 
GeneralRe: help with data update strategy Pin
Mike Ellison27-Feb-06 12:42
Mike Ellison27-Feb-06 12:42 

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.