Viewing 15 posts - 1,651 through 1,665 (of 1,825 total)
create table #cars(
carname varchar(20)
)
go
insert into #cars values('ford')
insert into #cars values('ford')
insert into #cars values('ford')
insert into #cars values('honda')
insert into #cars values('honda')
go
Select top 1 carname,count(*)
from #cars
group by carname
order by 2 desc
August 18, 2009 at 3:00 am
At a guess , that is the number of seconds from 01jan1970
try this
select (1231151827/60)
select 20519197/60
select 341986/24
select dateadd(dd,14249,'19700101')
August 18, 2009 at 2:55 am
SQLProfiler is the tool to use
try this
http://pentonizer.com/sql-server/introduction-to-sql-profiler/
If you are running over an extended period server-side traces are more efficent
August 18, 2009 at 2:51 am
Hi ,
this should do for your first query
with cteSites(SiteID, Priority , Value ,RowN )
as
(
select SiteID ,Priority , Value ,row_number() over...
August 18, 2009 at 2:32 am
Im confused as how your question relates to the query plans.
The query plans ( which are identical between the fast and slow) are a single query but you say that...
August 18, 2009 at 1:57 am
Use temp tables and insert into those
something like this
Create Procedure x
as
Create #Tab1 (
Col1 integer)
Create #Tab2 (
Col2 integer)
Insert into #Tab1 Select x from yourtab where a=b
Insert into #tab2 Select y...
August 17, 2009 at 8:07 am
August 17, 2009 at 7:48 am
Steve Jones - Editor (8/17/2009)
August 17, 2009 at 7:14 am
Its not the 'dumbness' of question that is the issue , after all everyone has limits to their knowledge.
What may seem obvious to you may not be obvious the me.
A...
August 17, 2009 at 5:06 am
This should help you along
http://www.simple-talk.com/sql/t-sql-programming/concatenating-row-values-in-transact-sql/
August 17, 2009 at 3:58 am
How exactly does it not work ?
Does it error or return no rows ?
August 17, 2009 at 3:56 am
Jack Corbett (7/27/2009)
Any of you all making a trip to Disney and interested in speaking let me know.
Anything scheduled for the next week or two ? Might make a nice...
July 28, 2009 at 5:33 pm
Jack Corbett (7/21/2009)
Dave Ballantyne (7/21/2009)
Enjoyed my short time here, more rewarding than...
July 25, 2009 at 2:42 pm
Hi ho hi ho , if off to Disney i go , see you all in 4 weeks.
Enjoyed my short time here, more rewarding than usenet anyway
July 21, 2009 at 7:10 am
Viewing 15 posts - 1,651 through 1,665 (of 1,825 total)