SQL EXPRESS Download
Connect
/EXPRESS dapat piliin
*MUST HAVE DATABASE ALREADY
Server roles
Sysadmin
Serveradmin
User mapping:
Check you Database
Check db_owner
Security
SQL Server and Windows Authentication mode
RIGHT CLICK Restart
DISCONNECT THE SERVER FIRST THEN CONNECT IT AGAIN
SELECT Authentication: sql server authentication
Options >>
Connection properties CHECK Trust Server certificate
It will appear that you will change password PERO PARA SAAKIN KAHIT DI NA BAGUHIN
SQL SERVER 2022 CONFIGURATION MANAGER
ENABLED TCP/IP
Right click properties
Enabled Yes
MUST Apply
Oki
SERVICES
SQL server Browser
Start up type: MUST automatic
node .js INSTALL
SQL EXPRESS Download
NEXT LANG LAHAT
CHECK LANG
ENTER – ENTER LANG
WAIT LANGS
open visual studio code
npm install node js
npm init -y
npm install express
npm install ejs
npm install mssql -save
CREATE NEW .js FILE
The file na ginawa ko is [Link]
const express = require('express');
const sql = require('mssql');
const path = require('path');
const app = express();
const port = 3000;
const config = {
user: 'Bitebyte',
password: '123',
server: 'LEONA\\SQLEXPRESS',
database: 'Bitebyte',
options: {
encrypt: true,
trustServerCertificate: true,
port: 1433,
enableArithAbort: true,
};
async function connectToDatabase() {
try {
await [Link](config);
[Link]('Connected to the database successfully.');
} catch (err) {
[Link]('Error connecting to the database:', err);
// Start the server after connecting to the database
connectToDatabase().then(() => {
[Link](port, () => {
[Link](`Server is running on [Link]
});
}).catch(err => {
[Link]('Failed to start server due to database connection error:', err);
});
node (yung file name mo).js
node [Link]
AS THE RESULT
[Link] FOLLOW THIS
THE PAGE MUST LIKE THIS
THAT’S ALL YOU CAN CUSTOMIZE IT
STAY TUNNED SA PART2
MGA BAGAY NA NAKALIMUTAN HEHE
npm install json
npm install ajax
npm install mssql -save
npm install mssql
CLICK START
PARA SA PROJECT KO
npm install express-session
THEN RESTART THE SERVER
npm install mysql express body-parser
npm install knex
npx knex init