« first day (2184 days earlier)      last day (474 days later) » 

12:56 PM
Hi
everyone
i m using stored procedure to insert multiple records into mysql table ( so for this , i m using Cursor) and inserting into final table , is this good way to do this ?
any help?
 
 
7 hours later…
7:31 PM
@ShobhakarTiwari I would recommend not using stored procedures if you can avoid it.
Queries in your code base will be easier to work with, if only because they are easier to have versioned
Especially if you only have one code base that will be talking to your schema. If you have lots of different apps in different languages all talking to the same schema, there's more temptation to put shared queries on the server, even though it does make some things more difficult
 
7:49 PM
Thanks
I will try to use query now
 
 
4 hours later…
11:52 PM
I have a problem.

I got

```
"Transaction count after EXECUTE indicates a mismatching number of BEGIN and COMMIT statements. Previous count = 0, current count = 1"

```

After some research, I found out that I must set the XACT_ABOUT and found the statement below.

"we must always set XACT_ABORT to ON if we are using XACT_STATE()"

I am not really good at testing database so could you guy please classify whether the statement is true or not since I found some counter argument to the statement.
 

« first day (2184 days earlier)      last day (474 days later) »