SunQuest
           Database Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesDatabase Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old April 2nd, 2003, 08:19 AM
chr158 chr158 is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 2 chr158 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via Yahoo to chr158
MsSQL Transaction Isolation Levels and Commits

CRITERIA: WIN2K SERVER, MSSQL 2000, PHP4.

Question:
I am creating a PHP application that will allow the manipulation of data in an MSSQL 2000 DB. I have the general functions up and running - search, add, modify, delete and list of records. I am now faced with setting transactions and record locking. I have no idea how to implement a set_transaction as MSSQL PHP functions does not seem to support it even though MSSQL 2000 allows and supports transactions. Does anybody know a work around for this?
Any help would be much appreciated.

Here is my code so far:

$sql = "SELECT * FROM TABLE order by COLUMN asc ";
$sql_trans = mssql_query("SET TRANSACTION ISOLATION LEVEL REPEATABLE READ;");

$sql_result = mssql_query($sql) or die("Couldn't execute query.");
$num = @mssql_num_rows($sql_result);

$row = @mssql_fetch_array($sql_result);

$trans_end ="COMMIT TRANSACTION";

Many Thanks In Advance

Reply With Quote
  #2  
Old April 3rd, 2003, 02:06 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: MsSQL Transaction Isolation Levels and Commits


Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesDatabase Help > MsSQL Transaction Isolation Levels and Commits


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway