Viewing 15 posts - 901 through 915 (of 2,007 total)
I've not got time to go over it and make sure all of the syntax is correct, but this is the general idea: -
ALTER PROCEDURE [dbo].[Rep_Urlaubstage] (
-- Add the...
February 10, 2012 at 4:36 am
nairdeepa (2/10/2012)
Thanks. Do you have link to it?
My whole post was a link to the article[/url] describing it. The article includes the code.
February 10, 2012 at 4:21 am
To get it out of the way, Text is deprecated so you shouldn't really be using it.
To answer your issue, cast it as VARCHAR(MAX) before doing your substring.
e.g.
SELECT SUBSTRING(CAST([Message] AS...
February 10, 2012 at 4:18 am
nairdeepa (2/10/2012)
Hello,I need to split the below string:
'Spring 2012,Spring 2011'
as
'Spring 2012','Spring 2011'
Does any one know how to do this ?
Thanks,
Debra
Try Jeff Moden's string splitter function, by far the fastest purely...
February 10, 2012 at 3:38 am
I'd be surprised if it makes an improvement.
Without DDL, sample data and expected results, all I'm going to do is directly convert your temp tables into CTEs. If you...
February 10, 2012 at 2:47 am
Anything wrong with using a variable as a holder?
e.g.
DECLARE @holderValue VARCHAR(MAX)
PRINT REPLICATE('-', 80)
SET STATISTICS IO ON
SET STATISTICS TIME ON
SELECT @holderValue = number /*use primary key*/
FROM master..spt_values
WHERE type = 'P'
PRINT REPLICATE('-',...
February 9, 2012 at 9:58 am
manjuke (2/9/2012)
DECLARE @xml AS XML = (
SELECT @id AS '@id',@name AS '@name',@onclick AS '@onclick',(
SELECT TOP 100 PERCENT A.* FROM(
SELECT '0' AS '@value', NULL...
February 9, 2012 at 8:34 am
kiran.rajenimbalkar (2/9/2012)
Hi Professional,Just please tell me which HINT's i need to use in the mentioned above SQL for retrieving the data fast.
Regards,
Kiran
February 9, 2012 at 3:13 am
SELECT @cols = STUFF((SELECT '],''0'' [' + RTRIM(CPA.n)
FROM...
February 8, 2012 at 8:49 am
kiran.rajenimbalkar (2/8/2012)
So can you able just look to where i need to change something in the SQL?
No. There is too much guess work involved, which is why she asked you...
February 8, 2012 at 7:56 am
I'd have probably done it like this
DECLARE @cols NVARCHAR(max) DECLARE @number INT
SET @number = 9
SELECT @cols = STUFF((SELECT '],''0'' [' + RTRIM(CPA.n)
...
February 8, 2012 at 7:47 am
Cadavre (2/8/2012)
cdh-727733 (2/8/2012)
Essentially I am trying to achieve the drill down effect so as long as...
February 8, 2012 at 7:11 am
cdh-727733 (2/8/2012)
Essentially I am trying to achieve the drill down effect so as long as there...
February 8, 2012 at 6:26 am
cdh-727733 (2/8/2012)
I still can't get it though to step through :
Screwdrivers > Phillips / Slotted > Big / Small
Using your execution...
February 8, 2012 at 6:06 am
Viewing 15 posts - 901 through 915 (of 2,007 total)