Click here to Skip to main content
16,005,120 members
Home / Discussions / Database
   

Database

 
GeneralRe: Classic ASP and MS SQL Express Edition Pin
Fayu16-Jul-07 12:50
Fayu16-Jul-07 12:50 
AnswerDO NOT CROSSPOST Pin
leckey13-Jul-07 7:05
leckey13-Jul-07 7:05 
GeneralRe: DO NOT CROSSPOST Pin
Paul Conrad13-Jul-07 11:46
professionalPaul Conrad13-Jul-07 11:46 
GeneralRe: DO NOT CROSSPOST Pin
Sathesh Sakthivel13-Jul-07 16:21
Sathesh Sakthivel13-Jul-07 16:21 
QuestionHow to create hash clustered index in oracle? Pin
Mushtaque Nizamani12-Jul-07 23:53
Mushtaque Nizamani12-Jul-07 23:53 
AnswerRe: How to create hash clustered index in oracle? Pin
Paul Conrad13-Jul-07 11:49
professionalPaul Conrad13-Jul-07 11:49 
Questionsqlerror Pin
saravanan0512-Jul-07 23:13
saravanan0512-Jul-07 23:13 
AnswerRe: sqlerror Pin
Mike Dimmick12-Jul-07 23:45
Mike Dimmick12-Jul-07 23:45 
First, check that you're executing the above in the right database, or that you created the table in the right database. We've all done it.

Second, you've used BEGIN TRANSACTION in the above code, but you didn't tell SQL Server what you wanted to happen at the end. You should use COMMIT TRANSACTION to save the changes you've made, or ROLLBACK TRANSACTION to discard them. Generally you should check @@ERROR after every data modification statement and ROLLBACK TRANSACTION (and return) if it's not 0. Only critical errors abort the stored procedure and automatically rollback the transaction. Errors like attempting to insert a duplicate key are not considered critical; the statement will be aborted and rolled back, but execution will continue at the next statement.

SQL Server does not permit transactions opened in a stored procedure to be held open after that procedure executes. That's why you get the error. If you want a transaction to span multiple procedure calls, you'll have to use a client-side transaction (e.g. a SqlTransaction object).

Stability. What an interesting concept. -- Chris Maunder

GeneralRe: sqlerror Pin
TomGarth15-Jul-07 9:16
TomGarth15-Jul-07 9:16 
QuestionReferring .RDL file Pin
Karuna Kumar12-Jul-07 21:28
Karuna Kumar12-Jul-07 21:28 
AnswerRe: Referring .RDL file Pin
Paul Conrad13-Jul-07 12:57
professionalPaul Conrad13-Jul-07 12:57 
GeneralRe: Referring .RDL file Pin
Karuna Kumar15-Jul-07 21:17
Karuna Kumar15-Jul-07 21:17 
QuestionCreating a new Folder Pin
Karuna Kumar12-Jul-07 21:23
Karuna Kumar12-Jul-07 21:23 
AnswerRe: Creating a new Folder Pin
Frank Kerrigan16-Jul-07 2:30
Frank Kerrigan16-Jul-07 2:30 
QuestionViews with Insert Query Pin
Suryanairg12-Jul-07 18:06
Suryanairg12-Jul-07 18:06 
AnswerRe: Views with Insert Query Pin
Krish - KP12-Jul-07 18:52
Krish - KP12-Jul-07 18:52 
Questionassigning value to variable in stored procedure Pin
brsecu12-Jul-07 7:59
brsecu12-Jul-07 7:59 
AnswerRe: assigning value to variable in stored procedure Pin
Pete O'Hanlon12-Jul-07 8:24
mvePete O'Hanlon12-Jul-07 8:24 
GeneralRe: assigning value to variable in stored procedure Pin
brsecu13-Jul-07 4:32
brsecu13-Jul-07 4:32 
GeneralRe: assigning value to variable in stored procedure Pin
Pete O'Hanlon13-Jul-07 4:52
mvePete O'Hanlon13-Jul-07 4:52 
AnswerRe: assigning value to variable in stored procedure Pin
RepliCrux12-Jul-07 19:05
RepliCrux12-Jul-07 19:05 
GeneralRe: assigning value to variable in stored procedure Pin
brsecu13-Jul-07 4:32
brsecu13-Jul-07 4:32 
QuestionHelp regarding moving records Pin
anu8112-Jul-07 3:31
anu8112-Jul-07 3:31 
AnswerRe: Help regarding moving records Pin
Pete O'Hanlon12-Jul-07 4:04
mvePete O'Hanlon12-Jul-07 4:04 
QuestionQuery Problem Pin
ragavan12-Jul-07 3:14
ragavan12-Jul-07 3:14 

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.