Viewing 15 posts - 991 through 1,005 (of 1,999 total)
simple
2 options
shrink the log or get more disk space (possibly by moving the log or data files) - both of which need access to the server.
September 6, 2012 at 5:59 am
ok - you've switched back from sum to average now - so i've modified to do both
think about what you are grouping by ---- you've still got convert(varchar(20)....) in there...
September 6, 2012 at 5:56 am
sorry chap , that means the information you have posted is useless... if you don't have access to the server then how are you going to fix it anyway...
September 6, 2012 at 5:35 am
ok - so change your grouping and, order by and select to use
DATEPART(hh,mydatecolumn)
i'm sure you can then figure out how to display the date in the query
September 6, 2012 at 5:31 am
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
Viewing 15 posts - 991 through 1,005 (of 1,999 total)