Viewing 15 posts - 19,261 through 19,275 (of 26,490 total)
Hope this gets you started in the right direction. All I did was mimic the sample code from BOL (Books Online).
create table #t1 (id int,pid int,s varchar(100))
insert into #t1...
August 12, 2009 at 6:26 am
To get help faster and get working tested code, please read the first article I reference in my signature block regarding asking for assistance.
To really help you, we need the...
August 12, 2009 at 6:12 am
Why not change this:
AND (VV.Fund_Valuation_Date = (SELECT MAX (Fund_Valuation_Date)
FROM dbo.Fund_Valuation VVV
WHERE VVV.Fund_Valuation_Date < '2006-09-01'
AND VVV.Fund_Number = V.Fund_Number
AND VVV.Class_Type_Abbr_Name = V.Class_Type_Abbr_Name
AND VVV.Class_Type_Category = V.Class_Type_Category))
to this:
AND VV.Fund_Valuation_Date = (SELECT MAX (Fund_Valuation_Date)
FROM dbo.Fund_Valuation...
August 12, 2009 at 5:46 am
Actually, I may have figured it out. Took a lot of digging and guess work. Preliminary testing looks good, but it is late, and I really don't feel...
August 11, 2009 at 11:06 pm
drew.allen (8/11/2009)
alef (8/11/2009)
I've tried the solution of SSCrazy Eights and this solution is perfect.Is there an explanation why your solution is working and mine not?
I think that this line from...
August 11, 2009 at 9:26 pm
Fal (8/11/2009)
... some have already been done and don’t need doing again, ...S.
I have to disagree with this statement. Just because a topic has already been covered in an...
August 11, 2009 at 7:36 pm
Not all posts are related to the article itself. That is one of the benefits of this community and where you actually learn new things or ideas.
August 11, 2009 at 4:09 pm
Have you tried casting both sides to INT? Can you add two columns to the tables, computed columns that convert the values to INT and then index the computed...
August 11, 2009 at 3:55 pm
timothyawiseman (8/11/2009)
Steve Jones - Editor (8/11/2009)
August 11, 2009 at 3:33 pm
Also, the following works:
declare @ EnableStr varchar(max);
select
@ EnableStr = (select 'alter login ' + [name] + ' enable;'
...
August 11, 2009 at 3:17 pm
I'd have to say it isn't a bug as sorting by ordinal works fine with a normal query. Probably has to do more with the concatination process.
August 11, 2009 at 2:54 pm
jacroberts (8/11/2009)
Kit G (8/11/2009)
jacroberts (8/11/2009)
August 11, 2009 at 2:32 pm
But if you change the ORDINAL (1) to [name] it works.
You really should start using the column name(s) in your order by clauses.
August 11, 2009 at 2:30 pm
Like Jeff said, your code was wrong. Other than that, I have no explaination. All I did was build the query in pieces following the sample code in...
August 11, 2009 at 2:24 pm
I have also heard this: "You learn more from failure than success."
If you never fail, what do you learn? It's the mistakes one makes that you learn from, not...
August 11, 2009 at 2:13 pm
Viewing 15 posts - 19,261 through 19,275 (of 26,490 total)