Friday 20 November 2015

how to check a phone number if register at whatsapp ??(Easy Code)

string[] s = { "Phone Number1" ,"Phone Number2"};

                        WhatSocket.Instance.SendSync(s);
/ /Declare Delegate Event
                       WhatSocket.Instance.OnGetSyncResult += Instance_OnGetSyncResult;

//Delegate Event

 void Instance_OnGetSyncResult(int index, string sid, Dictionary<string, string> existingUsers, string[] failedNumbers)
        {
            foreach (KeyValuePair<string, string> iteam in existingUsers)
            {
                MessageBox.Show("existing" + iteam.Key + iteam.Value);
            }
            foreach (string item in failedNumbers)
            {
                MessageBox.Show("not existing" + item);
            };
        }

Tuesday 17 November 2015

how to check a phone number if register at whatsapp ??

if (!String.IsNullOrEmpty(this.txtPhoneNumber.Text))
            {
                try
                {
                    this.number = this.txtPhoneNumber.Text;
                    this.TrimNumber();
                    WhatsAppApi.Parser.PhoneNumber phonenumber = new WhatsAppApi.Parser.PhoneNumber(this.number);
                    this.identity = WhatsAppApi.Register.WhatsRegisterV2.GenerateIdentity(phonenumber.Number, this.txtPassword.Text);
                    this.cc = phonenumber.CC;
                    this.phone = phonenumber.Number;

                    CountryHelper chelp = new CountryHelper();
                    string country = string.Empty;
                    if (!chelp.CheckFormat(this.cc, this.phone, out country))
                    {
                        string msg = string.Format("Provided number does not match any known patterns for {0}", country);
                        this.Notify(msg);
                        return;
                    }
                }
                catch (Exception ex)
                {
                    string msg = String.Format("Error: {0}", ex.Message);
                    this.Notify(msg);
                    return;
                }
                string response = null;
                this.password = WhatsAppApi.Register.WhatsRegisterV2.RequestExist(this.number, out response, this.identity);

                if (!string.IsNullOrEmpty(this.password))
                {
                    //password received
                    this.OnReceivePassword();
                }
                else
                {
                    string msg = string.Format("Could not verify existing registration\r\n{0}", response);
                    this.Notify(msg);
                }
            }
            else
            {
                this.Notify("Please enter a phone number");
            }

Monday 16 November 2015

Difference Between NULLIF And NULL Using Count() Funtion in Sql

SELECT
COUNT(pkt) AS Pkt1,
COUNT(CASE WHEN Pkt = 0 THEN NULL ELSE Pkt END) AS Pkt2,
COUNT(CASE WHEN Pkt = 0 THEN 0 ELSE Pkt END) AS Pkt3,
COUNT(NULLIF(Pkt,0)) AS Pkt4
 FROM (SELECT 0 AS Pkt UNION ALL SELECT 1 AS Pkt UNION ALL SELECT 0 AS Pkt UNION ALL SELECT 2 AS Pkt ) AS P

Friday 6 November 2015

Visual Studio 2015 keyboard shortcuts

Analyze

Navigate Backward
Shift+Alt+3
Navigate Forward
Shift+Alt+4

Architecture

New Code Map
Ctrl+\, Ctrl+O
New UMLor Layer Diagram
Ctrl+\, Ctrl+N

Architecture Context Menus

Add Node
Ins
Both Dependencies
B
Incoming Dependencies
I
Outgoing Dependencies
O
New Comment
Ctrl+Shift+K
Ctrl+E, C
Remove
Del
Rename
F2

Build

Build Solution
Ctrl+Shift+B
Cancel
Ctrl+Break
Compile
Ctrl+F7
Run Code Analysison Solution
Alt+F11

Class Diagram

Collapse
Num -
Expand
Num +

Class View Context Menus

Properties
Alt+Enter

Misc

Commit All Edits
Shift+Alt+U
Move Left Edgetotheleft
Ctrl+Shift+,
Move Left Edgetotheright
Ctrl+Shift+.
Move Right Edgetotheleft
Ctrl+Shift+Alt+,
Move Right Edgetotheright
Ctrl+Shift+Alt+.
TSql Editor Clone Query
Ctrl+Alt+N
TSql Editor Database Combo
Shift+Alt+PgDn
View File In Script Panel
Shift+Alt+PgDn

Debug

