You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: samples/features/json/todo-app/nodejs-express4-rest-api/README.md
+16-5Lines changed: 16 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -45,11 +45,22 @@ To run this sample, you need the following prerequisites.
45
45
46
46
3. From Visual Studio, open the **TodoApp.xproj** file from the root directory,
47
47
48
-
4. Locate db.js file in the project, change database connection info in createConnection() method to reference your database. the following tokens should be replaced:
49
-
4.1. SERVERNAME - name of the database server.
50
-
4.2. DATABASE - Name of database where Todo table is stored.
51
-
4.3. USERNAME - SQL Server login that can access table data and execute stored procedures.
52
-
4.4. PASSWORD - Password associated to SQL Server login.
48
+
4. Locate db.js file in the project, change database connection info in createConnection() method to reference your database.
49
+
50
+
```
51
+
var config = {
52
+
server : "SERVER.database.windows.net",
53
+
userName: "USER",
54
+
password: "PASSWORD",
55
+
// If you're on Azure, you will need this:
56
+
options: { encrypt: true, database: 'DATABASE' }
57
+
};
58
+
```
59
+
The following tokens should be replaced:
60
+
1. SERVERNAME - name of the database server.
61
+
2. DATABASE - Name of database where Todo table is stored.
62
+
3. USERNAME - SQL Server login that can access table data and execute stored procedures.
63
+
4. PASSWORD - Password associated to SQL Server login.
53
64
54
65
5. Build project using Ctrl+Shift+B, right-click on project + Build, or Build/Build Solution from menu.
0 commit comments