Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] How do you nolock?
Go
New
Search
Notify
Tools
Reply
  
[SOLVED] How do you nolock?
 Login/Join
 
Master
posted
I like to be a good programmer citizen, and that means issuing my SQL*Server requests with a nolock. Is there a way to do this in native FOCUS code?

This message has been edited. Last edited by: FP Mod Chuck,



 
Posts: 931 | Location: At the Mast | Registered: May 17, 2007Reply With QuoteReport This Post
Master
posted Hide Post
No sure what version of WF you are using. So, from the 8201M docs, this might answer your question. Syntax: How to Specify Transaction Isolation Level From a SET Command

NOLOCK Is equivalent to READUNCOMMITTED. So, you would use the RU option.


Hallway
WF(Prod):8202M
WF(Test):8202M
OS/Platform:Win 10
Outputs:All
 
Posts: 485 | Location: Salt Lake City, UT, USA | Registered: November 18, 2015Reply With QuoteReport This Post
Guru
posted Hide Post
I doubt that being a good programmer citizen has anything to do with uncomitted / dirty reads


Test: WF 8.2
Prod: WF 8.2
DB: Progress, REST, IBM UniVerse/UniData, SQLServer, MySQL, PostgreSQL, Oracle, Greenplum, Athena.
 
Posts: 411 | Location: Europe | Registered: February 05, 2007Reply With QuoteReport This Post
Master
posted Hide Post
quote:
Originally posted by Hallway:
No sure what version of WF you are using. So, from the 8201M docs, this might answer your question. Syntax: How to Specify Transaction Isolation Level From a SET Command

NOLOCK Is equivalent to READUNCOMMITTED. So, you would use the RU option.



Yikes! So if I set using that command I can issue a TABLE FILE request and it will adhere to the restriction, yes? I should put SQL SQLMSS SET ISOLATION RU; at the beginning of the focexec to achieve the result? The documentation isn't very clear on that.



 
Posts: 931 | Location: At the Mast | Registered: May 17, 2007Reply With QuoteReport This Post
Master
posted Hide Post
quote:
Originally posted by Frans:
I doubt that being a good programmer citizen has anything to do with uncomitted / dirty reads


I recycle too.



 
Posts: 931 | Location: At the Mast | Registered: May 17, 2007Reply With QuoteReport This Post
Virtuoso
posted Hide Post
John

If you want this to be a global setting put it in the server profile (edasprof.prf) and all reports will use this setting.


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats
 
Posts: 1664 | Location: Customer Support | Registered: April 12, 2005Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] How do you nolock?

Copyright © 1996-2018 Information Builders, leaders in enterprise business intelligence.