Apply Code Changes
Alt+F10
Attachto Process
Ctrl+Alt+P
Autos
Ctrl+Alt+V, A
Break All
Ctrl+Alt+Break
Breakat Function
Ctrl+B
Breakpoints
Ctrl+Alt+B
Call Stack
Ctrl+Alt+C
Debug Windows Phone Internet Explorer
Ctrl+Shift+P
Delete All Breakpoints
Ctrl+Shift+F9
Launch
Alt+F2
Stop Collection
Ctrl+Alt+F2
Disassembly
Ctrl+Alt+D
Enable Breakpoint
Ctrl+F9
Exceptions
Ctrl+Alt+E
Go To Previous Callor Intelli Trace Event
Ctrl+Shift+F11
Start Diagnostics
Alt+F5
Immediate
Ctrl+Alt+I
Intelli Trace Calls
Ctrl+Alt+Y, T
Intelli Trace Events
Ctrl+Alt+Y, F
Java Script Console
Ctrl+Alt+V, C
Locals
Ctrl+Alt+V, L
Process Combo
Ctrl+5
Stack Frame Combo
Ctrl+7
Thread Combo
Ctrl+6
Toggle Current Thread Flagged State
Ctrl+8
Toggle Flagged Threads
Ctrl+9
Memory1
Ctrl+Alt+M, 1
Memory2
Ctrl+Alt+M, 2
Memory3
Ctrl+Alt+M, 3
Memory4
Ctrl+Alt+M, 4
Modules
Ctrl+Alt+U
Parallel Stacks
Ctrl+Shift+D, S
Parallel Watch1
Ctrl+Shift+D, 1
Parallel Watch2
Ctrl+Shift+D, 2
Parallel Watch3
Ctrl+Shift+D, 3
Parallel Watch4
Ctrl+Shift+D, 4
Show
Ctrl+Shift+D, D
Processes
Ctrl+Alt+Z
Quick Watch
Shift+F9
Ctrl+Alt+Q
Refresh
F5
Refresh Windowsapp
Ctrl+Shift+R
Registers
Ctrl+Alt+G
Restart
Ctrl+Shift+F5
Run To Cursor
Ctrl+F10
Select Element
Ctrl+B
Set Next Statement
Ctrl+Shift+F10
Show All
Ctrl+Alt+V, D
Show Call Stackon Code Map
Ctrl+Shift+`
Show Layout
Ctrl+Shift+I
Show Next Statement
Alt+Num *
Start
F5
Start Windows Phone Application Analysis
Alt+F1
Start Without Debugging
Ctrl+F5
Step Into
F11
Step Into Current Process
Ctrl+Alt+F11
Step Into Specific
Shift+Alt+F11
Step Out
Shift+F11
Step Out Current Process
Ctrl+Shift+Alt+F11
Step Over
F10
Step Over Current Process
Ctrl+Alt+F10
Stop Debugging
Shift+F5
Stop Performance Analysis
Shift+Alt+F2
Tasks
Ctrl+Shift+D, K
Threads
Ctrl+Alt+H
Toggle Breakpoint
F9
Toggle Disassembly
Ctrl+F11
Watch1
Ctrl+Alt+W, 1
Watch2
Ctrl+Alt+W, 2
Watch3
Ctrl+Alt+W, 3
Watch4
Ctrl+Alt+W, 4

Debugger Context Menus

Delete
Alt+F9, D
Go To Disassembly
Alt+F9, A
Go To Source Code
Alt+F9, S

Design

Fit All
Ctrl+0
Refresh Page
Ctrl+R
Search CSSPI
Ctrl+Shift+;
Show Handles
F9
Toggle Interactive Mode
Ctrl+Alt+I
Zoom In
Ctrl+Alt+=
Zoom Out
Ctrl+Alt+-

Diff

Ignore Trim Whitespace
Ctrl+\, Ctrl+Space
Inline View
Ctrl+\, Ctrl+1
Left Only View
Ctrl+\, Ctrl+3
Next Difference
F8
Previous Difference
Shift+F8
Right Only View
Ctrl+\, Ctrl+4
Side By Side View
Ctrl+\, Ctrl+2
Switch Between Left And Right
Ctrl+\, Ctrl+Tab
Synchronize View Toggle
Ctrl+\, Ctrl+Down Arrow

Edit

Break Line
Enter
Char Left
Left Arrow
Char Left Extend
Shift+Left Arrow
Char Left Extend Column
Shift+Alt+Left Arrow
Char Right
Right Arrow
Char Right Extend
Shift+Right Arrow
Char Right Extend Column
Shift+Alt+Right Arrow
Char Transpose
Ctrl+T
Clear All
Ctrl+Alt+C
Clear Bookmarks
Ctrl+K, Ctrl+L
Collapse All Outlining
Ctrl+M, Ctrl+A
Collapse Current Region
Ctrl+M, Ctrl+S
Collapse Tag
Ctrl+M, Ctrl+T
Collapseto Definitions
Ctrl+M, Ctrl+O
Comment Selection
Ctrl+K, Ctrl+C
Complete Word
Ctrl+Space
Alt+Right Arrow
Ctrl+K, W
Ctrl+K, Ctrl+W
Copy
Ctrl+C
Ctrl+Ins
Copy Parameter Tip
Ctrl+Shift+Alt+C
Create Copyof Work Item
Shift+Alt+C
Cut
Ctrl+X
Shift+Del
Cycle Clipboard Ring
Ctrl+Shift+V
Ctrl+Shift+Ins
Decrease Filter Level
Alt+,
Delete
Del
Ctrl+Del
Shift+Del
Delete Backwards
Bkspce
Shift+Bkspce
Delete From Model
Shift+Del
Delete Horizontal White Space
Ctrl+K, Ctrl+\
Document End
Ctrl+End
End
Document End Extend
Ctrl+Shift+End
Shift+End
Document Start
Ctrl+Home
Home
Document Start Extend
Ctrl+Shift+Home
Shift+Home
Edit Cell
F2
Expand All Outlining
Ctrl+M, Ctrl+X
Expand Collapse Base Type List
Shift+Alt+B
Expand Current Region
Ctrl+M, Ctrl+E
Find
Ctrl+F
Find All References
Shift+F12
Findin Files
Ctrl+Shift+F
Find Next
F3
Find Next Selected
Ctrl+F3
Find Previous
Shift+F3
Find Previous Selected
Ctrl+Shift+F3
Format Document
Ctrl+K, Ctrl+D
Format Selection
Ctrl+K, Ctrl+F
Go To
Ctrl+G
Goto Brace
Ctrl+]
Goto Brace Extend
Ctrl+Shift+]
Go To Declaration
Ctrl+F12
Go To Definition
F12
Go To Find Combo
Ctrl+D
Go To Next Location
F8
Go To Prev Location
Shift+F8
Hide Selection
Ctrl+M, Ctrl+H
Increase Filter Level
Alt+.
Incremental Search
Ctrl+I
Indent
Shift+Alt+Right Arrow
Insert Snippet
Ctrl+K, Ctrl+X
Insert Tab
Tab
Line Cut
Ctrl+L
Line Delete
Ctrl+Shift+L
Line Down
Down Arrow
Line Down Extend
Shift+Down Arrow
Shift+Up Arrow
Line Down Extend Column
Shift+Alt+Down Arrow
Line End
End
Line End Extend
Shift+End
Line End Extend Column
Shift+Alt+End
Line Open Above
Ctrl+Enter
Line Open Below
Ctrl+Shift+Enter
Line Start
Home
Line Start Extend
Shift+Home
Line Start Extend Column
Shift+Alt+Home
Line Transpose
Shift+Alt+T
Line Up
Up Arrow
Line Up Extend
Shift+Up Arrow
Shift+Down Arrow
Line Up Extend Column
Shift+Alt+Up Arrow
List Members
Ctrl+J
Ctrl+K, L
Ctrl+K, Ctrl+L
Make Lowercase
Ctrl+U
Make Uppercase
Ctrl+Shift+U
Move Control Down
Ctrl+Down Arrow
Down Arrow
Move Control Down Grid
Down Arrow
Move Control Left
Ctrl+Left Arrow
Left Arrow
Move Control Left Grid
Left Arrow
Move Control Right
Ctrl+Right Arrow
Right Arrow
Move Control Right Grid
Right Arrow
Move Control Up
Ctrl+Up Arrow
Up Arrow
Move Control Up Grid
Up Arrow
Move Selected Lines Down
Alt+Down Arrow
Move Selected Lines Up
Alt+Up Arrow
Navigate To
Ctrl+,
Navigate To Lollipop
Shift+Alt+L
New Accelerator
Ins
New String
Ins
Next Bookmark
Ctrl+K, Ctrl+N
Next Bookmark In Folder
Ctrl+Shift+K, Ctrl+Shift+N
Next Highlighted Reference
Ctrl+Shift+Down Arrow
Next Key Typed
Ctrl+W
Open File
Ctrl+Shift+G
Outdent
Shift+Alt+Left Arrow
Overtype Mode
Ins
Page Down
PgDn
Page Down Extend
Shift+PgDn
Page Up
PgUp
Page Up Extend
Shift+PgUp
Parameter Info
Ctrl+Shift+Space
Ctrl+K, P
Ctrl+K, Ctrl+P
Paste
Ctrl+V
Shift+Ins
Paste Parameter Tip
Ctrl+Shift+Alt+P
Peek Backward
Ctrl+Alt+-
Peek Definition
Alt+F12
Peek Forward
Ctrl+Alt+=
Previous Bookmark
Ctrl+K, Ctrl+P
Previous Bookmark In Folder
Ctrl+Shift+K, Ctrl+Shift+P
Previous Highlighted Reference
Ctrl+Shift+Up Arrow
Quick Find Symbol
Shift+Alt+F12
Quick Info
Ctrl+K, Ctrl+I
Ctrl+K, I
Redo
Ctrl+Y
Ctrl+Shift+Z
Shift+Alt+Bkspce
Refresh Remote References
Ctrl+Shift+J
Refresh Work Item
F5
Remove
Del
Removefrom Diagram
Del
Remove Row
Ctrl+Del
Replace
Ctrl+H
Replacein Files
Ctrl+Shift+H
Reverse Incremental Search
Ctrl+Shift+I
Scroll Column Left
Ctrl+Left Arrow
Scroll Column Right
Ctrl+Right Arrow
Scroll Line Down
Ctrl+Down Arrow
Scroll Line Up
Ctrl+Up Arrow
Select All
Ctrl+A
Select Current Word
Ctrl+W
Selection Cancel
Esc
Select Next Control
Tab
Select Previous Control
Shift+Tab
Select To Last Go Back
Ctrl+=
Show Code Lens Menu
Alt+`
Show Tile Grid
Enter
Size Control Down
Ctrl+Shift+Down Arrow
Shift+Down Arrow
Size Control Down Grid
Shift+Down Arrow
Size Control Left
Ctrl+Shift+Left Arrow
Shift+Left Arrow
Size Control Left Grid
Shift+Left Arrow
Size Control Right
Ctrl+Shift+Right Arrow
Shift+Right Arrow
Size Control Right Grid
Shift+Right Arrow
Size Control Up
Ctrl+Shift+Up Arrow
Shift+Up Arrow
Size Control Up Grid
Shift+Up Arrow
Smart Break Line
Shift+Enter
Stop Hiding Current
Ctrl+M, Ctrl+U
Stop Outlining
Ctrl+M, Ctrl+P
Stop Search
Alt+F3, S
Surround With
Ctrl+K, Ctrl+S
Swap Anchor
Ctrl+K, Ctrl+A
Tab Left
Shift+Tab
Toggle All Outlining
Ctrl+M, Ctrl+L
Toggle Bookmark
Ctrl+K, Ctrl+K
Toggle Completion Mode
Ctrl+Alt+Space
Toggle Outlining Expansion
Ctrl+M, Ctrl+M
Toggle Task List Shortcut
Ctrl+K, Ctrl+H
Toggle Word Wrap
Ctrl+E, Ctrl+W
Uncomment Selection
Ctrl+K, Ctrl+U
Undo
Ctrl+Z
Alt+Bkspce
View Bottom
Ctrl+PgDn
View Bottom Extend
Ctrl+Shift+PgDn
View Top
Ctrl+PgUp
View Top Extend
Ctrl+Shift+PgUp
View White Space
Ctrl+R, Ctrl+W
Word Delete To End
Ctrl+Del
Word Delete To Start
Ctrl+Bkspce
Word Next
Ctrl+Right Arrow
Word Next Extend
Ctrl+Shift+Right Arrow
Word Next Extend Column
Ctrl+Shift+Alt+Right Arrow
Word Previous
Ctrl+Left Arrow
Word Previous Extend
Ctrl+Shift+Left Arrow
Word Previous Extend Column
Ctrl+Shift+Alt+Left Arrow
Word Transpose
Ctrl+Shift+T

Editor Context Menus

