Viewing 15 posts - 991 through 1,005 (of 1,995 total)
here is an example
select CONVERT(varchar(20),dateprocessed),COUNT(*) from mydb.dbo.mytable
where convert(date, dateprocessed)=convert(date,getdate())
group by CONVERT(varchar(20),dateprocessed)
order by CONVERT(datetime,CONVERT(varchar(20),dateprocessed)) desc
September 6, 2012 at 5:08 am
and add some function to limit the records - such as
where convert(date,mydatecolumn)=convert(date,@red)
September 6, 2012 at 5:03 am
what is the date column on the levels table called then ? you didn't post the table structure so we can't really help
but you need to change @reading date to...
September 6, 2012 at 5:01 am
WHERE (Invoice_Date BETWEEN '@StartDate' AND '@EndDate')
remove the single quotes - you have turned your variables in to strings
'@StartDate' should be @StartDate
September 6, 2012 at 4:55 am
use a windowing function
try this
Create table demo(x nvarchar(20))
insert into demo values('abc')
insert into demo values('abc')
insert into demo values('abc')
insert into demo values('def')
insert into demo values('jkl')
insert into demo values('jkl')
delete y
from
(select x,ROW_NUMBER()...
September 6, 2012 at 4:50 am
Shrinking log file would leads fragmentation issue and it affect performance of application.
i think somebody is giving you missinformation - shrinking the data file will give you fragmentation..... shrinking...
September 6, 2012 at 4:46 am
ok - can you run the command
sp_helpdb
against your server and find out what the recovery mode is on that database (its either simple, full or bulk logged)
then run the...
September 6, 2012 at 4:43 am
you don't need the group by clause... @readingdate is a variable, not a cloumn
September 6, 2012 at 4:38 am
thanks for that - but on other servers we can see the memory being released.... thats what looks unusual
September 6, 2012 at 2:52 am
in that case look at the official site
http://www.microsoft.com/learning/en/us/exam.aspx?id=70-432
it lists all of the details you asked - pre-requisites, how to prepare, time limits, number and type of questions
September 5, 2012 at 4:08 am
sounds like checkpointing may have stopped - you get that a lot on slow IO when you have large amounts of memory
try the following
USE TEMPDB
GO
CHECKPOINT
if the script takes more than...
September 5, 2012 at 3:45 am
as per the link you posted - each socket is one licence.. therefore 1 8-core socket will count as 1 cpu licence
September 5, 2012 at 3:43 am
it supports 4 physical sockets , but each socket is allowed to be multi-core
so you can have 4 8-core processors (32 cores) if you want
September 5, 2012 at 3:42 am
i just did the same thing for a UDT (as per the original post) rather than a table type and you seem to be able to do it.... possibly because...
August 29, 2012 at 7:48 am
Viewing 15 posts - 991 through 1,005 (of 1,995 total)