Viewing 15 posts - 421 through 435 (of 1,554 total)
The thing about parallellism is that we have no control over if and when it gets used.
It seems like the MAX() didn't get any and the MIN() got some. Perhaps...
September 8, 2006 at 8:53 am
You're most likely getting a negative value for the 3rd parameter (length of string) in your substring.
select substring('aaabbb', 1, -1)
Server: Msg 536, Level 16, State 3, Line 1
Invalid length parameter...
September 1, 2006 at 7:33 am
The two main places is the SQL Server log and Windows Event log.
It's likely that in case of error that causes the server to stop, you can find the time...
September 1, 2006 at 7:24 am
You may have to adjust or rethink your processing, since what you're trying to do won't work inside the same batch.
-- snip from BOL paragraph Batches ---
A table cannot be altered...
August 28, 2006 at 2:32 am
Swap how? By looking, or permanently? (assume you mean 'swap columns' rather than 'rows')
-- just looking
select num2, num1 from numbers
-- permanent change
update numbers
set num1 = num2,
num2...
August 25, 2006 at 6:47 am
This seems indeed to be a rare bird. I've never heard about it before, and Dr. Google only came up with one single thread about the same issue with MSDE....
August 25, 2006 at 6:43 am
You're welcome
Is there anything in particular you're wondering about?
As a starting point, you can go to BOL (Books On Line) and look up...
August 25, 2006 at 6:33 am
Darn, you beat me to the parsename method.
(just increasing my postcount)
/Kenneth
August 25, 2006 at 3:14 am
'GO' is the token to terminate the batch, so there is no way that you can have 'GO' inside a procedure.
When you complie the proc, the 'GO' will end the...
August 25, 2006 at 3:09 am
Can you post the complete actual command that calls xp_cmdshell, along with how you verify the returncode?
..and also the output from the command.
/Kenneth
August 25, 2006 at 3:03 am
Another way of doing it, without loops or identity.
It does however need a numbers table.
This is basically a technique that Itzik wrote about in SQL Server Mag June 2005 -...
August 23, 2006 at 2:02 am
Fwiw,
I found an old post of mine, just basically describing how transactions work..
Have a look at it and see if you can get your head around it =;o)
It's not entirely...
August 22, 2006 at 7:29 am
Hmmm.. well, endusers seldom knows what the meaning of 'neat' is...
Only thing I can think of straight up is to generate the file in...
August 17, 2006 at 5:31 am
If you can't touch the existing data, you may scrub it while retrieving.
You can use a UDF to strip out CR/LF chars, something like below.
create function dbo.stripCRLF(@s as...
August 17, 2006 at 4:49 am
Well, never seen that requested before.
AFAIK, it can't be done directly in the query. Column headers are returned on a single line.
Perhaps do...
August 17, 2006 at 3:06 am
Viewing 15 posts - 421 through 435 (of 1,554 total)