Add Comment
Ctrl+Shift+K
Breakpoint Editlabels
Alt+F9, L
Breakpoint Settings
Alt+F9, C
Show Item
Ctrl+`
Edit Local File
Ctrl+Shift+P
Execute
Ctrl+Alt+F5
Execute In Interactive
Alt+Enter
Execute Line In Interactive
Alt+'
Go To View
Ctrl+M, Ctrl+G
Toggle Header Code File
Ctrl+K, Ctrl+O
View Call Hierarchy
Ctrl+K, Ctrl+T
Ctrl+K, T

File

Exit
Alt+F4
New File
Ctrl+N
New Project
Ctrl+Shift+N
New Web Site
Shift+Alt+N
Open File
Ctrl+O
Open Project
Ctrl+Shift+O
Open Web Site
Shift+Alt+O
Print
Ctrl+P
Rename
F2
Save All
Ctrl+Shift+S
Save Selected Items
Ctrl+S
Viewin Browser
Ctrl+Shift+W

Format

Align Bottoms
Ctrl+Shift+Down Arrow
Align Centers
Shift+F9
Align Lefts
Ctrl+Shift+Left Arrow
Align Middles
F9
Align Rights
Ctrl+Shift+Right Arrow
Align Tops
Ctrl+Shift+Up Arrow
Bold
Ctrl+B
Button Bottom
Ctrl+B
Button Right
Ctrl+R
Center Horizontal
Ctrl+Shift+F9
Center Vertical
Ctrl+F9
Check Mnemonics
Ctrl+M
Convertto Hyperlink
Ctrl+L
Edit Text
F2
Insert Bookmark
Ctrl+Shift+L
Italic
Ctrl+I
Reset All
Ctrl+Shift+R
Sizeto Content
Shift+F7
Space Across
Alt+Right Arrow
Alt+Left Arrow
Space Down
Alt+Up Arrow
Alt+Down Arrow
Tab Order
Ctrl+D
Test Dialog
Ctrl+T
Toggle Guides
Ctrl+G
Underline
Ctrl+U

Graph View

Bottomto Top
Alt+Up Arrow
Leftto Right
Alt+Right Arrow
Rightto Left
Alt+Left Arrow
Topto Bottom
Alt+Down Arrow

Help

Addand Remove Help Content
Ctrl+Alt+F1
F1 Help
F1
View Help
Ctrl+F1
Window Help
Shift+F1

Image

Airbrush Tool
Ctrl+A
Brush Tool
Ctrl+B
Copyand Outline Selection
Ctrl+Shift+U
Draw Opaque
Ctrl+J
Ellipse Tool
Alt+P
Erase Tool
Ctrl+Shift+I
Filled Ellipse Tool
Ctrl+Shift+Alt+P
Filled Rectangle Tool
Ctrl+Shift+Alt+R
Filled Rounded Rectangle Tool
Ctrl+Shift+Alt+W
Fill Tool
Ctrl+F
Flip Horizontal
Ctrl+H
Flip Vertical
Shift+Alt+H
Larger Brush
Ctrl+=
Line Tool
Ctrl+L
Magnification Tool
Ctrl+M
Magnify
Ctrl+Shift+M
New Image Type
Ins
Next Color
Ctrl+]
Ctrl+Right Arrow
Next Right Color
Ctrl+Shift+]
Ctrl+Shift+Right Arrow
Outlined Ellipse Tool
Shift+Alt+P
Outlined Rectangle Tool
Shift+Alt+R
Outlined Rounded Rectangle Tool
Shift+Alt+W
Pencil Tool
Ctrl+I
Previous Color
Ctrl+[
Ctrl+Left Arrow
Previous Right Color
Ctrl+Shift+[
Ctrl+Shift+Left Arrow
Rectangle Selection Tool
Shift+Alt+S
Rectangle Tool
Alt+R
Rotate90 Degrees
Ctrl+Shift+H
Rounded Rectangle Tool
Alt+W
Show Grid
Ctrl+Alt+S
Show Tile Grid
Ctrl+Shift+Alt+S
Small Brush
Ctrl+.
Smaller Brush
Ctrl+-
Text Tool
Ctrl+T
Use Selectionas Brush
Ctrl+U
Zoom In
Ctrl+Shift+.
Ctrl+Up Arrow
Zoom Out
Ctrl+Shift+,
Ctrl+Down Arrow

Load Test

Jump To Counter Pane
Ctrl+R, Q

Microsoft Azure

Retry Mobile Service Script Operation
Ctrl+Num *, Ctrl+R
Show Mobile Service Script Error Details
Ctrl+Num *, Ctrl+D

Other Context Menus

Refresh Linked Browsers
Ctrl+Alt+Enter
Insert Column
Ins
Column
Ctrl+L
Cancel Interactive Evaluation
Ctrl+Break
Reset Interactive Session
Ctrl+Alt+R
Removefrom Workspace
Del
Go To Controller
Ctrl+M, Ctrl+G
Reload Schemas
Ctrl+Shift+J
Add New Diagram
Ins
Down
Alt+Down Arrow
Down5
Alt+PgDn
To Bottom
Alt+End
To Top
Alt+Home
Up
Alt+Up Arrow
Up5
Alt+PgUp
Rename
Ctrl+R, R
Removefrom Diagram
Shift+Del
Hide Methods Pane
Ctrl+1
Copy Referenceto Clipboard
Ctrl+C
Insert Delay Before
Ctrl+Alt+D
Locate All
Shift+Alt+L
Locatethe UIControl
Ctrl+Shift+L
Movecode
Ctrl+Alt+C
Splitintoanewmethod
Ctrl+Shift+T

Project

Add Content Page
Ctrl+M, Ctrl+C
Add Existing Item
Shift+Alt+A
Add New Item
Ctrl+Shift+A
Class Wizard
Ctrl+Shift+X
Override
Ctrl+Alt+Ins
Previewchanges
Alt+;, Alt+C
Publishselectedfiles
Alt+;, Alt+P
Replaceselectedfilesfromserver
Alt+;, Alt+R

Projectand Solution Context Menus

Move Down
Alt+Down Arrow
Move Up
Alt+Up Arrow

Query Designer

Cancel Retrieving Data
Ctrl+T
Criteria
Ctrl+2
Diagram
Ctrl+1
Execute SQL
Ctrl+R
Goto Row
Ctrl+G
Join Mode
Ctrl+Shift+J
Results
Ctrl+4
SQL
Ctrl+3

Refactor

Encapsulate Field
Ctrl+R, Ctrl+E
Extract Interface
Ctrl+R, Ctrl+I
Extract Method
Ctrl+R, Ctrl+M
Remove Parameters
Ctrl+R, Ctrl+V
Rename
Ctrl+R, Ctrl+R
Reorder Parameters
Ctrl+R, Ctrl+O

Resources

Audio
Ctrl+4
Files
Ctrl+5
Icons
Ctrl+3
Images
Ctrl+2
Other
Ctrl+6
Strings
Ctrl+1

Solution Explorer

Open Files Filter
Ctrl+[, O
Ctrl+[, Ctrl+O
Pending Changes Filter
Ctrl+[, P
Ctrl+[, Ctrl+P
Sync With Active Document
Ctrl+[, S
Ctrl+[, Ctrl+S

SQL

Execute With Debugger
Alt+F5
Expand Wildcards
Ctrl+R, E
Ctrl+R, Ctrl+E
Fullyqualify Names
Ctrl+R, Q
Ctrl+R, Ctrl+Q
Moveto Schema
Ctrl+R, M
Ctrl+R, Ctrl+M
Query Results New Row
Alt+End
Query Results Refresh
Shift+Alt+R
Query Results Stop
Alt+Break
Rename
Ctrl+R, R
F2
Ctrl+R, Ctrl+R
SSDTSchema Compare Compare
Shift+Alt+C
SSDTSchema Compare Generate Script
Shift+Alt+G
SSDTSchema Compare Next Change
Shift+Alt+.
SSDTSchema Compare Previous Change
Shift+Alt+,
SSDTSchema Compare Stop
Alt+Break
SSDTSchema Compare Write Updates
Shift+Alt+U
TSql Editor Cancel Query
Alt+Break
TSql Editor Execute Query
Ctrl+Shift+E
TSql Editor Results As File
Ctrl+D, F
TSql Editor Results As Grid
Ctrl+D, G
TSql Editor Results As Text
Ctrl+D, T
TSql Editor Show Estimated Plan
Ctrl+D, E
TSql Editor Toggle Execution Plan
Ctrl+D, A
TSql Editor Toggle Results Pane
Ctrl+D, R

Table

Columntothe Left
Ctrl+Alt+Left Arrow
Columntothe Right
Ctrl+Alt+Right Arrow
Row Above
Ctrl+Alt+Up Arrow
Row Below
Ctrl+Alt+Down Arrow

Team

Go To Git Active Repositories
Ctrl+0, Ctrl+E
Ctrl+0, E
Go To Git Changes
Ctrl+0, Ctrl+G
Ctrl+0, G
Go To Git Synchronization
Ctrl+0, Ctrl+Y
Ctrl+0, Y
Goto Next Work Item
Shift+Alt+N
Goto Previous Work Item
Shift+Alt+P
New Linked Work Item
Shift+Alt+L
Refresh
F5
Team Explorer Search
Ctrl+'

Team Foundation Context Menus

Tfs Annotate Move Next Region
Alt+PgDn
Tfs Annotate Move Previous Region
Alt+PgUp
Go To Builds
Ctrl+0, Ctrl+B
Ctrl+0, B
Go To Connect
Ctrl+0, Ctrl+C
Ctrl+0, C
Go To Documents
Ctrl+0, Ctrl+D
Ctrl+0, D
Go To Home
Ctrl+0, Ctrl+H
Ctrl+0, H
Go To My Work
Ctrl+0, Ctrl+M
Ctrl+0, M
Go To Pending Changes
Ctrl+0, Ctrl+P
Ctrl+0, P
Go To Reports
Ctrl+0, Ctrl+R
Ctrl+0, R
Go To Settings
Ctrl+0, Ctrl+S
Ctrl+0, S
Go To Team Explorer Navigation
Alt+Home
Go To Team Explorer Next Section Content
Alt+Down Arrow
Go To Team Explorer Page Content
Alt+0
Go To Team Explorer Previous Section Content
Alt+Up Arrow
Go To Team Explorer Section1 Content
Alt+1
Go To Team Explorer Section2 Content
Alt+2
Go To Team Explorer Section3 Content
Alt+3
Go To Team Explorer Section4 Content
Alt+4
Go To Team Explorer Section5 Content
Alt+5
Go To Team Explorer Section6 Content
Alt+6
Go To Team Explorer Section7 Content
Alt+7
Go To Team Explorer Section8 Content
Alt+8
Go To Team Explorer Section9 Content
Alt+9
Go To Web Access
Ctrl+0, Ctrl+A
Ctrl+0, A
Go To Work Items
Ctrl+0, Ctrl+W
Ctrl+0, W
Team Explorer Navigate Backward
Alt+Left Arrow
Team Explorer Navigate Forward
Alt+Right Arrow
Set Focuson Left Window
Alt+1
Set Focuson Result Window
Alt+2
Set Focuson Right Window
Alt+3
Tfs Context My Work Page Create Copy WI
Shift+Alt+C
Tfs Context My Work Page New Linked WI
Shift+Alt+L

Test

Use Coded UITest Builder
Ctrl+\, Ctrl+C
Use Existing Action Recording
Ctrl+\, Ctrl+A

Test Explorer

Debug All Tests
Ctrl+R, Ctrl+A
Debug All Tests In Context
Ctrl+R, Ctrl+T
Open Test
F12
Repeat Last Run
Ctrl+R, L
Run All Tests
Ctrl+R, A
Run All Tests In Context
Ctrl+R, T

Tools

Code Snippets Manager
Ctrl+K, Ctrl+B
Force GC
Ctrl+Shift+Alt+F12, Ctrl+Shift+Alt+F12
Go To Command Line
Ctrl+/

View

All Windows
Shift+Alt+M
NETNonvisual Controls
Ctrl+Shift+N
Backward
Alt+Left Arrow
Bookmark Window
Ctrl+K, Ctrl+W
Browse Next
Ctrl+Shift+1
Browse Previous
Ctrl+Shift+2
Call Hierarchy
Ctrl+Alt+K
Class View
Ctrl+Shift+C
Class View Go To Search Combo
Ctrl+K, Ctrl+V
Code Definition Window
Ctrl+\, D
Ctrl+\, Ctrl+D
Command Window
Ctrl+Alt+A
Data Sources
Shift+Alt+D
Document Outline
Ctrl+Alt+T
Edit Label
F2
Edit Master
Ctrl+M, Ctrl+M
Entity Data Model Browser
Ctrl+1
Entity Data Model Mapping Details
Ctrl+2
Error List
Ctrl+\, E
Ctrl+\, Ctrl+E
F# Interactive
Ctrl+Alt+F
Find Symbol Results
Ctrl+Alt+F12
Forward
Alt+Right Arrow
Forward Browse Context
Ctrl+Shift+7
Full Screen
Shift+Alt+Enter
Navigate Backward
Ctrl+-
Navigate Forward
Ctrl+Shift+-
Next Error
Ctrl+Shift+F12
Next View
Ctrl+PgDn
Notifications
Ctrl+W, N
Ctrl+W, Ctrl+N
Object Browser
Ctrl+Alt+J
Object Browser Go To Search Combo
Ctrl+K, Ctrl+R
Output
Ctrl+Alt+O
Pop Browse Context
Ctrl+Shift+8
Properties Window
F4
Property Pages
Shift+F4
Quick Actions
Ctrl+.
Refresh
F5
Resource View
Ctrl+Shift+E
Server Explorer
Ctrl+Alt+S
Show Smart Tag
Shift+Alt+F10
Ctrl+.
Solution Explorer
Ctrl+Alt+L
SQLServer Object Explorer
Ctrl+\, Ctrl+S
Synchronize Views
Ctrl+Shift+Y
Task List
Ctrl+\, T
Ctrl+\, Ctrl+T
Tfs Team Explorer
Ctrl+\, Ctrl+M
Toolbox
Ctrl+Alt+X
UMLModel Explorer
Ctrl+\, Ctrl+U
View Code
Enter
F7
View Designer
Shift+F7
View Markup
Shift+F7
Web Browser
Ctrl+Alt+R
Zoom In
Ctrl+Shift+.
Zoom Out
Ctrl+Shift+,

Window

Activate Document Window
Esc
Activate Quick Launch
Ctrl+Q
Activate Quick Launch Previous Category
Ctrl+Shift+Q
Activate Solution Explorer Search
Ctrl+;
Activate Window Search
Alt+`
Add Tabto Selection
Ctrl+Shift+Alt+Space
Apply Window Layout1
Ctrl+Alt+1
Apply Window Layout10
Ctrl+Alt+0
Apply Window Layout2
Ctrl+Alt+2
Apply Window Layout3
Ctrl+Alt+3
Apply Window Layout4
Ctrl+Alt+4
Apply Window Layout5
Ctrl+Alt+5
Apply Window Layout6
Ctrl+Alt+6
Apply Window Layout7
Ctrl+Alt+7
Apply Window Layout8
Ctrl+Alt+8
Apply Window Layout9
Ctrl+Alt+9
Close Document Window
Ctrl+F4
Close Tool Window
Shift+Esc
Keep Tab Open
Ctrl+Alt+Home
Moveto Navigation Bar
Ctrl+F2
Next Document Window
Ctrl+F6
Next Document Window Nav
Ctrl+Tab
Next Pane
Alt+F6
Next Split Pane
F6
Next Tab
Ctrl+Alt+PgDn
Ctrl+PgDn
Next Taband Addto Selection
Ctrl+Shift+Alt+PgDn
Next Tool Window Nav
Alt+F7
Previous Document Window
Ctrl+Shift+F6
Previous Document Window Nav
Ctrl+Shift+Tab
Previous Pane
Shift+Alt+F6
Previous Split Pane
Shift+F6
Previous Tab
Ctrl+Alt+PgUp
Ctrl+PgUp
Previous Taband Addto Selection
Ctrl+Shift+Alt+PgUp
Previous Tool Window Nav
Shift+Alt+F7
Show Dock Menu
Alt+-
Show Ez MDIFile List
Ctrl+Alt+Down Arrow
Toggle
Shift+Alt+V

