Write to SQL

Hello,

Having 2 redundant servers, what is the best way to write values ​​to an SQL database? Which server write to SQL (only the primary or both) or do I have to do a script to find out the primary one?
It is complicated?

Regards

Parents
  • Hi  ,

    One approach I have seen is to use the Report Server to host the code to write values to the SQL database. This handles the Primary/Standby complexity, so only one will run at a time. If the Primary is shutdown, the Standby will start executing the cicode. There are a number of TechNotes that describe this (TN25540).

    Also for SQL code examples, have a look at the Cicode functions SQLOpen, SQLConnect. The Example project also has some code and pages that illustrate how to use them.

Reply
  • Hi  ,

    One approach I have seen is to use the Report Server to host the code to write values to the SQL database. This handles the Primary/Standby complexity, so only one will run at a time. If the Primary is shutdown, the Standby will start executing the cicode. There are a number of TechNotes that describe this (TN25540).

    Also for SQL code examples, have a look at the Cicode functions SQLOpen, SQLConnect. The Example project also has some code and pages that illustrate how to use them.

Children