I am trying to figure out code working for an auto testing as follows: (in C# code, SQL database used)
- Check whether database (having credentials) is working fine or down?
- If working, run a select query in it & check for succesful execution.
- In any case of failure for above 2 points, automatically send an email to somemone.
请帮助我。 我认为,这将是各位专家的ake。
感谢