Viewing 14 posts - 301 through 315 (of 315 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...
Failing to plan is Planning to fail
December 28, 2007 at 1:25 am
Rame... (12/26/2007)
Could not process object 'SELECT * from [testing$]'. The OLE DB provider...
Failing to plan is Planning to fail
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 ...
Failing to plan is Planning to fail
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"...
Failing to plan is Planning to fail
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...
Failing to plan is Planning to fail
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...
Failing to plan is Planning to fail
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 I D
K A R...
Failing to plan is Planning to fail
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 🙂
Failing to plan is Planning to fail
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...
Failing to plan is Planning to fail
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'
AND Number BETWEEN...
Failing to plan is Planning to fail
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...
Failing to plan is Planning to fail
December 14, 2007 at 6:50 am
Also, If you use Front End application, you can very well handle this there ![]()
Failing to plan is Planning to fail
February 23, 2006 at 6:28 am
See if this helps you
http://vyaskn.tripod.com/watch_your_timeouts.htm
Failing to plan is Planning to fail
October 20, 2005 at 1:11 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
+ ...
Failing to plan is Planning to fail
February 22, 2005 at 4:47 am
Viewing 14 posts - 301 through 315 (of 315 total)