Viewing 15 posts - 196 through 210 (of 310 total)
To preempt another potential whoops (it got me once) :
A programmer may decide to circumvent the date format issues by holding dates as Julian day numbers. Unfortunately, SQL Server...
July 6, 2005 at 7:50 am
These offer another solution that lets you keep the same column name :
select top 5
o.orderid
, o.customerid
, CONVERT(char(10), o.requireddate, 101) as requireddate
from orders o
order by convert(char(10), o.requireddate, 120) desc
or...
July 6, 2005 at 3:15 am
Thanks, you're right - sort of. It happens in this case but it works fine with the brackets if you take out the ORDER BY clause.
Checking BOL (which I...
July 4, 2005 at 9:29 am
A couple of weeks ago. Perhaps I imagined it but if he didn't, he should have!
July 4, 2005 at 8:34 am
Once again, thanks very much. To echo Steve Jones, you deserve all those points.
July 4, 2005 at 8:23 am
Thanks for the instant response!
I had a clustered key on the table that I'm inserting to so as to speed later queries and included the ORDER BY so that records...
July 4, 2005 at 8:06 am
My understanding is that the main problem is not temp tables as such but SELECT INTO #temp because that takes locks on the tempdb system tables while the select is...
June 23, 2005 at 2:12 am
It seems too obvious and probably just the way you typed the post but your sample queries are using different datetime formats.
June 23, 2005 at 2:07 am
Remi,
Thanks for the correction - that could have been embarrassing!
June 16, 2005 at 8:14 am
Remi,
To refine your comment on temp tables, my understanding is :
## are global to the connection
# are local to the stored procedure in which they are created.
I need to play...
June 16, 2005 at 7:44 am
The temporary table method, I believe, only works when calling from another stored procedure; not from an application via ADODB, etc. However, updating a table directly by modifying a...
June 16, 2005 at 1:52 am
You could try using psychology :
Create a job to run overnight that looks for anything created as other than dbo and e-mails the creator with a suitable message. They...
June 6, 2005 at 4:49 am
I have experienced this - where a procedure ran fine on a single processor development server but slowed to a crawl on a multiprocessor production server. Restricting it to...
June 3, 2005 at 2:40 am
One thought - if a software vendor is referring to lots of databases, is it his software that is using them all? If so and its bad design, perhaps...
June 2, 2005 at 2:06 am
Remi,
Apologies. I just noted that I effectively repeated your answer. I must have been asleep not to notice! No plagiarism intended.
May 27, 2005 at 5:59 am
Viewing 15 posts - 196 through 210 (of 310 total)