Click here to Skip to main content
15,925,181 members
Home / Discussions / Database
   

Database

 
AnswerRe: common genreal stored procedure in sql server Pin
Colin Angus Mackay26-Apr-07 1:02
Colin Angus Mackay26-Apr-07 1:02 
GeneralRe: common genreal stored procedure in sql server Pin
Hasan Jaffal26-Apr-07 1:28
Hasan Jaffal26-Apr-07 1:28 
GeneralRe: common genreal stored procedure in sql server Pin
Colin Angus Mackay26-Apr-07 2:19
Colin Angus Mackay26-Apr-07 2:19 
GeneralRe: common genreal stored procedure in sql server Pin
Hasan Jaffal26-Apr-07 3:16
Hasan Jaffal26-Apr-07 3:16 
GeneralRe: common genreal stored procedure in sql server Pin
Colin Angus Mackay26-Apr-07 4:14
Colin Angus Mackay26-Apr-07 4:14 
GeneralRe: common genreal stored procedure in sql server Pin
Hasan Jaffal26-Apr-07 4:21
Hasan Jaffal26-Apr-07 4:21 
GeneralRe: common genreal stored procedure in sql server Pin
Colin Angus Mackay26-Apr-07 5:18
Colin Angus Mackay26-Apr-07 5:18 
GeneralRe: common genreal stored procedure in sql server Pin
Colin Angus Mackay26-Apr-07 4:21
Colin Angus Mackay26-Apr-07 4:21 
And another thing...

You should define the column list in the SELECT statement for a number of reasons.

Performance - Defining the list up front means SQL Server doesn't have to work it out.

Reliability - Defining the list up front gives your stored procedure a consistent interface to the outside world. If you add or rearrange columns the stored procedure's output will remain the same - which means that the application using it will continue to work. If the changes are breaking changes then the point it breaks will be in the stored procedure which is closer to the change than anywhere else. This means it should be easy to find the dependencies and fix the remaining code.


Upcoming events:
* Glasgow: Introduction to AJAX (2nd May), SQL Server 2005 - XML and XML Query Plans, Mock Objects, SQL Server Reporting Services...

Never write for other people. Write for yourself, because you have a passion for it. -- Marc Clifton


My website

GeneralRe: common genreal stored procedure in sql server Pin
Hasan Jaffal26-Apr-07 4:31
Hasan Jaffal26-Apr-07 4:31 
Questioncreating a crystal report using a dataset Pin
rkherath25-Apr-07 23:50
rkherath25-Apr-07 23:50 
AnswerRe: creating a crystal report using a dataset Pin
Tirthadip25-Apr-07 23:57
Tirthadip25-Apr-07 23:57 
GeneralRe: creating a crystal report using a dataset Pin
rkherath26-Apr-07 0:08
rkherath26-Apr-07 0:08 
GeneralRe: creating a crystal report using a dataset Pin
Tirthadip26-Apr-07 0:22
Tirthadip26-Apr-07 0:22 
GeneralRe: creating a crystal report using a dataset Pin
rkherath26-Apr-07 0:39
rkherath26-Apr-07 0:39 
Question[Message Deleted] Pin
gubba25-Apr-07 22:37
gubba25-Apr-07 22:37 
AnswerRe: storing array values in a column Pin
Tirthadip25-Apr-07 22:50
Tirthadip25-Apr-07 22:50 
AnswerRe: storing array values in a column Pin
Hasan Jaffal26-Apr-07 4:25
Hasan Jaffal26-Apr-07 4:25 
GeneralSQL Management Studio Security Pin
Brady Kelly25-Apr-07 22:23
Brady Kelly25-Apr-07 22:23 
GeneralRe: SQL Management Studio Security Pin
Colin Angus Mackay25-Apr-07 23:09
Colin Angus Mackay25-Apr-07 23:09 
GeneralRe: SQL Management Studio Security Pin
Brady Kelly25-Apr-07 23:16
Brady Kelly25-Apr-07 23:16 
GeneralRe: SQL Management Studio Security Pin
Colin Angus Mackay26-Apr-07 0:57
Colin Angus Mackay26-Apr-07 0:57 
GeneralRe: SQL Management Studio Security Pin
Brady Kelly26-Apr-07 1:05
Brady Kelly26-Apr-07 1:05 
GeneralRe: SQL Management Studio Security Pin
Colin Angus Mackay26-Apr-07 4:11
Colin Angus Mackay26-Apr-07 4:11 
QuestionScheduling stored procedures in sql server 2000 Pin
siddhi030325-Apr-07 21:35
siddhi030325-Apr-07 21:35 
QuestionDatabase Security Pin
.NET- India 25-Apr-07 21:23
.NET- India 25-Apr-07 21:23 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.