The following scripts can be used with SQL server.