1
0
mirror of https://github.com/Microsoft/sql-server-samples.git synced 2025-12-08 14:58:54 +00:00

Updated Azure Function examples

This commit is contained in:
Jovan Popovic
2017-04-21 16:41:55 +02:00
parent 0109c0b80e
commit 323c42bfd8
8 changed files with 132 additions and 7 deletions

View File

@ -10,7 +10,7 @@ public static async Task<HttpResponseMessage> Run(HttpRequestMessage req, TraceW
try{
string ConnectionString = ConfigurationManager.ConnectionStrings["azure-db-connection"].ConnectionString;
var sqlQuery = new QueryPipe(ConnectionString);
var tableSpec = new SqlServerRestApi.SQL.TableSpec("sys.objects", "object_id,name,type,schema_id,create_date");
var tableSpec = new SqlServerRestApi.TableSpec("sys","objects", "object_id,name,type,schema_id,create_date");
return await req.CreateODataResponse(tableSpec, sqlQuery);
} catch (Exception ex) {