sql - What is the TSQL "FOR BROWSE" option used for? -
i working on query, , have found minimal documentation microsoft on tsql "for browse" option on select statement.
i have seen browse documented option cursors, haven't been able find examples of using this, or reasons use browse on select statement.
what reasons use browse in tsql select statement?
i using sql server 2008 , 2012.
as far can tell. appears interface implementing optimistic concurrency control within application 1 or more users accessing , updating data same source @ same time. appears work in conjunction compatible front end library (db-library). however, appear deprecated mechanism can achieve of above without using "for browse" statement. can further confirmed necessity create 2 dbprocess structures results of db-library (a deprecated c library) call "dbopen".
in addition, browse mode requires 2 dbprocess structures: 1 selecting data , updating based on selected data. src
here example of using "for browse" query in conjunction db-library.
ultimately, reasonable conclude mechanism still exists purpose of backwards-compatibility. unless you're maintaining c based client using db-library, wouldn't worry sql "for clause".
some other sources
- sql server reference manual - browse mode
- additional information browse option
- using browse mode instead of cursors
one more observation
cursors declared browse must wait uncommitted changes (made anyone, including cursor owner) during open cursor operation. after cursor open, subsequent changes not cause cursor wait. when cursor reopened, can blocked uncommitted changes. src
Comments
Post a Comment