Workflow Designer

Collapse
Ctrl+E, Ctrl+C
Ctrl+E, C
Collapse All
Ctrl+E, Ctrl+Y
Ctrl+E, Y
Connect Nodes
Ctrl+E, Ctrl+F
Ctrl+E, F
Create Variable
Ctrl+E, Ctrl+N
Ctrl+E, N
Expand All
Ctrl+E, Ctrl+X
Ctrl+E, X
Expand In Place
Ctrl+E, Ctrl+E
Ctrl+E, E
Go To Parent
Ctrl+E, Ctrl+P
Ctrl+E, P
Move Focus
Ctrl+E, Ctrl+M
Ctrl+E, M
Navigate Through Designer
Ctrl+Alt+F6
Restore
Ctrl+E, Ctrl+R
Ctrl+E, R
Show Hide Argument Designer
Ctrl+E, Ctrl+A
Ctrl+E, A
Show Hide Imports Designer
Ctrl+E, Ctrl+I
Ctrl+E, I
Show Hide Overview Map
Ctrl+E, Ctrl+O
Ctrl+E, O
Show Hide Variable Designer
Ctrl+E, Ctrl+V
Ctrl+E, V
Toggle Selection
Ctrl+E, Ctrl+S
Ctrl+E, S
Zoom In
Ctrl+Num +
Zoom Out
Ctrl+Num -

XML

Start XSLTDebugging
Alt+F5
Start XSLTWithout Debugging
Ctrl+Alt+F5

Xsd Designer

Show Content Model View
Ctrl+2
Show Graph View
Ctrl+3
Show Start View
Ctrl+1

Visual Studio 2013 keyboard shortcuts

Analyze

Navigate Backward
Shift+Alt+3
Navigate Forward
Shift+Alt+4

Architecture

New Diagram
Ctrl+\, Ctrl+N

Architecture Context Menus

Add Node
Ins
Both Dependencies
B
Incoming Dependencies
I
Outgoing Dependencies
O
New Comment
Ctrl+Shift+K
Ctrl+E, C
Remove
Del
Rename
F2

Architecture Designer

Navigate To Code
F12

Build

Build Selection
Shift+F6
Build Solution
Ctrl+Shift+B
F6
Cancel
Ctrl+Break
Compile
Ctrl+F7
Run Code Analysison Solution
Alt+F11

Class Diagram

Collapse
Num -
Expand
Num +

Class View Context Menus

Properties
Alt+Enter
Viewin Page Inspector
Ctrl+K, Ctrl+G

Misc

Commit All Edits
Shift+Alt+U
Move Left Edgetotheleft
Ctrl+Shift+,
Move Left Edgetotheright
Ctrl+Shift+.
Move Right Edgetotheleft
Ctrl+Shift+Alt+,
Move Right Edgetotheright
Ctrl+Shift+Alt+.
TSql Editor Clone Query
Ctrl+Alt+N
TSql Editor Database Combo
Shift+Alt+PgDn
View File In Script Panel
Shift+Alt+PgDn

Debug

