Viewing 15 posts - 19,261 through 19,275 (of 26,484 total)
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
Let us throw in another monkey into the wrench. What happens if the job is started at 20 minutes after the hour, and for various reasons ends up running...
August 11, 2009 at 2:03 pm
Using your test setup try the following:
select RunnerId, [1] as Contest1, [2] as Contest2
from
(select Id, RunnerId, ContestId from #tblResults) p
pivot (
count([Id])
for ContestId in ([1],[2])
) as pvt
order by RunnerId;
August 11, 2009 at 1:43 pm
It isn't a bug in SQL Server 2008 (and yes, there are SQL Server 2008 forums available). I changed the datatype from time to datetime and ran your original...
August 11, 2009 at 1:23 pm
Assumptions:
1. Single Reporting Job: Report Job
2. Multiple Schedules:
Schedule 1, every hour between 6:00 AM and 6:00 PM (i.e 6:00, 7:00, 8:00,...)
Schedule 2,...
August 11, 2009 at 1:05 pm
GilaMonster (8/11/2009)
Chad Crawford (8/11/2009)
Gianluca Sartori (8/11/2009)
Maybe it's time to start the "Should you use your...
August 11, 2009 at 12:37 pm
Viewing 15 posts - 19,261 through 19,275 (of 26,484 total)