Viewing 14 posts - 301 through 314 (of 314 total)
karthikeyan (12/21/2007)
I mean In which situations you go to spt_values.can you list out some examples ?
Also, say for example...
December 28, 2007 at 1:25 am
Rame... (12/26/2007)
Could not process object 'SELECT * from [testing$]'. The OLE DB provider...
December 28, 2007 at 1:16 am
Sarfaraj Ahmed (12/28/2007)
I have 3 tables. Customer, Order, CustomerOrder
I want to write a query where my output should be below
Cust_ID Order_ID
C1001 ...
December 28, 2007 at 1:15 am
Jeff Moden (12/21/2007)
This is what I spoke of on one of the other posts... it's also why people get so angry with you. You banter the "Senior Software Engineer"...
December 28, 2007 at 12:15 am
GilaMonster (12/21/2007)
DECLARE @Var1 INT
SET @Var1 = NULL
SELECT
CASE WHEN @Var1 = NULL THEN 'Var1 = Null' ELSE 'Var1 <> NULL' END AS EqualityTest,
CASE WHEN @Var1 <> NULL THEN...
December 28, 2007 at 12:14 am
karthikeyan (12/21/2007)
@length/2.0 + 1I am not able to understand the above statement.Why are you dividing it by 2 and add with 1.
Are you a front-end developer or back-end developer?
What do...
December 28, 2007 at 12:13 am
karthikeyan (12/21/2007)
Declare @STR varchar(4000)
set @STR = 'David,karthikeyan'
Expected Format:
D
D A
D A V
D A V I
D A V...
December 21, 2007 at 3:22 am
Thanks Jeff Moden for the testing
I usually suggest CTE to handle small set of data and to retreive hierarchical data 🙂
December 18, 2007 at 12:25 am
ravindra.gangadhar (12/17/2007)
I have table which retrives values and i want to convert those values to columns but the values are not fixed it may increase.
example
ID TEXT
------------------------
1...
December 17, 2007 at 5:48 am
Jeff Moden (12/10/2007)
DECLARE @STR CHAR(6)
SET @STR = 'ABCDEF'
SELECT LEFT(@Str,Number)
FROM Master.dbo.spt_Values
WHERE Type = 'P'
...
December 17, 2007 at 5:29 am
Good article Jeff Moden. 🙂
When I saw the topic I thought you must be the author (due to the word RBAR). I never see anyone using this term over any...
December 14, 2007 at 6:50 am
Also, If you use Front End application, you can very well handle this there
February 23, 2006 at 6:28 am
I think, no need to use isnull function
select id
, case when record1 is null then 0 else 1 end
+ case when record2 is null then 0 else 1 end
+ ...
February 22, 2005 at 4:47 am
Viewing 14 posts - 301 through 314 (of 314 total)