Apply Code Changes
Alt+F10
Autos
Ctrl+Alt+V, A
Ctrl+D, A
Ctrl+D, Ctrl+A
Break All
Ctrl+Alt+Break
Breakat Function
Ctrl+B
Ctrl+D, N
Ctrl+D, Ctrl+N
Breakpoints
Ctrl+Alt+B
Ctrl+D, B
Ctrl+D, Ctrl+B
Call Stack
Ctrl+Alt+C
Ctrl+D, C
Ctrl+D, Ctrl+C
Delete All Breakpoints
Ctrl+Shift+F9
Launch
Alt+F2
Disassembly
Ctrl+Alt+D
DOMExplorer
Ctrl+Alt+V, D
Enable Breakpoint
Ctrl+F9
Exceptions
Ctrl+Alt+E
Ctrl+D, E
Ctrl+D, Ctrl+E
Go To Previous Callor Intelli Trace Event
Ctrl+Shift+F11
Capture Frame
Ctrl+F12
Start Diagnostics
Alt+F5
Graphics Move Pixel Selection Down
Shift+Alt+Down Arrow
Graphics Move Pixel Selection Left
Shift+Alt+Left Arrow
Graphics Move Pixel Selection Right
Shift+Alt+Right Arrow
Graphics Move Pixel Selection Up
Shift+Alt+Up Arrow
Graphics Reset Zoom
Shift+Alt+0
Graphics Zoom In
Shift+Alt+=
Graphics Zoom Out
Shift+Alt+-
Immediate
Ctrl+Alt+I
Ctrl+D, I
Ctrl+D, Ctrl+I
Intelli Trace Calls
Ctrl+Alt+Y, T
Intelli Trace Events
Ctrl+Alt+Y, F
Java Script Console
Ctrl+Alt+V, C
Locals
Ctrl+Alt+V, L
Ctrl+D, L
Ctrl+D, Ctrl+L
Process Combo
Ctrl+5
Stack Frame Combo
Ctrl+7
Thread Combo
Ctrl+6
Toggle Current Thread Flagged State
Ctrl+8
Toggle Flagged Threads
Ctrl+9
Memory1
Ctrl+Alt+M, 1
Ctrl+D, Y
Ctrl+D, Ctrl+Y
Memory2
Ctrl+Alt+M, 2
Memory3
Ctrl+Alt+M, 3
Memory4
Ctrl+Alt+M, 4
Modules
Ctrl+Alt+U
Ctrl+D, M
Ctrl+D, Ctrl+M
Parallel Stacks
Ctrl+Shift+D, S
Parallel Watch1
Ctrl+Shift+D, 1
Parallel Watch2
Ctrl+Shift+D, 2
Parallel Watch3
Ctrl+Shift+D, 3
Parallel Watch4
Ctrl+Shift+D, 4
Processes
Ctrl+Alt+Z
Ctrl+D, P
Ctrl+D, Ctrl+P
Quick Watch
Shift+F9
Ctrl+Alt+Q
Ctrl+D, Q
Ctrl+D, Ctrl+Q
Refresh Windowsapp
Ctrl+Shift+R
Registers
Ctrl+Alt+G
Ctrl+D, R
Ctrl+D, Ctrl+R
Restart
Ctrl+Shift+F5
Run To Cursor
Ctrl+F10
Set Next Statement
Ctrl+Shift+F10
Show Call Stackon Code Map
Ctrl+Shift+`
Show Next Statement
Alt+Num *
Start
F5
Start Windows Phone Application Analysis
Alt+F1
Start Without Debugging
Ctrl+F5
Step Into
F11
Step Into Current Process
Ctrl+Alt+F11
Step Into Specific
Shift+Alt+F11
Step Out
Shift+F11
Step Out Current Process
Ctrl+Shift+Alt+F11
Step Over
F10
Step Over Current Process
Ctrl+Alt+F10
Stop Debugging
Shift+F5
Stop Performance Analysis
Shift+Alt+F2
Tasks
Ctrl+Shift+D, K
Ctrl+D, K
Ctrl+D, Ctrl+K
Threads
Ctrl+Alt+H
Ctrl+D, T
Ctrl+D, Ctrl+T
Toggle Breakpoint
F9
Toggle Disassembly
Ctrl+F11
Ctrl+D, D
Ctrl+D, Ctrl+D
Watch1
Ctrl+Alt+W, 1
Ctrl+D, W
Ctrl+D, Ctrl+W
Watch2
Ctrl+Alt+W, 2
Watch3
Ctrl+Alt+W, 3
Watch4
Ctrl+Alt+W, 4

Debugger Context Menus

Delete
Alt+F9, D
Go To Disassembly
Alt+F9, A
Go To Source Code
Alt+F9, S

Design

Fit All
Ctrl+0
Show Handles
F9
Zoom In
Ctrl+Alt+=
Zoom Out
Ctrl+Alt+-

Diagnostics Hub

Stop Collection
Ctrl+Alt+F2

Diff

Ignore Trim Whitespace
Ctrl+\, Ctrl+Space
Inline View
Ctrl+\, Ctrl+1
Left Only View
Ctrl+\, Ctrl+3
Next Difference
F8
Previous Difference
Shift+F8
Right Only View
Ctrl+\, Ctrl+4
Side By Side View
Ctrl+\, Ctrl+2
Switch Between Left And Right
Ctrl+\, Ctrl+Tab
Synchronize View Toggle
Ctrl+\, Ctrl+Down Arrow

DOMExplorer

Refresh
F5
Select Element
Ctrl+B
Show Layout
Ctrl+Shift+I

Edit

Break Line
Enter
Shift+Enter
Char Left
Left Arrow
Char Left Extend
Shift+Left Arrow
Char Left Extend Column
Shift+Alt+Left Arrow
Char Right
Right Arrow
Char Right Extend
Shift+Right Arrow
Char Right Extend Column
Shift+Alt+Right Arrow
Char Transpose
Ctrl+T
Clear Bookmarks
Ctrl+B, C
Ctrl+B, Ctrl+C
Collapse All Outlining
Ctrl+M, Ctrl+A
Collapse Current Region
Ctrl+M, Ctrl+S
Collapse Tag
Ctrl+M, Ctrl+T
Collapseto Definitions
Ctrl+M, Ctrl+O
Ctrl+M, O
Comment Selection
Ctrl+K, Ctrl+C
Ctrl+E, C
Ctrl+E, Ctrl+C
Complete Word
Ctrl+Space
Alt+Right Arrow
Ctrl+K, W
Ctrl+K, Ctrl+W
Copy
Ctrl+C
Ctrl+Ins
Copy Parameter Tip
Ctrl+Shift+Alt+C
Create Copyof Work Item
Shift+Alt+C
Cut
Ctrl+X
Shift+Del
Cycle Clipboard Ring
Ctrl+Shift+V
Ctrl+Shift+Ins
Decrease Filter Level
Alt+,
Delete
Del
Ctrl+Del
Shift+Del
Delete Backwards
Bkspce
Shift+Bkspce
Delete From Model
Shift+Del
Delete Horizontal White Space
Ctrl+K, Ctrl+\
Ctrl+E, \
Ctrl+E, Ctrl+\
Document End
Ctrl+End
End
Document End Extend
Ctrl+Shift+End
Shift+End
Document Start
Ctrl+Home
Home
Document Start Extend
Ctrl+Shift+Home
Shift+Home
Edit Cell
F2
Enable Bookmark
Ctrl+B, E
Ctrl+B, Ctrl+E
Expand All Outlining
Ctrl+M, Ctrl+X
Expand Collapse Base Type List
Shift+Alt+B
Expand Current Region
Ctrl+M, Ctrl+E
Find
Ctrl+F
Find All References
Ctrl+K, R
Ctrl+K, Ctrl+R
Shift+F12
Findin Files
Ctrl+Shift+F
Find Next
F3
Find Next Selected
Ctrl+F3
Find Previous
Shift+F3
Find Previous Selected
Ctrl+Shift+F3
Format Document
Ctrl+K, Ctrl+D
Ctrl+E, D
Ctrl+E, Ctrl+D
Format Selection
Ctrl+K, Ctrl+F
Ctrl+E, F
Ctrl+E, Ctrl+F
Generate Method
Ctrl+K, M
Ctrl+K, Ctrl+M
Go To
Ctrl+G
Goto Brace
Ctrl+]
Goto Brace Extend
Ctrl+Shift+]
Go To Declaration
Ctrl+F12
Go To Definition
F12
Go To Find Combo
Ctrl+/
Go To Next Location
F8
Go To Prev Location
Shift+F8
Hide Selection
Ctrl+M, Ctrl+H
Increase Filter Level
Alt+.
Incremental Search
Ctrl+I
Indent
Shift+Alt+Right Arrow
Insert Snippet
Ctrl+K, Ctrl+X
Ctrl+K, X
Insert Tab
Tab
Line Cut
Ctrl+L
Line Delete
Ctrl+Shift+L
Line Down
Down Arrow
Line Down Extend
Shift+Down Arrow
Shift+Up Arrow
Line Down Extend Column
Shift+Alt+Down Arrow
Line End
End
Line End Extend
Shift+End
Line End Extend Column
Shift+Alt+End
Line Open Above
Ctrl+Enter
Line Open Below
Ctrl+Shift+Enter
Line Start
Home
Line Start Extend
Shift+Home
Line Start Extend Column
Shift+Alt+Home
Line Transpose
Shift+Alt+T
Line Up
Up Arrow
Line Up Extend
Shift+Up Arrow
Shift+Down Arrow
Line Up Extend Column
Shift+Alt+Up Arrow
List Members
Ctrl+J
Ctrl+K, L
Ctrl+K, Ctrl+L
Make Lowercase
Ctrl+U
Make Uppercase
Ctrl+Shift+U
Move Control Down
Ctrl+Down Arrow
Down Arrow
Move Control Down Grid
Down Arrow
Move Control Left
Ctrl+Left Arrow
Left Arrow
Move Control Left Grid
Left Arrow
Move Control Right
Ctrl+Right Arrow
Right Arrow
Move Control Right Grid
Right Arrow
Move Control Up
Ctrl+Up Arrow
Up Arrow
Move Control Up Grid
Up Arrow
Move Selected Lines Down
Alt+Down Arrow
Move Selected Lines Up
Alt+Up Arrow
Navigate To
Ctrl+,
Navigate To Lollipop
Shift+Alt+L
New Accelerator
Ins
New String
Ins
Next Bookmark
Ctrl+K, Ctrl+N
Ctrl+B, N
Ctrl+B, Ctrl+N
Next Highlighted Reference
Ctrl+Shift+Down Arrow
Next Key Typed
Ctrl+W
Open File
Ctrl+Shift+G
Outdent
Shift+Alt+Left Arrow
Overtype Mode
Ins
Page Down
PgDn
Page Down Extend
Shift+PgDn
Page Up
PgUp
Page Up Extend
Shift+PgUp
Parameter Info
Ctrl+Shift+Space
Ctrl+K, P
Ctrl+K, Ctrl+P
Paste
Ctrl+V
Shift+Ins
Paste Parameter Tip
Ctrl+Shift+Alt+P
Peek Backward
Ctrl+Alt+-
Peek Definition
Alt+F12
Peek Forward
Ctrl+Alt+=
Previous Bookmark
Ctrl+K, Ctrl+P
Ctrl+B, P
Ctrl+B, Ctrl+P
Previous Highlighted Reference
Ctrl+Shift+Up Arrow
Quick Find Symbol
Shift+Alt+F12
Quick Info
Ctrl+K, Ctrl+I
Ctrl+K, I
Redo
Ctrl+Y
Ctrl+Shift+Z
Shift+Alt+Bkspce
Refresh Remote References
Ctrl+Shift+J
Refresh Work Item
F5
Remove
Del
Removefrom Diagram
Del
Remove Row
Ctrl+Del
Replace
Ctrl+H
Replacein Files
Ctrl+Shift+H
Reverse Incremental Search
Ctrl+Shift+I
Scroll Column Left
Ctrl+Left Arrow
Scroll Column Right
Ctrl+Right Arrow
Scroll Line Down
Ctrl+Down Arrow
Scroll Line Up
Ctrl+Up Arrow
Select All
Ctrl+A
Select Current Word
Ctrl+Shift+W
Selection Cancel
Esc
Select Next Control
Tab
Select Previous Control
Shift+Tab
Select To Last Go Back
Ctrl+=
Show Code Lens Menu
Alt+`
Show Tile Grid
Enter
Size Control Down
Ctrl+Shift+Down Arrow
Shift+Down Arrow
Size Control Down Grid
Shift+Down Arrow
Size Control Left
Ctrl+Shift+Left Arrow
Shift+Left Arrow
Size Control Left Grid
Shift+Left Arrow
Size Control Right
Ctrl+Shift+Right Arrow
Shift+Right Arrow
Size Control Right Grid
Shift+Right Arrow
Size Control Up
Ctrl+Shift+Up Arrow
Shift+Up Arrow
Size Control Up Grid
Shift+Up Arrow
Stop Hiding Current
Ctrl+M, Ctrl+U
Stop Outlining
Ctrl+M, Ctrl+P
Ctrl+M, P
Stop Search
Alt+F3, S
Surround With
Ctrl+K, Ctrl+S
Ctrl+K, S
Swap Anchor
Ctrl+K, Ctrl+A
Ctrl+E, A
Ctrl+E, Ctrl+A
Tab Left
Shift+Tab
Toggle All Outlining
Ctrl+M, Ctrl+L
Ctrl+M, L
Toggle Bookmark
Ctrl+K, Ctrl+K
Ctrl+B, T
Ctrl+B, Ctrl+T
Toggle Completion Mode
Ctrl+Alt+Space
Toggle Outlining Expansion
Ctrl+M, Ctrl+M
Ctrl+M, M
Toggle Task List Shortcut
Ctrl+K, Ctrl+H
Ctrl+E, T
Ctrl+E, Ctrl+T
Toggle Word Wrap
Ctrl+E, Ctrl+W
Ctrl+E, W
Uncomment Selection
Ctrl+K, Ctrl+U
Ctrl+E, U
Ctrl+E, Ctrl+U
Undo
Ctrl+Z
Alt+Bkspce
View Bottom
Ctrl+PgDn
View Bottom Extend
Ctrl+Shift+PgDn
View Top
Ctrl+PgUp
View Top Extend
Ctrl+Shift+PgUp
View White Space
Ctrl+R, Ctrl+W
Ctrl+E, S
Ctrl+E, Ctrl+S
Word Delete To End
Ctrl+Del
Word Delete To Start
Ctrl+Bkspce
Word Next
Ctrl+Right Arrow
Word Next Extend
Ctrl+Shift+Right Arrow
Word Next Extend Column
Ctrl+Shift+Alt+Right Arrow
Word Previous
Ctrl+Left Arrow
Word Previous Extend
Ctrl+Shift+Left Arrow
Word Previous Extend Column
Ctrl+Shift+Alt+Left Arrow
Word Transpose
Ctrl+Shift+T

