Neudesic Blogs

Think Smart. Get Results.
Welcome to Neudesic Blogs Sign in | Join | Help
in Search

Jason Noble

fn_ncf_BuildListSql

Office Canvas Version 1 will include a new capability for generating SQL statements that can be used for advanced reporting on SharePoint data. These statements include SELECT, SELECTINTO, and CREATEVIEW. Using the function fn_ncf_BuildListSql will return a SQL statement can be executed against a SharePoint Content Database to return list data. The following are usage examples:

 

SELECT INTO

declare @s varchar(max)

exec @s = fn_ncf_BuildListSql 'SELECTINTO', '', 'Canvas Tasks', '##MyTempTable', ''

exec(@s)

 

SELECT

declare @s varchar(max)

exec @s = fn_ncf_BuildListSql 'SELECT', '', 'Canvas Tasks', '', ''

exec(@s)

 

CREATE VIEW

declare @s varchar(max)

exec @s = fn_ncf_BuildListSql 'CREATEVIEW', '', 'Canvas Tasks', '', 'CanvasTasks'

exec(@s)

Published Monday, May 05, 2008 2:19 PM by Jason Noble

Comments

No Comments
Anonymous comments are disabled

This Blog

Post Calendar

<May 2008>
SuMoTuWeThFrSa
27282930123
45678910
11121314151617
18192021222324
25262728293031
1234567

Syndication

Powered by Community Server, by Telligent Systems