tdjfdjdj
tdjfdjdj

Reputation: 2471

sql c# check for database updates without while/for loops?

I have a simple C# program that checks the database for updates every minute via a timed loop. It works fine, but I think its not efficient. Is there a better way to do this?

Thank

Upvotes: 1

Views: 387

Answers (1)

fearofawhackplanet
fearofawhackplanet

Reputation: 53446

Have you looked at SqlDependency?

Upvotes: 2

Related Questions