Editor Context Menus

Add Comment
Ctrl+Shift+K
Breakpoint Editlabels
Alt+F9, L
Show Item
Ctrl+`
Edit Local File
Ctrl+Shift+P
Execute
Ctrl+Alt+F5
Execute In Interactive
Alt+Enter
Execute Line In Interactive
Alt+'
Go To View
Ctrl+M, Ctrl+G
Toggle Header Code File
Ctrl+K, Ctrl+O
View Call Hierarchy
Ctrl+K, Ctrl+T
Ctrl+K, T

File

Exit
Alt+F4
New File
Ctrl+N
New Project
Ctrl+Shift+N
New Web Site
Shift+Alt+N
Open File
Ctrl+O
Open Project
Ctrl+Shift+O
Open Web Site
Shift+Alt+O
Print
Ctrl+P
Rename
F2
Save All
Ctrl+Shift+S
Save Selected Items
Ctrl+S

Format

Align Bottoms
Ctrl+Shift+Down Arrow
Align Centers
Shift+F9
Align Lefts
Ctrl+Shift+Left Arrow
Align Middles
F9
Align Rights
Ctrl+Shift+Right Arrow
Align Tops
Ctrl+Shift+Up Arrow
Bold
Ctrl+B
Button Bottom
Ctrl+B
Button Right
Ctrl+R
Center Horizontal
Ctrl+Shift+F9
Center Vertical
Ctrl+F9
Check Mnemonics
Ctrl+M
Convertto Hyperlink
Ctrl+L
Edit Text
F2
Insert Bookmark
Ctrl+Shift+L
Italic
Ctrl+I
Reset All
Ctrl+Shift+R
Sizeto Content
Shift+F7
Space Across
Alt+Right Arrow
Alt+Left Arrow
Space Down
Alt+Up Arrow
Alt+Down Arrow
Tab Order
Ctrl+D
Test Dialog
Ctrl+T
Toggle Guides
Ctrl+G
Underline
Ctrl+U

Graph View

Bottomto Top
Alt+Up Arrow
Leftto Right
Alt+Right Arrow
Rightto Left
Alt+Left Arrow
Topto Bottom
Alt+Down Arrow

Help

Addand Remove Help Content
Ctrl+Alt+F1
Ctrl+F1, M
Ctrl+F1, Ctrl+M
F1 Help
F1
View Help
Ctrl+F1, V
Ctrl+F1, Ctrl+V
Window Help
Shift+F1

Image

Airbrush Tool
Ctrl+A
Brush Tool
Ctrl+B
Copyand Outline Selection
Ctrl+Shift+U
Draw Opaque
Ctrl+J
Ellipse Tool
Alt+P
Erase Tool
Ctrl+Shift+I
Filled Ellipse Tool
Ctrl+Shift+Alt+P
Filled Rectangle Tool
Ctrl+Shift+Alt+R
Filled Rounded Rectangle Tool
Ctrl+Shift+Alt+W
Fill Tool
Ctrl+F
Flip Horizontal
Ctrl+H
Flip Vertical
Shift+Alt+H
Larger Brush
Ctrl+=
Line Tool
Ctrl+L
Magnification Tool
Ctrl+M
Magnify
Ctrl+Shift+M
New Image Type
Ins
Next Color
Ctrl+]
Ctrl+Right Arrow
Next Right Color
Ctrl+Shift+]
Ctrl+Shift+Right Arrow
Outlined Ellipse Tool
Shift+Alt+P
Outlined Rectangle Tool
Shift+Alt+R
Outlined Rounded Rectangle Tool
Shift+Alt+W
Pencil Tool
Ctrl+I
Previous Color
Ctrl+[
Ctrl+Left Arrow
Previous Right Color
Ctrl+Shift+[
Ctrl+Shift+Left Arrow
Rectangle Selection Tool
Shift+Alt+S
Rectangle Tool
Alt+R
Rotate90 Degrees
Ctrl+Shift+H
Rounded Rectangle Tool
Alt+W
Show Grid
Ctrl+Alt+S
Show Tile Grid
Ctrl+Shift+Alt+S
Small Brush
Ctrl+.
Smaller Brush
Ctrl+-
Text Tool
Ctrl+T
Use Selectionas Brush
Ctrl+U
Zoom In
Ctrl+Shift+.
Ctrl+Up Arrow
Zoom Out
Ctrl+Shift+,
Ctrl+Down Arrow

Load Test

Jump To Counter Pane
Ctrl+R, Q

Other Context Menus

Insert Column
Ins
Column
Ctrl+L
Cancel Interactive Evaluation
Ctrl+Break
Removefrom Workspace
Del
Go To Controller
Ctrl+M, Ctrl+G
Viewin Page Inspector
Ctrl+K, Ctrl+G
Add New Diagram
Ins
Down
Alt+Down Arrow
Down5
Alt+PgDn
To Bottom
Alt+End
To Top
Alt+Home
Up
Alt+Up Arrow
Up5
Alt+PgUp
Rename
Ctrl+R, R
Removefrom Diagram
Shift+Del
Hide Methods Pane
Ctrl+1
Copy Referenceto Clipboard
Ctrl+C
Insert Delay Before
Ctrl+Alt+D
Locate All
Shift+Alt+L
Locatethe UIControl
Ctrl+Shift+L
Movecode
Ctrl+Alt+C
Splitintoanewmethod
Ctrl+Shift+T

Page Inspector

Minimize
F12

Project

Add Class
Shift+Alt+C
Add Content Page
Ctrl+M, Ctrl+C
Add Existing Item
Shift+Alt+A
Add New Item
Ctrl+Shift+A
Class Wizard
Ctrl+Shift+X
Override
Ctrl+Alt+Ins
Previewchanges
Alt+;, Alt+C
Publishselectedfiles
Alt+;, Alt+P
Replaceselectedfilesfromserver
Alt+;, Alt+R

Projectand Solution Context Menus

Move Down
Alt+Down Arrow
Move Up
Alt+Up Arrow

Query Designer

Cancel Retrieving Data
Ctrl+T
Criteria
Ctrl+2
Diagram
Ctrl+1
Execute SQL
Ctrl+R
Goto Row
Ctrl+G
Join Mode
Ctrl+Shift+J
Results
Ctrl+4
SQL
Ctrl+3

Refactor

Encapsulate Field
Ctrl+R, Ctrl+E
Ctrl+R, E
Extract Interface
Ctrl+R, Ctrl+I
Ctrl+R, I
Extract Method
Ctrl+R, Ctrl+M
Ctrl+R, M
Remove Parameters
Ctrl+R, Ctrl+V
Ctrl+R, V
Rename
Ctrl+R, Ctrl+R
Ctrl+R, R
F2
Reorder Parameters
Ctrl+R, Ctrl+O
Ctrl+R, O

Resources

Audio
Ctrl+4
Files
Ctrl+5
Icons
Ctrl+3
Images
Ctrl+2
Other
Ctrl+6
Strings
Ctrl+1

Solution Explorer

Open Files Filter
Ctrl+[, O
Ctrl+[, Ctrl+O
Pending Changes Filter
Ctrl+[, P
Ctrl+[, Ctrl+P
Sync With Active Document
Ctrl+[, S
Ctrl+[, Ctrl+S

SQL

Execute With Debugger
Alt+F5
Expand Wildcards
Ctrl+R, E
Ctrl+R, Ctrl+E
Fullyqualify Names
Ctrl+R, Q
Ctrl+R, Ctrl+Q
Moveto Schema
Ctrl+R, M
Ctrl+R, Ctrl+M
Query Results New Row
Alt+End
Query Results Refresh
Shift+Alt+R
Query Results Stop
Alt+Break
Rename
Ctrl+R, R
F2
Ctrl+R, Ctrl+R
SSDTSchema Compare Compare
Shift+Alt+C
SSDTSchema Compare Generate Script
Shift+Alt+G
SSDTSchema Compare Next Change
Shift+Alt+.
SSDTSchema Compare Previous Change
Shift+Alt+,
SSDTSchema Compare Stop
Alt+Break
SSDTSchema Compare Write Updates
Shift+Alt+U
TSql Editor Cancel Query
Alt+Break
TSql Editor Execute Query
Ctrl+Shift+E
TSql Editor Results As File
Ctrl+D, F
TSql Editor Results As Grid
Ctrl+D, G
TSql Editor Results As Text
Ctrl+D, T
TSql Editor Show Estimated Plan
Ctrl+D, E
TSql Editor Toggle Execution Plan
Ctrl+D, A
TSql Editor Toggle Results Pane
Ctrl+D, R

Table

Columntothe Left
Ctrl+Alt+Left Arrow
Columntothe Right
Ctrl+Alt+Right Arrow
Row Above
Ctrl+Alt+Up Arrow
Row Below
Ctrl+Alt+Down Arrow

Team

Go To Git Branches
Ctrl+0, Ctrl+N
Ctrl+0, N
Go To Git Changes
Ctrl+0, Ctrl+G
Ctrl+0, G
Go To Git Commits
Ctrl+0, Ctrl+O
Ctrl+0, O
Goto Next Work Item
Shift+Alt+N
Goto Previous Work Item
Shift+Alt+P
New Linked Work Item
Shift+Alt+L
Refresh
F5
Team Explorer Search
Ctrl+'

Team Foundation Context Menus

Tfs Annotate Move Next Region
Alt+PgDn
Tfs Annotate Move Previous Region
Alt+PgUp
Go To Builds
Ctrl+0, Ctrl+B
Ctrl+0, B
Go To Connect
Ctrl+0, Ctrl+C
Ctrl+0, C
Go To Documents
Ctrl+0, Ctrl+D
Ctrl+0, D
Go To Home
Ctrl+0, Ctrl+H
Ctrl+0, H
Go To My Work
Ctrl+0, Ctrl+M
Ctrl+0, M
Go To Pending Changes
Ctrl+0, Ctrl+P
Ctrl+0, P
Go To Reports
Ctrl+0, Ctrl+R
Ctrl+0, R
Go To Settings
Ctrl+0, Ctrl+S
Ctrl+0, S
Go To Team Explorer Navigation
Alt+Home
Go To Team Explorer Next Section Content
Alt+Down Arrow
Go To Team Explorer Page Content
Alt+0
Go To Team Explorer Previous Section Content
Alt+Up Arrow
Go To Team Explorer Section1 Content
Alt+1
Go To Team Explorer Section2 Content
Alt+2
Go To Team Explorer Section3 Content
Alt+3
Go To Team Explorer Section4 Content
Alt+4
Go To Team Explorer Section5 Content
Alt+5
Go To Team Explorer Section6 Content
Alt+6
Go To Team Explorer Section7 Content
Alt+7
Go To Team Explorer Section8 Content
Alt+8
Go To Team Explorer Section9 Content
Alt+9
Go To Web Access
Ctrl+0, Ctrl+A
Ctrl+0, A
Go To Work Items
Ctrl+0, Ctrl+W
Ctrl+0, W
Team Explorer Navigate Backward
Alt+Left Arrow
Team Explorer Navigate Forward
Alt+Right Arrow
Set Focuson Left Window
Alt+1
Set Focuson Result Window
Alt+2
Set Focuson Right Window
Alt+3
Tfs Context My Work Page Create Copy WI
Shift+Alt+C
Tfs Context My Work Page New Linked WI
Shift+Alt+L

Test

Use Coded UITest Builder
Ctrl+\, Ctrl+C
Use Existing Action Recording
Ctrl+\, Ctrl+A

Test Explorer

Debug All Tests
Ctrl+R, Ctrl+A
Debug All Tests In Context
Ctrl+R, Ctrl+T
Open Test
F12
Repeat Last Run
Ctrl+R, L
Run All Tests
Ctrl+R, A
Run All Tests In Context
Ctrl+R, T

Tools

Attachto Process
Ctrl+Alt+P
Code Snippets Manager
Ctrl+K, Ctrl+B
Force GC
Ctrl+Shift+Alt+F12, Ctrl+Shift+Alt+F12

View

All Windows
Shift+Alt+M
Architecture Explorer
Ctrl+\, Ctrl+R
NETNonvisual Controls
Ctrl+Shift+N
Backward
Alt+Left Arrow
Bookmark Window
Ctrl+K, Ctrl+W
Ctrl+W, B
Ctrl+W, Ctrl+B
Browse Next
Ctrl+Shift+1
Browse Previous
Ctrl+Shift+2
Call Hierarchy
Ctrl+W, K
Ctrl+W, Ctrl+K
Class View
Ctrl+Shift+C
Ctrl+W, C
Ctrl+W, Ctrl+C
Class View Go To Search Combo
Ctrl+K, Ctrl+V
Code Definition Window
Ctrl+\, D
Ctrl+\, Ctrl+D
Ctrl+W, D
Ctrl+W, Ctrl+D
Command Window
Ctrl+Alt+A
Ctrl+W, A
Ctrl+W, Ctrl+A
Data Sources
Shift+Alt+D
Document Outline
Ctrl+Alt+T
Ctrl+W, U
Ctrl+W, Ctrl+U
Edit Label
F2
Edit Master
Ctrl+M, Ctrl+M
Entity Data Model Browser
Ctrl+1
Entity Data Model Mapping Details
Ctrl+2
Error List
Ctrl+\, E
Ctrl+\, Ctrl+E
Ctrl+W, E
Ctrl+W, Ctrl+E
F# Interactive
Ctrl+Alt+F
Find Symbol Results
Ctrl+Alt+F12
Ctrl+W, Q
Ctrl+W, Ctrl+Q
Forward
Alt+Right Arrow
Forward Browse Context
Ctrl+Shift+7
Full Screen
Shift+Alt+Enter
Navigate Backward
Ctrl+-
Navigate Forward
Ctrl+Shift+-
Next Error
Ctrl+Shift+F12
Next View
Ctrl+PgDn
Notifications
Ctrl+W, N
Ctrl+W, Ctrl+N
Object Browser
Ctrl+Alt+J
Ctrl+W, J
Ctrl+W, Ctrl+J
Output
Ctrl+Alt+O
Ctrl+W, O
Ctrl+W, Ctrl+O
Pending Checkins
Ctrl+W, G
Ctrl+W, Ctrl+G
Pop Browse Context
Ctrl+Shift+8
Properties Window
F4
Ctrl+W, P
Ctrl+W, Ctrl+P
Property Pages
Shift+F4
Refresh
F5
Report Data
Ctrl+Alt+D
Resource View
Ctrl+Shift+E
Ctrl+W, R
Ctrl+W, Ctrl+R
Server Explorer
Ctrl+Alt+S
Ctrl+W, L
Ctrl+W, Ctrl+L
Show Smart Tag
Shift+Alt+F10
Ctrl+.
Solution Explorer
Ctrl+Alt+L
Ctrl+W, S
Ctrl+W, Ctrl+S
SQLServer Object Explorer
Ctrl+\, Ctrl+S
Synchronize Views
Ctrl+Shift+Y
Task List
Ctrl+\, T
Ctrl+\, Ctrl+T
Ctrl+W, T
Ctrl+W, Ctrl+T
Tfs Team Explorer
Ctrl+\, Ctrl+M
Toolbox
Ctrl+Alt+X
Ctrl+W, X
Ctrl+W, Ctrl+X
UMLModel Explorer
Ctrl+\, Ctrl+U
View Code
Enter
F7
View Designer
Shift+F7
View Markup
Shift+F7
Web Browser
Ctrl+Alt+R
Ctrl+W, W
Ctrl+W, Ctrl+W
Zoom In
Ctrl+Shift+.
Zoom Out
Ctrl+Shift+,

Window

Activate Document Window
Esc
Activate Quick Launch
Ctrl+Q
Activate Quick Launch Previous Category
Ctrl+Shift+Q
Activate Solution Explorer Search
Ctrl+;
Activate Window Search
Alt+`
Add Tabto Selection
Ctrl+Shift+Alt+Space
Close Document Window
Ctrl+F4
Close Tool Window
Shift+Esc
Keep Tab Open
Ctrl+Alt+Home
Moveto Navigation Bar
Ctrl+F2
Next Document Window
Ctrl+F6
Next Document Window Nav
Ctrl+Tab
Next Pane
Alt+F6
Next Tab
Ctrl+Alt+PgDn
Ctrl+PgDn
Next Taband Addto Selection
Ctrl+Shift+Alt+PgDn
Next Tool Window Nav
Alt+F7
Previous Document Window
Ctrl+Shift+F6
Previous Document Window Nav
Ctrl+Shift+Tab
Previous Pane
Shift+Alt+F6
Previous Tab
Ctrl+Alt+PgUp
Ctrl+PgUp
Previous Taband Addto Selection
Ctrl+Shift+Alt+PgUp
Previous Tool Window Nav
Shift+Alt+F7
Show Dock Menu
Alt+-
Show Ez MDIFile List
Ctrl+Alt+Down Arrow
Toggle
Shift+Alt+V

