2Prepared by : Ramesh Raj
Contents
1) How to display Year as YYYY instead of YY
........................................................... 3
2) How to Build a Comma Delimited String from Table values
........................... 3
3) How to write values to a Text file
........................................................................... 4
4) How to add a User Defined Error Message
............................................................... 4
5) How to get the Rowcount as well as Error at the same time
...................... 5
6) How to start SQLServer in Single User Mode
........................................................ 6
7) How to start SQL Server in Minimal Configuration Mode
............................... 7
8) How to get Output parameter value from Dynamic execution of a Query
8
9) How to move Database/Transaction Log files
........................................................ 8
10) How to Rename a Database
............................................................................................... 9
11) How to move Master Database
...................................................................................... 10
12) How to Rename a Server
.................................................................................................. 10
13) How to detect & rectify Orphaned Users in a Database
............................. 11
14) How to use a Stored procedure as a Derived Table
...................................... 11
15) How to Generate Serial Numbers in a Query
...................................................... 12
16) How to Rename a Table
.................................................................................................... 12
17) How to Rename a Table Column
.................................................................................... 13
18) How to Rename a Primary Key
...................................................................................... 13
19) How to Rename a Foreign Key
...................................................................................... 13
20) How to Rename a Default
................................................................................................ 14
Leave a Comment