Debug WCF Service

Put a debug break point in the WCF code. Run the web app that is calling the WCF services. Go back to Visual Studio -> “Debug” -> “Attach To Process” and select the WCF services (MyService01.exe). Go back to the web app and run the code to reach the break point. You need to attach... » read more

Create SQL Login for SQL Azure Database

Generating Logins Logins are server wide login and password pairs, where the login has the same password across all databases. Here is some sample Transact-SQL that creates a login: You must be connected to the master database on SQL Azure with the administrative login (which you get from the SQL Azure portal) to execute the... » read more

NCRONTAB Used By Azure Function

Example When Triggered 0 */5 * * * * once every five minutes 0 0 * * * * once at the top of every hour 0 0 */2 * * * once every two hours 0 0 9-17 * * * once every hour from 9 AM to 5 PM 0 30 9 *... » read more

Always On Manual Failover Using Failover Wizard

Right click on the Availability Group, select “Failover…” Select the new primary replica Synchronous commit = No data lost Asynchronous commit = Possible data lost Results Validating failover settings for secondary replica Performing manual failover to secondary replica Completing the role change for secondary replica Validating WSFC quorum vote configuration Note: Run the following on... » read more

Always On Manual Failover Without Data Loss

Manual failover without data loss Use this method when the primary replica is available, but you need to temporarily or permanently change which instance hosts the primary replica. To avoid potential data loss, before you issue the manual failover, ensure that the target secondary replica is up to date. To manually fail over without data... » read more

Always On Configuration for Automatic Failover

2 Server Setup Server Role Availability Mode Failover Mode Connections in Primary Role Readable Secondary Seeding Mode Session Timeout Endpoint URL DB01 Primary Synchronous commit Automatic Allow all connections No Manual 180 TCP://<servername>:5022 DB02 Secondary Synchronous commit Automatic Allow all connections No Manual 180 TCP://<servername>:5022 3 Server Setup Server Role Availability Mode Failover Mode Connections... » read more

View Stored Procedure Permission

If we want to provide view object definition rights to a specific user with the public role on all databases, execute the following query If we want to provide view object definition rights to a specific user with a public role on a specific database, execute the following query To grant View Definition rights to... » read more