Viewing 15 posts - 151 through 165 (of 216 total)
Duplicate post of
http://www.sqlservercentral.com/Forums/FindPost526429.aspx
AND
http://www.sqlservercentral.com/Forums/FindPost526428.aspx
Please don't cross post!
July 1, 2008 at 3:56 am
It doesn't matter whether you specify SYSTEM or not
From the same link
SYSTEM specifies an ANSI SQL implementation-dependent sampling method. Specifying SYSTEM is optional, but this option is the only sampling...
July 1, 2008 at 3:17 am
just to clarify, it's not that a random number of rows is returned, a random value is generated for each page of the table, and then this is used with...
July 1, 2008 at 2:06 am
grtn316 (6/27/2008)
Select TableA.*, (Select sum(acres) from p_acres where p_acres.id = TableA.acre_id) As TAcres from TableA Where TAcres > 100
Order by TAcres
Here is my error:
Msg...
June 27, 2008 at 10:02 am
Jim Russell (6/27/2008)
June 27, 2008 at 7:12 am
Ahh...
I was thinking much deeper!!!
Glad I culd help,
Kev
June 27, 2008 at 5:17 am
Alternatively, avoiding the IF construct....
DELETE FROM tblname WHERE type = 0 AND EXISTS (SELECT nme FROM tblName WHERE Type = 1)
How do you mean 'better'?
Kev
June 27, 2008 at 5:01 am
try looking into RANK() or ROW_NUMBER() functions.....
Kev
June 27, 2008 at 4:53 am
brendanc,
I had exactly the same scenario as you described, and I knew I had seen this issue before, but couldn't remember how I had resolved it. I had cross-db...
June 26, 2008 at 9:25 am
Michael Earl (6/24/2008)
After you made your update, did you restart IIS? Sharepoint does some caching.
I'm sure I did an 'iisreset', but I'll try again and check......
Kev
June 25, 2008 at 2:30 am
so are you going to go over the exisitng records and replace the dates?
June 24, 2008 at 6:52 am
but if you use this as your default than all default dates will be stored with 00 milliseconds..
do you catch my drift??
Kev
June 24, 2008 at 6:42 am
try
convert(datetime, convert(varchar, getdate(), 120), 120)
Kev
June 24, 2008 at 6:20 am
Jonatan,
do you mean you want all the 'counts' in one record set?
select
month(a.created_date), count(e.id)
from example1 as e
where year(a.created_date) = 2008
group by
month(a.created_date)
this will give you one record set...
June 24, 2008 at 5:22 am
Gavin
you need to use parentheses i.e.
...
select top (@top)
...
Kev
June 24, 2008 at 3:47 am
Viewing 15 posts - 151 through 165 (of 216 total)