Skip to content

Commit 832676e

Browse files
committed
Fixed Docker shell script plus minor text changes.
1 parent 6e7e479 commit 832676e

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

Models/ServerResource.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ public class ServerResource : Resource
1414

1515
public string Product
1616
{
17-
// Azure SQL DB and Azure SQL DW don't support the 'Product' property
17+
// Azure SQL DB and Azure SQL DW don't support the SMO Product' property
1818
get
1919
{
20-
string retVal = "Unknown";
20+
string retVal = "Not Available";
2121
if(this.SmoServer.ServerType == SMOCommon.DatabaseEngineType.Standalone)
2222
{
2323
retVal = this.SmoServer.Product;

Program.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public static int Main(string[] args)
2727

2828
try
2929
{
30-
Log.Information("*** REST API middle-tier for SQL Server");
30+
Log.Information("*** REST API for SQL Server, Azure SQL Database and Azure SQL Data Warehouse.");
3131
TestSqlServerConnection();
3232
StartWebHost();
3333
return 0;

scripts/4-docker-restapi-sqldb.sh

+6-5
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@ set -x
1515

1616
docker pull sanagama/mssql-restapi
1717

18-
MSSQL_HOST="<server>.database.windows.net" \
19-
MSSQL_PORT="1433" \
20-
MSSQL_USERNAME="<username>" \
21-
MSSQL_PASSWORD="<password>" \
22-
docker run -it --name 'mssql-restapi' -p 5000:5000 sanagama/mssql-restapi
18+
docker run -it -p 5000:5000 \
19+
-e MSSQL_HOST="<server>.database.windows.net" \
20+
-e MSSQL_PORT="1433" \
21+
-e MSSQL_USERNAME="<username>" \
22+
-e MSSQL_PASSWORD="<password>" \
23+
sanagama/mssql-restapi

0 commit comments

Comments
 (0)