Windows Azure

Retry Mobile Service Script Operation
Ctrl+Num *, Ctrl+R
Show Mobile Service Script Error Details
Ctrl+Num *, Ctrl+D

Workflow Designer

Collapse
Ctrl+E, Ctrl+C
Ctrl+E, C
Collapse All
Ctrl+E, Ctrl+Y
Ctrl+E, Y
Connect Nodes
Ctrl+E, Ctrl+F
Ctrl+E, F
Create Variable
Ctrl+E, Ctrl+N
Ctrl+E, N
Expand All
Ctrl+E, Ctrl+X
Ctrl+E, X
Expand In Place
Ctrl+E, Ctrl+E
Ctrl+E, E
Go To Parent
Ctrl+E, Ctrl+P
Ctrl+E, P
Move Focus
Ctrl+E, Ctrl+M
Ctrl+E, M
Navigate Through Designer
Ctrl+Alt+F6
Restore
Ctrl+E, Ctrl+R
Ctrl+E, R
Show Hide Argument Designer
Ctrl+E, Ctrl+A
Ctrl+E, A
Show Hide Imports Designer
Ctrl+E, Ctrl+I
Ctrl+E, I
Show Hide Overview Map
Ctrl+E, Ctrl+O
Ctrl+E, O
Show Hide Variable Designer
Ctrl+E, Ctrl+V
Ctrl+E, V
Toggle Selection
Ctrl+E, Ctrl+S
Ctrl+E, S
Zoom In
Ctrl+Num +
Zoom Out
Ctrl+Num -

