sqltransaction Questions

5

Solved

I am brand new to SQL, and I am learning on an SQLite editor. So I create a couple of very simple tables. This code is straight from Linkedin learning "SQL essential training", and I am using the r...
Apriorism asked 7/5, 2020 at 1:0

4

Solved

background I have some code which opens a sql connection, begins a transaction and performs some operations on the DB. This code creates an object from the DB (dequeue), gets some values and saves...
Saritasarkaria asked 11/4, 2016 at 14:59

2

Solved

I am seeing constant deadlocks in my app, even though it performs no select statements, no delete statements, and no update statements. It is only inserting completely new data. TL;DR: It seems to ...

1

Solved

I'm not sure how to achieve consistent read across multiple SELECT queries. I need to run several SELECT queries and to make sure that between them, no UPDATE, DELETE or CREATE has altered the ove...

6

I am using the following code to execute two commands at once. I used SqlTransaction to assure either all command get executed or rolled back. When I run my program without "transaction",...
Decipher asked 3/10, 2013 at 17:19

1

Solved

What is the scope of a SET XACT_ABORT statement in SQL Server 2005? i.e.:begin-end block, procedure or trigger, connection, database, server?

3

Solved

we are extracting data from various database types (Oracle, MySQL, SQL-Server, ...). Once it is successfully written to a file we want to mark it as transmitted, so we update a specific column. Ou...
Rocker asked 11/2, 2016 at 12:2

2

I have a scenario in which I have to process multiple .sQL files, every file contains 3-4 insert or Update queries, now when any query in a file fails I do rollback whole transaction means whole fi...
Trimming asked 20/1, 2015 at 5:41

2

I am using the latest v6 of Entity Framework along with a UnitOfWork pattern. This has been fine on a server for the past few years. I want to move to azure hosting and use SQLAzure, so started to...

1

Solved

I have updated a project using Django REST Framework from a 2.x version to the last stable version (3.1.3). After fixing some deprecated uses in my serializers, I ran python manage.py test to make ...
Boron asked 21/7, 2015 at 8:26

2

I have a loop where I call stored procedure with different parameter value. Next call cmd.ExecuteNonQuery(); I use transaction to save all or rollback, and checkBox2 - save always. I found one prob...
Atkinson asked 23/3, 2012 at 12:58

3

In SQL Server, is there something similar to finally clause in try..catch... block of c# ? I mean, I am using BEGIN TRAN, END TRAN, COMMIT TRAN, ROLLBACK TRAN etc in a SQL Server transaction and w...
Gateshead asked 24/10, 2012 at 17:3

1

Solved

I have a SEQUENCE that I used to set the transaction folio of a table: CREATE SEQUENCE [Seq].[Folio] AS [bigint] START WITH 114090 INCREMENT BY 1 MINVALUE -9223372036854775808 MAXVALUE 92233...
Luffa asked 9/5, 2013 at 22:48

1

Solved

So I have multiple SqlConnections that I want to all be used in one SqlTransaction. I know that I could use just one connection, but ultimately in each connection there is a good amount of newly de...
Spermicide asked 27/2, 2013 at 22:25

2

Solved

Is there a way to manually specify transactions in symfony2 with the entity manager (doctrine), or perhaps a natural way of accomplishing in a single transaction what I am doing below in two? // c...
Fontanez asked 16/8, 2012 at 21:55

8

Solved

I've been running into some problems concerning a SqlTransaction I'm using in my code. During my Googling I see many people using a using statement with a SqlTransaction. What is the benefit and/o...

3

Solved

Do I need to call dispose in the finally block for SqlTransaction? Pretend the developer didnt use USING anywhere, and just try/catch. SqlTransaction sqlTrans = con.BeginTransaction(); try { //D...
Hypogenous asked 1/3, 2012 at 22:37

3

Solved

I'm doing a little digging and looking for a explanation on how SQL server evaluates MIN(Varchar). I found this remark in BOL: MIN finds the lowest value in the collating sequence defined in the ...
Holytide asked 21/12, 2010 at 20:40

7

Solved

If I create a Stored Procedure in SQL and call it (EXEC spStoredProcedure) within the BEGIN/END TRANSACTION, does this stored procedure also fall into the transaction? I didn't know if it worked li...
Alberta asked 7/10, 2008 at 19:50
1

© 2022 - 2024 — McMap. All rights reserved.