Skip to main content

Questions tagged [transaction]

A mechanism for committing a consistent set of changes into a database atomically.

0 votes
0 answers
82 views

Example code below populates a PhoneNumber table and associates those PhoneNumberId's with an OrderNumber. As written I am getting the error message: The current transaction cannot be committed and ...
Kirk Saunders's user avatar
7 votes
3 answers
2k views

I used SSMS to add a composite primary key to a table with 64 million rows. Because the table was so large, I used the change script generated by SSMS. One of the PK fields (REVENUE_CODE) originally ...
Daniel's user avatar
  • 135
0 votes
1 answer
44 views

Repro steps: Create the table: create table t (col TEXT primary key); Open two database consoles and use the following queries in them: 1 begin; 2 select txid_current(); 3 insert into t (col) ...
thewolf's user avatar
  • 103
0 votes
1 answer
48 views

I have a reporting database that is kept in sync with the transactional database using transaction log files. The seed file is provided every 3 months and we get 15 min log files. This database needs ...
Shipra's user avatar
  • 1
0 votes
1 answer
106 views

I saw some log entries that indicated transaction time outliers of up to 10s at times, where transaction times are typically below 1s. To get a view of how often this happens, is there a way to get ...
nsandersen's user avatar
0 votes
0 answers
35 views

I am currently working with SQL Server and exploring transaction management, specifically the dm_tran_commit_table view. I have a couple of questions regarding the commit_time and change tracking. ...
adam.g's user avatar
  • 487
0 votes
1 answer
42 views

I am wondering whether any really bad things can result from terminating (pg_terminate_backend()). Or would this at worst result into current transactions not being roled back. or is current ...
vrms's user avatar
  • 293
5 votes
1 answer
488 views

Suppose that: I already have Snapshot isolation enabled I do not have Read Committed Snapshot Isolation enabled I have been strict with my READCOMMITTEDLOCK hints wherever I truly need them then is ...
J. Mini's user avatar
  • 1,322
2 votes
2 answers
154 views

Is there any way to log or find last executed statement from a session that terminated because of idle in transaction timeout? We only have slow statement logging and that did not capture it and we ...
goodfella's user avatar
  • 700
0 votes
0 answers
61 views

If I have done functional partitioning in my database and have for example a database Transactions and a database Products and these are different database servers and there are references from tables ...
Jim's user avatar
  • 123
1 vote
3 answers
205 views

Does Postgres abort current transactions on error? In any case, can you provide a reference? Googling "site:postgres.org transaction abort rollback error" produced no results, and GPT ...
Sergey Zolotarev's user avatar
0 votes
1 answer
114 views

I have a SQL Server process that runs annually, creating around 400 million records in several tables. The process operates in a loop, committing every 20,000 records for each of the tables. I ...
Jair Pedro Assis's user avatar
0 votes
1 answer
318 views

If I do an UPDATE to a row within a transaction, each time xmin increments. I thought that xmin always represents the current tx id. But it seems to be storing current xid + cmin instead. But when ...
Stanislav Bashkyrtsev's user avatar
0 votes
2 answers
183 views

When I run this query SELECT transaction_id, name, transaction_begin_time, transaction_state FROM sys.dm_tran_active_transactions I always have these 6 rows in the result set transaction_id name ...
GuidoG's user avatar
  • 139
0 votes
2 answers
1k views

I know this is probably a silly question, It is my first, It seems so fundamental that I can't find the answer anywhere, because it must be so straight forward no one explained it. I want to ...
theMyth's user avatar
  • 103

15 30 50 per page
1
2 3 4 5
53