To Get All the Names of tables and Databases their data have changed in last 24 Hours And Backup those databases
-- ============================================= -- Author: Muhammad Jawad -- Create date: 2/3/2017 -- Description: To Get All the Names of tables and Databases their data have changed in last 24 Hours And Backup those databases -- ============================================= Alter PROC UP_FindAndBackupAllDatabaseHaveChanges AS BEGIN ----**************************START: To get all the tables and database names whose data have changed in last 24 hours **************************---- DECLARE @loopStart INT= 1; DECLARE @looend INT; IF OBJECT_ID('tempdb..#AllDatabaseTables') IS NOT NULL BEGIN DROP TABLE #AllDatabaseTables; END; CREATE TABLE #AllDatabaseTables ( ...
Method 3: Use Command Prompt to reset your lost SQL sa password
Step 1. Open a command prompt (Start -> Run -> cmd)
Step 2. Type the follow commands, and press Enter after each line:
Osql -S yourservername -E
1> EXEC sp_password NULL, 'yourpassword', 'sa'
2> GO
Of course, you can reset your other sql account password, just by changing the 'sa' to your another sql account name.