10-18-2001
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Does anyone have any knowledge of veritas file manager and if you do, would you advise me to purchase it?? and basically, what are its most important useful features, meaning, what can it be used for the best (1 Reply)
Discussion started by: TRUEST
1 Replies
2. Filesystems, Disks and Memory
hi
if anyone has docs (corporate internals on how to setup vcs mfor example, especially with Veritas VM, pleas let me know..i need exposure experience in this area of Enterprise Administration
thanks
jasmine (SCSA & MCSE) (2 Replies)
Discussion started by: jasmine_uk
2 Replies
3. Solaris
hi every one ,
i know how to add swap space in ufs file system.
but i m facing problem in veritas file system .
i wants to know how will i create swap or add new swap space in existing swap space .
Note: disk under veritas volume manager control .
please help me to solve this issue . (5 Replies)
Discussion started by: samy123
5 Replies
4. UNIX for Dummies Questions & Answers
Hi friends,
In my case, there are serveral PCs running Linux in a LAN.
I would like to to mount the directory /A_river of machine-A to the file system of another machine machine-B so that I can access files in that directory.
I do not know how to do this. The situation is complicated by... (2 Replies)
Discussion started by: cy163
2 Replies
5. Solaris
Dear All,
In our environment we use SDS (Solaris Vlume Manager) for root file system.So, I am wondering why Veritas is not use for the same.
root@abc # df -kh
Filesystem size used avail capacity Mounted on
/dev/md/dsk/d10 30G 22G 6.9G 77% /
/devices ... (3 Replies)
Discussion started by: Reboot
3 Replies
6. Solaris
hi all
i have a DLT tape in that tape backup is there is in veritas volume format and i want to restore it in ufs file system how can i do it?
right now i don't have veritas file system setup. i have only ufs file sysytem
please help some production data is to be restore. (3 Replies)
Discussion started by: nikhil kasar
3 Replies
7. Solaris
Hi all
I have a DLT tape in that tape backup is there is in veritas volume format and i want to restore it in ufs file system how can i do it?
right now i don't have veritas file system setup. i have only ufs file sysytem
please help some production data is to be restore.
backup was taken... (0 Replies)
Discussion started by: nikhil kasar
0 Replies
8. Shell Programming and Scripting
We would be migrating UNIX file system to Linux file system.
We do have many directory and sub directories with files.
after migrating unix to linux file system , i want to make sure all the files has been copied ? What would be the best approach to validate directory ,sub-directory and file... (1 Reply)
Discussion started by: balajikalai
1 Replies
9. UNIX for Dummies Questions & Answers
Hi,
I am on Solaris 10 server which is running Veritas. It's E420 server with two drives. I don't know much about Veritas. The other guy who works on this, on vacation this week. :-) Any way, looks like I have hard drive issue on the server.
When I do iostat -E. I see this.
sd0... (4 Replies)
Discussion started by: samnyc
4 Replies
10. UNIX for Beginners Questions & Answers
Hi Experts,
I wanted to extend a veritas file system which is running on veritas cluster and mounted on node2 system.
#hastatus -sum
-- System State Frozen
A node1 running 0
A node2 running 0
-- Group State
-- Group System Probed ... (1 Reply)
Discussion started by: Skmanojkum
1 Replies
LEARN ABOUT PHP
sqlsrv_commit
SQLSRV_COMMIT(3) SQLSRV_COMMIT(3)
sqlsrv_commit - Commits a transaction that was begun withsqlsrv_begin_transaction(3)
SYNOPSIS
bool sqlsrv_commit (resource $conn)
DESCRIPTION
Commits a transaction that was begun with sqlsrv_begin_transaction(3). The connection is returned to auto-commit mode after sqlsrv_com-
mit(3) is called. The transaction that is committed includes all statements that were executed after the call to sqlsrv_begin_transac-
tion(3). Explicit transactions should be started and committed or rolled back using these functions instead of executing SQL statements
that begin and committ/roll back transactions. For more information, see SQLSRV Transactions.
PARAMETERS
o $conn
- The connection on which the transaction is to be committed.
RETURN VALUES
Returns TRUE on success or FALSE on failure.
EXAMPLES
Example #1
sqlsrv_commit(3) example
The following example demonstrates how to use sqlsrv_commit(3) together with sqlsrv_begin_transaction(3) and sqlsrv_rollback(3).
<?php
$serverName = "serverNamesqlexpress";
$connectionInfo = array( "Database"=>"dbName", "UID"=>"userName", "PWD"=>"password");
$conn = sqlsrv_connect( $serverName, $connectionInfo);
if( $conn === false ) {
die( print_r( sqlsrv_errors(), true ));
}
/* Begin the transaction. */
if ( sqlsrv_begin_transaction( $conn ) === false ) {
die( print_r( sqlsrv_errors(), true ));
}
/* Initialize parameter values. */
$orderId = 1; $qty = 10; $productId = 100;
/* Set up and execute the first query. */
$sql1 = "INSERT INTO OrdersTable (ID, Quantity, ProductID)
VALUES (?, ?, ?)";
$params1 = array( $orderId, $qty, $productId );
$stmt1 = sqlsrv_query( $conn, $sql1, $params1 );
/* Set up and execute the second query. */
$sql2 = "UPDATE InventoryTable
SET Quantity = (Quantity - ?)
WHERE ProductID = ?";
$params2 = array($qty, $productId);
$stmt2 = sqlsrv_query( $conn, $sql2, $params2 );
/* If both queries were successful, commit the transaction. */
/* Otherwise, rollback the transaction. */
if( $stmt1 && $stmt2 ) {
sqlsrv_commit( $conn );
echo "Transaction committed.<br />";
} else {
sqlsrv_rollback( $conn );
echo "Transaction rolled back.<br />";
}
?>
SEE ALSO
sqlsrv_begin_transaction(3), sqlsrv_rollback(3).
PHP Documentation Group SQLSRV_COMMIT(3)