Skip to Content.
Sympa Menu

freetds - Re: [freetds] How to subscribe Microsoft Sql server

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Frediano Ziglio <freddy77 AT gmail.com>
  • To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] How to subscribe Microsoft Sql server
  • Date: Wed, 31 Aug 2016 09:39:43 +0100

2016-08-30 23:15 GMT+01:00 Xiaobiao Yin <xiaobiaoyin AT outlook.com>:
> Hi Experts
>
>
> I am very new to FreeTDS and SQL server.
>
> so far I can connect the MS SQL server 2005 from CentOS 7.2 using C
> program.
>
>
> My requirement is that if the SQL database changed (such as insert
> ,delete or update some items),
>
> is there a way to know this change?
>
>
> After looking through the APIs, I found there is no such APIs to
> subscribe specified SQL database table.
>
> Generally, I need to polling this specified table and see if the
> return results is the same as the last query, but it
>
> seems a little bit complex and no efficiency.
>
>
> So my question is:
>
> Is there an API to subscribe specified table in SQL server database.
>
>
> Any comment and hint is welcome.
>
> Thanks in advance.
>
> Eric
>


One option is query notifications, for instance see
http://www.easysoft.com/support/kb/kb01069.html.
The other option is triggers, see
https://msdn.microsoft.com/en-us/library/ms189799.aspx.

Frediano




Archive powered by MHonArc 2.6.24.

Top of Page