Viewing 15 posts - 1,381 through 1,395 (of 1,554 total)
Yet another method (without having to keep track of escaped quotes)
select foo from bar where charindex(char(39), foo) > 0
/Kenneth
September 21, 2004 at 3:31 am
From BOL:
All functions are deterministic or nondeterministic:
Deterministic functions always return the same result any time they are called with a specific set of input values.
Nondeterministic functions may return different...
September 21, 2004 at 3:24 am
One of the simplest ways to merge files is by DOS copy. If it's desired to run by Transact SQL, it can be done through xp_cmdshell, though this type of...
September 20, 2004 at 8:19 am
The resolved errormessage must be trapped at the calling side (eg client). Some errors are not possible to trap within a stored procedure.
All errors are sent to the caller,...
September 20, 2004 at 8:11 am
If you tried a basic select, it most surely did return it's result to the calling client.
So, if the asp page invokes a proc or whatever, and that in return...
September 9, 2004 at 8:04 am
crap! Now my lengthy answer just vanished when pressing 'post reply'.. AGH!
Oh, well... Anyway, it was some thoughts about what a move from...
September 9, 2004 at 7:49 am
Well, both variants use subquerys
In any case, it's not very easy to maintain this type of 'pivot' queries - they tend to be...
September 8, 2004 at 2:37 am
Just some thoughts....
There is no black or white / right or wrong / true or false when it comes to indices / strategy / performance etc... It's all a balance...
September 8, 2004 at 1:32 am
I would also suggest the sp solution - it's brings better security among other things.
This isn't a scope_identity problem more than a 'dynamic SQL vs context' problem. Don't use dynamic...
September 8, 2004 at 1:05 am
Before you decide upon preferring using dynamic SQL, I recommend you (and everyone else) to read this article about the curse and blessings of dynamic SQL
September 8, 2004 at 12:54 am
In short, it is because these are two entirely different questions asked
Just a note, for equi-joins (inner joins) it doesn't matter if the...
September 8, 2004 at 12:46 am
I assume this conversion thing is a one-time only deal? (if not, you definetly do NOT want to parse this junk in Transact SQL every time)
September 8, 2004 at 12:21 am
Just to add to the mix, I found some notes on determining age in one of the darker corners of my drive...
September 8, 2004 at 12:11 am
That is correct. Conversion from money to charachter... However, in your example, you're converting to money, not char.
I guess what you want is like this...
declare @m money
set @m =...
September 7, 2004 at 7:27 am
While pivoting can be accomplished in Transact SQL, it's not very pretty, readable, mantainable, scalable or debugable In short, it's ugly.
From the soultion one...
September 2, 2004 at 6:19 am
Viewing 15 posts - 1,381 through 1,395 (of 1,554 total)