Viewing 15 posts - 976 through 990 (of 1,993 total)
yes all of them - originally i posted 6 servers, but it's actually 18.. the other 50 or so servers (all win 2008 datacentre with sql 2008 sp3) seem...
MVDBA
September 7, 2012 at 2:55 am
exactly!!!
what if you only needed to delete 1%... i was just wondering if there was any specific Windowing issue that you know of (like Jeff's stuff about recursive CTE)
MVDBA
September 6, 2012 at 8:56 am
Eugene Elutin (9/6/2012)
MVDBA (9/6/2012)
example 2 wont work -you'll end up with a table called demo1 not demo
Are you serious? :w00t:
It is just an EXAMPLE 🙂
So, I've named the table in...
MVDBA
September 6, 2012 at 8:20 am
Eugene Elutin (9/6/2012)
MVDBA (9/6/2012)
eugene... just out of interest... why avoid the windowing???Because using them may be slower then implementation without them...
hmmm.... yes, but also alternate solutions might use other resources...
MVDBA
September 6, 2012 at 8:18 am
Luis Cazares (9/6/2012)
You can change the name to #demo.
If you...
MVDBA
September 6, 2012 at 8:15 am
a couple of options then
.. is the field in the database a date or datetime field?
.. is your report passing dates in the wrong format ... easy to test...
MVDBA
September 6, 2012 at 7:58 am
example 2 wont work -you'll end up with a table called demo1 not demo
MVDBA
September 6, 2012 at 7:44 am
eugene... just out of interest... why avoid the windowing???
MVDBA
September 6, 2012 at 7:41 am
GilaMonster (9/6/2012)
Before you do anything else...It's not a space issue, it's a complete lack of log management.
+1 gail ---- READ THE ARTICLE
MVDBA
September 6, 2012 at 5:59 am
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.
MVDBA
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...
MVDBA
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...
MVDBA
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
MVDBA
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
MVDBA
September 6, 2012 at 5:08 am
Viewing 15 posts - 976 through 990 (of 1,993 total)