Grouping Sets, With Rollup and With Cube example
Grouping sets allow multiple grouping on columns in a single data set. Rollup and Cube also used for summary rows (allows multiple grouping same as Grouping sets) Example: DECLARE @t TABLE ( idx INT IDENTITY(1, 1) , Country VARCHAR(50) , City VARCHAR(50) , NoOfJobOpenings INT ); INSERT INTO @t ( Country , City , NoOfJobOpenings ) SELECT 'Pakistain' , 'Karachi' , 50 UNION SELECT 'Pakistain' , 'Lahore' , ...
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.