This blog is primarily for my own reference, but if the information I found is useful to others, then that is great. If others want to contribute with comments or other information, then that is great too.
I was working on a task in which I have to add one new column in my existing table and set its value given by the client which is incremental value to previous records.
Id fname lname No
1 user 1 user 1 5
2 user 1 user 1 6
3 user 1 user 1 7
I was looking for some solution and ended up with following solution which works well for me.
-- Create Table
CREATE TABLE usermaster (
-- Insert 100 Records
) GO 100 -- You can specify any no. of records
-- Add one more column called id using ALTER statement
ALTER TABLE usermaster ADD id INT
-- Update Id column with Increment value
DECLARE @id INT
SET @id = 0 -- you can specify any no. I set it 0 so it start with 1.
SET @id = id = @id + 1
-- check updated table records
Microsoft Introduce ASP.Net WebHooks. In the MSDN blog article you will get an overview of how to work with Microsoft ASP.NET WebHooks. Microsoft ASP.Net Webhooks make it easy to send and receive webhooks from web application.
YouTube takes screenshots of the videos you upload. Here is a quick reference of how you do this on your webpage. Each YouTube video has 4 generated images. The first is a full size cover image and the rest are thumbnail images:
Ctrl+R is a good friend of mine. It is very handy to use this command not only to hide the results pane away and focus on the query, but to also be able to bring the results back just as quickly – without having to run the query again
In SSMS 2014 when I press Ctrl+R to show/hide my result pane, I was getting below message in the left bottom of SSMS.
“(Ctrl+R) was pressed. Waiting for second key of chord…”
Pressing Ctrl+R again I get message as “The key combination (Ctrl+R, Ctrl+R) is not a command”
Here is what I did to make my shortcut work again.
Go to Tools Menu in SSSMS
Click on Option
Go to Keyboard and expand the menu
Click on option Keyboard again
Enter “Window.ShowResultsPane” in Show commands containing: search box
Change the “Use new shortcut in:” dropdown to “SQL Query Editor“
Put your cursor in the “Press shortcut keys:” box and hit Ctrl+R
Click on “Assign” button before hitting OK
Unlike some other changes that still require an SQL Management Studio restart to take effect, the change takes effect immediately, and CTRL + R should start working again.
Hope this helps! Please write comment and let me know your feedback.