XML

Start XSLTDebugging
Alt+F5
Start XSLTWithout Debugging
Ctrl+Alt+F5

Xsd Designer

Show Content Model View
Ctrl+2
Show Graph View
Ctrl+3
Show Start View
Ctrl+1

Thursday 5 November 2015

INNER JOIN vs. CROSS APPLY

INNER JOIN is the most used construct in SQL: it joins two tables together, selecting only those row combinations for which a JOIN condition is true.
This query:

SELECT  * FROM    table1 JOIN    table2 ON      table2.b = table1.a 
reads:
For each row from table1, select all rows from table2 where the value of field b is equal to that of field a
Note that this condition can be rewritten as this:


CROSS APPLY is a Microsoft's extension to SQL, which was originally intended to be used with table-valued functions (TVF's).
The query above would look like this:
 
SELECT  * FROM    table1 CROSS APPLY( 
SELECT  TOP (table1.rowcount) *
FROM    table2
ORDER BY Id
) t2
For each from table1, select first table1.rowcount rows from table2 ordered by id

CROSS JOIN vs INNER JOIN in SQL Server

CROSS JOIN:
SELECT 
    Movies.CustomerID, Movies.Movie, Customers.Age, 
    Customers.Gender, Customers.[Education Level], 
    Customers.[Internet Connection], Customers.[Marital Status], 
FROM   
    Customers 
CROSS JOIN 
    Movies
 
INNER JOIN:
SELECT 
    Movies.CustomerID, Movies.Movie, Customers.Age, 
    Customers.Gender, Customers.[Education Level], 
    Customers.[Internet Connection], Customers.[Marital Status]
FROM   
    Customers 
INNER JOIN 
    Movies ON Customers.CustomerID = Movies.CustomerID
 
 
 
Cross join does not combine the rows, if you have 100 rows in each table with 1 to 1 match, you get 10.000 results, Innerjoin will only return 100 rows in the same situation.
These 2 examples will return the same result:

Cross join
select * from table1 cross join table2 where table1.id = table2.fk_id
Inner join

select * from table1 join table2 on table1.id = table2.fk_id
Use the last method


Here is the best example of Cross Join and Inner Join.
Consider the following tables
TABLE : Teacher
x------------------------x
| TchrId   | TeacherName | 
x----------|-------------x
|    T1    |    Mary     |
|    T2    |    Jim      |
x------------------------x
TABLE : Student
x--------------------------------------x
|  StudId  |    TchrId   | StudentName | 
x----------|-------------|-------------x            
|    S1    |     T1      |    Vineeth  |
|    S2    |     T1      |    Unni     |
x--------------------------------------x

1. INNER JOIN

Inner join selects the rows that satisfies both the table.

Consider we need to find the teachers who are class teachers and their corresponding students. In that condition, we need to apply JOIN or INNER JOIN and will
enter image description here
Query
SELECT T.TchrId,T.TeacherName,S.StudentName 
FROM #Teacher T
INNER JOIN #Student S ON T.TchrId = S.TchrId
Result
x--------------------------------------x
|  TchrId  | TeacherName | StudentName | 
x----------|-------------|-------------x            
|    T1    |     Mary    |    Vineeth  |
|    T1    |     Mary    |    Unni     |
x--------------------------------------x

2. CROSS JOIN

Cross join selects the all the rows from the first table and all the rows from second table and shows as Cartesian product ie, with all possibilities

Consider we need to find all the teachers in the school and students irrespective of class teachers, we need to apply CROSS JOIN.
enter image description here
Query
SELECT T.TchrId,T.TeacherName,S.StudentName 
FROM #Teacher T
CROSS JOIN #Student S 
Result
x--------------------------------------x
|  TchrId  | TeacherName | StudentName | 
x----------|-------------|-------------x            
|    T2    |     Jim     |    Vineeth  |
|    T2    |     Jim     |    Unni     |
|    T1    |     Mary    |    Vineeth  |
|    T1    |     Mary    |    Unni     |
x--------------------------------------x

 

 

How to invoke a Web Service from a Stored Procedure


Introduction

On one occasion an old friend, was planning some applications  using NET and sockets, and needed to call a WebServices from a stored procedure.
In this article I will share this experience so that other programmers can learn to call a WebService sending parameters from a Stored Procedure.

Step 1 

We must create our WebServices Project in Visual Studio.

Step 2 

Then proceed to create the methods that we use in our service, in my case believe 6 methods which are:  Greet (string Param1) and expects a String as the parameter, HelloWord() does not expect any parameters, and the  Add, subtract, and Divide proliferation (Num1 int, int num2) want  two integers as parameters.


Step 3 

Proceed to create our stored procedure that will have all the code to invoke the Web Services we have just created, as in all my articles database I use is AdventureWorks, which is the basis of test data that brings SQL Server.

Step 4 

Then publish the web service on our IIS Web Server


Step 5 

We proceed to our Store Procedure Coding the data of our Web Service.

Step 6 

In the procedure to create, we pass a parameter which is the parameter that is waiting Saludar() method, if they want to use the other methods, should create another parameter because as I mentioned above the other methods are expecting 2 parameters integer type.
Something that is also very important when using the sp_OAMethod Stored Procedure this awaiting the POST or GET method, default almost always send POST, but if we sent this method, we can not display the XML reading generated by our Web Service, so we must use the GET method.

Step 7 

Proceed to test our Web Service through your browser, type the address of the IIS where the published our Web Service. http://localhost/WebServices/Service1.asmx in the same show all the methods that  we created in our Web Service.

Step 8 

Select the method that we use and invoke from our Stored Procedure, Saludar(). Then proceed to write the parameter you want to happen to the Web Service,  after this we click on Invoke.

Step 9  

After that it will open another page in your browser, the information contained in XML and the parameter to write.

Step 10   

We proceed to execute the stored procedure we just created to invoke our web service.

Step 11    

After running our procedure and send our parameters we get the same result we got when we run it through your browser.

Results    

Look at the comparison and noticed that the same result.

Tuesday 3 November 2015

How To Setup Linked Servers in SQL Server

How to create Linked servers in a minute in an easy way
4.JPG

Introduction - How To Setup Linked Servers.

If you want to use a database from another Server Instance in your queries, you should do some workaround to reach your goal, or better say if you have distributed databases for an application and you want to use distributed queries here is the simple, easy solution.

Using the Code

This option is also available for SQL Server 2000. You should go to [Security]>[Linked Servers] tab under the connected SQL Server Instance.

I. Setting up Linked Server for Using as a NamedServer

  1. Connect to the specified DB Instance that you are going to use the Shared Server (Linked Server) in it. 1.JPG
  2. Go to [Server Objects] and on the [Linked Servers] perform a [Right-Click] and select [New Linked Server...].
  3. In the new window on [General] page, you have to set several parameters as below: 2.JPG
    1. [Linked server]: LLSS (The name that will be used for addressing the Shared server)
      SELECT * FROM [LLSS].[DBName].[Schema].[TableName] 
      
      SELECT * FROM [SERVERNAme].[CompanyDBName].[dbo].[CompanyMaster] 
    2. [Server type]: Select [Other data source] Option
    3. [Provider]: [Choose SQL Native Client]
    4. [Product Name]: BBBBBBBB (Shouldn't be empty and anything can be set, e.g. Instance Name)
      [BBBBBBBB]
      
      [Server2005]
    5. [Data source]: XXX.XXX.XXX.XXX\DDSS (The Network name of SQL Server that is going to be shared on current Instance).
      [ XXX.XXX.XXX.XXX\DDSS]
      
      [192.168.1.25\Server2005]
    6. [Provider string]: (leave this parameter empty)
    7. [Location]: is disabled (leave this parameter empty)
    8. [Catalog]: the database Name (set your default database or leave it empty)
  4. Go to [Security] page, select [be made using this security context] option and set parameters as below: 3.JPG
    1. [Remote login]: XX (the shared server login user name)
      [XX] 
      
      [sa] 
    2. [With Password]: YY (the shared server login password)
      [YY]
      
      [MyS@P@ss ]
  5. Press [OK ] and you are ready to go … and use the Linked Server as mentioned.

SqlDataBaseLibrary

using System; using System.Collections.Generic; using System.Data; using System.Data.SqlClient; using AOS.Repository.Infrastructure; using S...