Viewing 15 posts - 25,291 through 25,305 (of 59,102 total)
Be very careful if you decide to use MERGE. There are several CONNECT items that are open about it and, like anything else, if you don't obey some fairly...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 29, 2013 at 5:08 pm
RTaylor2208 (11/29/2013)
AND b.CreatedON BETWEEN '2013-11-29' AND '2013-11-30'
This will give you the time range '2013-11-29 00:00:00.000' till '2013-11-29-29 23:59:59.999' encompasing the whole day.
Another option is
WHERE b.PropertyCode='PCH'
AND...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 29, 2013 at 5:05 pm
Gary Varga (11/27/2013)
With all that has been posted here I am either a SQL Server god (because the majority are rubbish - thanks for the ego boost...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 29, 2013 at 4:53 pm
Not that many people would notice but you can get the code to be almost a third faster by eliminating the (-1) subtraction. Last but not least, the simplification...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 29, 2013 at 2:05 pm
Although I absolutely love the idea of not having to tend the hardware or Windows anymore, I'm still very aware of both and the things that can go wrong as...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 29, 2013 at 12:51 pm
frdrckmitchell7 (11/28/2013)
Hi AlexUnfortunately it does not, hence my question.
Kind regards
Understood by why not fix the client side? What is preventing that?
--Jeff Moden
Change is inevitable... Change for the better is not.
November 29, 2013 at 12:31 pm
ben.brugman (11/29/2013)
If a do a cast I get the more logical result.
select...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 29, 2013 at 12:22 pm
P Jones (11/29/2013)
--Jeff Moden
Change is inevitable... Change for the better is not.
November 29, 2013 at 12:17 pm
Minnu (11/29/2013)
dd
How rude. It's just totally improper to delete the original post even if things don't work out exactly as you planned.
If you still need an answer on...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 29, 2013 at 11:41 am
keyser soze-308506 (11/27/2013)
HiI have a query like that
select c.client_group, s.product_id, count(*) as qfrom Sales s
inner join Client c on c.client_id= s.client_id
group by c.client_id, s.product_id
That code won't actually work at...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 29, 2013 at 11:33 am
ChrisM@Work (11/28/2013)
Jeff Moden (11/26/2013)
As a bit of a sidebar, I especially like the one about "make it work, make it fast, make it pretty" except you left off the 4th...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 29, 2013 at 10:37 am
sqlrd22 (10/15/2012)
Abu Dina (10/15/2012)
IF (select count(*) from [e009]) > 0
begin
exec msdb.dbo.sp_send_dbmail
@profile_name = 'Default',
@recipients = 'me@example.com',
@subject = 'warning',
@query = 'select * from...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 29, 2013 at 8:41 am
Hey folks, just in case you've gotten lost somewhere along the line on this last bit about collation, allow me to summarize...
Paul found, Tom confirmed, and I tested that certain...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 27, 2013 at 7:12 pm
Although I think this post definitely deserves an answer, be aware that the OP might not respond because it is a 3 year old post.
--Jeff Moden
Change is inevitable... Change for the better is not.
November 27, 2013 at 3:51 pm
I can't speak for the whole country but I've found that a lot of "System DBA" jobs now require a fairly indepth knowledge of T-SQL. If you have a...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 27, 2013 at 3:48 pm
Viewing 15 posts - 25,291 through 25,305 (of 59,102 total)