24.10.2012 Views

Working with the geodatabase effectively using SQL - Esri

Working with the geodatabase effectively using SQL - Esri

Working with the geodatabase effectively using SQL - Esri

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Working</strong> <strong>with</strong> multiversioned views<br />

• DBMS procedure for setting <strong>the</strong> version for <strong>the</strong> view to reference<br />

//Oracle<br />

<strong>SQL</strong> <strong>SQL</strong>> exec sde.version_util.set_current_version d i til t t i (‘tomb.PROPOSED_SUBDIVISION’);<br />

(‘t b PROPOSED SUBDIVISION’)<br />

<strong>SQL</strong>> SELECT owner, parcel_id FROM parcel_mv<br />

WHERE st_envintersects(shape, 5,5,10,10) = 1;<br />

//<strong>SQL</strong>*Server<br />

exec sde.set_current_version (‘tomb.PROPOSED_SUBDIVISION’)<br />

or<br />

exec dbo.set dbo.set_current_version current version ( (‘tomb.PROPOSED tomb.PROPOSED_SUBDIVISION SUBDIVISION’) )<br />

//DB2<br />

call setcurrentversion (‘tomb.PROPOSED_SUBDIVISION’)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!