PLATFORMS SOLUTIONS BLOGS CONTACT

/features/views




VIEWS


Enzo Server allows you to create views of remote resources, such as a SharePoint List or a SalesForce table, so that only a subset of the columns and/or rows is returned. Views can contain a filter that returns only a subset of the data; however, support for filters within a view may vary based on the adapter. Views are a fundamental building block in Enzo Server and allow access to complex remote systems through simple SELECT commands through Linked Server.

View are available in most adapters and usually allow data changes such as UPDATE, DELETE and INSERT operations, depending on the adapter's ability to support the underlying API calls.


Create a View

To create a view, use the CREATE VIEW statement in SQL Server Management Studio.


-- Create a view against a SharePoint list called 'USStates'
CREATE VIEW vUSStates
AS
SELECT ID, Title, [State Code] FROM SharePoint.[list@USStates]

-- Create a view against a CSV File
CREATE VIEW vFirestations 
AS 
SELECT TOP 10 * 
 FROM CSV.[data@firestations2] 
 WHERE _path = 'c:\tmp\firestations\usfa-registry-AL.txt'

Views created in Enzo support simple SQL commands against a single adapter. At this time, it is not possible to create views that JOIN multiple adapters.

Views are created in the context of the current Enzo login and configuration setting.


Calling a View

Once a view has been created on an adapter, it is now made available as a handler. For example, if a view called vUSStates has been created on the SharePoint adapter, the following command can be sent to Enzo:


SELECT * FROM SharePoint.vUSStates

And if the ID column of that view is marked as Searchable, the following command can be executed:


SELECT * FROM SharePoint.vUSStates WHERE ID=1

When executing a SQL command from a Linked Server, the fully qualified name is required:


SELECT * FROM [localhost,9550].bsc.SharePoint.vUSStates WHERE ID=1

In this example, we are calling a view defined on the CSV adapter:


SELECT * FROM CSV.vFirestations







601 21st St Suite 300
Vero Beach, FL 32960
United States

(561) 921-8669
info@enzounified.com
terms of service
privacy policy

PLATFORM

ENZO SERVER
ENZO DATAZEN

SOLUTIONS

SOLUTIONS OVERVIEW
INTEGRATION
SaaS
CLOUD ANALYTICS

RESOURCES

DOWNLOAD
BLOGS & VIDEOS
IN THE NEWS
ENZO ADAPTERS
ONLINE DOCUMENTATION
TCO CALCULATOR

COMPANY

LEADERSHIP TEAM
PARTNERS


© 2023 - Enzo Unified