tediousjs / tedious

Node TDS module for connecting to SQL Server databases.

Home Page:http://tediousjs.github.io/tedious/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SQL Server Realtime Push Notifications to Node.JS

ahmedmoloude opened this issue · comments

hi, I notice in the examples folder that there is a possibility to send events to Nodejs when something changes in the DB

`const connection = new Connection(config);

connection.connect(connected);
connection.on('infoMessage', infoError);
connection.on('errorMessage', infoError);
connection.on('end', end);
connection.on('debug', debug);`

but i am wondering how we can do such thing from the SQL server thanks in advance

Hi @ahmedmoloude, what are you trying to do specifically? Do you want to emit custom events from the SQL server?

The SQL server does emit events that gets handled by Tedious' connection.on and request.on event handlers. You can see more info on them in our documentation here: http://tediousjs.github.io/tedious/

Closing due to inactivity. Feel free to comment here again and I can reopen the issue or you can also open a new issue.