Click here to Skip to main content
15,914,767 members
Home / Discussions / Database
   

Database

 
GeneralRe: Problem with calling Scalar Function Pin
--miCZar--26-Jul-07 22:25
--miCZar--26-Jul-07 22:25 
AnswerRe: Problem with calling Scalar Function Pin
andyharman26-Jul-07 6:54
professionalandyharman26-Jul-07 6:54 
GeneralRe: Problem with calling Scalar Function Pin
--miCZar--26-Jul-07 22:27
--miCZar--26-Jul-07 22:27 
AnswerRe: Problem with calling Scalar Function Pin
Pete O'Hanlon26-Jul-07 9:41
mvePete O'Hanlon26-Jul-07 9:41 
Questioninserting values by checking the existing values Pin
dsaikrishna26-Jul-07 2:30
dsaikrishna26-Jul-07 2:30 
AnswerRe: inserting values by checking the existing values Pin
Mubashir Javaid26-Jul-07 2:42
Mubashir Javaid26-Jul-07 2:42 
Questiongetting second highest date from a sql table Pin
hkchauhan26-Jul-07 2:16
hkchauhan26-Jul-07 2:16 
AnswerRe: getting second highest date from a sql table Pin
Krish - KP26-Jul-07 2:21
Krish - KP26-Jul-07 2:21 
AnswerRe: getting second highest date from a sql table Pin
hk7792126-Jul-07 2:34
hk7792126-Jul-07 2:34 
Questioninserting values by checking the existing values Pin
dsaikrishna26-Jul-07 2:12
dsaikrishna26-Jul-07 2:12 
AnswerRe: inserting values by checking the existing values Pin
Eliz.k27-Jul-07 0:20
Eliz.k27-Jul-07 0:20 
QuestionHiding Report Parameters. Pin
Karuna Kumar26-Jul-07 0:34
Karuna Kumar26-Jul-07 0:34 
QuestionStored Procedure Issue Pin
Brendan Vogt26-Jul-07 0:00
Brendan Vogt26-Jul-07 0:00 
AnswerRe: Stored Procedure Issue Pin
Mike Dimmick26-Jul-07 0:46
Mike Dimmick26-Jul-07 0:46 
GeneralRe: Stored Procedure Issue Pin
Colin Angus Mackay26-Jul-07 0:52
Colin Angus Mackay26-Jul-07 0:52 
Gosh! That was a much more comprehensive answer than the one I gave.

My only comment would be:

Mike Dimmick wrote:
call sp_executesql with a dynamically-constructed query. The reason I recommend doing it in the client code is that C# and VB's string manipulation support is much better than T-SQL's.


The string manipulation may be better in the client code, but you open up some security concerns, in my view. I prefer the database to be the master of the queries run on it and allowing dynamic code through from the client shoots that idea down. Building the dyanmic code in SQL at least adds the possibility of running additional checks and knowing that the SQL is being built internally from a more trusted source.


Upcoming events:
* Glasgow: Mock Objects, SQL Server CLR Integration, Reporting Services, db4o, Dependency Injection with Spring ...

"I wouldn't say boo to a goose. I'm not a coward, I just realise that it would be largely pointless."


My website

AnswerRe: Stored Procedure Issue Pin
Colin Angus Mackay26-Jul-07 0:48
Colin Angus Mackay26-Jul-07 0:48 
GeneralRe: Stored Procedure Issue Pin
Mike Dimmick26-Jul-07 3:05
Mike Dimmick26-Jul-07 3:05 
GeneralRe: Stored Procedure Issue Pin
Brendan Vogt26-Jul-07 3:10
Brendan Vogt26-Jul-07 3:10 
AnswerRe: Stored Procedure Issue Pin
Aaron VanWieren26-Jul-07 2:31
Aaron VanWieren26-Jul-07 2:31 
GeneralRe: Stored Procedure Issue Pin
Brendan Vogt26-Jul-07 3:09
Brendan Vogt26-Jul-07 3:09 
Questioncoping data in sql server express Pin
Amjath Rahman25-Jul-07 22:55
Amjath Rahman25-Jul-07 22:55 
AnswerRe: coping data in sql server express Pin
Blue_Boy25-Jul-07 23:12
Blue_Boy25-Jul-07 23:12 
GeneralRe: coping data in sql server express Pin
Amjath Rahman25-Jul-07 23:24
Amjath Rahman25-Jul-07 23:24 
GeneralRe: coping data in sql server express Pin
Blue_Boy25-Jul-07 23:37
Blue_Boy25-Jul-07 23:37 
AnswerRe: coping data in sql server express Pin
Aaron VanWieren26-Jul-07 2:27
Aaron VanWieren26-Jul-07 2:27 

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.