|
|
SQL Server : Constraints and Rock Solid Inventory Systems (part 1) |
To record any change in the inventory, we insert rows into the Inventory table. At the very beginning, when we do not have any rows in the InventoryLog table, we assume that we do not have any items in our inventory at all. An increase or decrease in inventory for a given item is reflected by adding new rows. |
|
|
Oracle Database 11g : Use Oracle Net Services |
Oracle Net Services is the software component that allows enterprise connectivity across heterogeneous environments. Oracle Net is the part of Oracle Net Services that manages data communication between a remote application and the Oracle database; it runs on top of a network protocol like TCP/IP. |
|
|
|
SQL Server 2008 R2 : Optimistic Locking |
With many applications, clients need to fetch the data to browse through it, make modifications to one or more rows, and then post the changes back to the database in SQL Server. These human-speed operations are slow in comparison to machine-speed operations, and the time lag between the fetch and post might be significant. |
|
SQL Server 2008 R2 : Table Hints for Locking |
You can set an isolation level for your connection by using the SET TRANSACTION ISOLATION LEVEL command. This command sets a global isolation level for an entire session, which is useful if you want to provide a consistent isolation level for an application. |
|
|
|
SQL Server 2008 R2 : Locking Contention and Deadlocks (part 2) - Deadlocks |
A deadlock occurs when two processes are each waiting for a locked resource that the other process currently holds. Neither process can move forward until it receives the requested lock on the resource, and neither process can release the lock it is currently holding until it can receive the requested lock. |
|
|
|
|
|
|
|
|
|
|
|
|
SQL Server 2008 R2 : Query Analysis - Query Statistics |
In addition to the new dynamic management objects, SQL Server 2008 still provides the SET STATISTICS IO and SET STATISTICS TIME options, which display the actual logical and physical page reads incurred by a query and the CPU and elapsed time, respectively. |
|
SQL Server 2008 R2 : Query Analysis - Using sys.dm_exec_query_plan |
Dynamic management views (DMVs) can return server state information that can be used to monitor and diagnose database engine issues and help tune performance. The sys.dm_exec_query_plan DMV returns the showplan information for a T-SQL batch whose query execution plan resides in the plan cache. |
|
|
|
|
|
|