Viewing 15 posts - 1,516 through 1,530 (of 2,647 total)
The account column is an int, so you must convert or cast it before looking at only the first 2 numbers. Personally, if you can change this, I would...
March 5, 2012 at 3:00 pm
There are 7 days in a week, every week. So that one is easy. Why not just store these values in a separate table as a reference table? Like...
March 5, 2012 at 2:43 pm
GilaMonster (3/5/2012)
Why complicate matters? It's the number of cores available to SQL Server, SQL doesn't care about the number of sockets.Also consider measuring inaccuracies.
Good point 🙂 Thanks!
March 5, 2012 at 2:24 pm
Thanks for the quick responses. So basically, the maximum CPU time is a function of #cores/cpu * #cpus * elapsed time. Of course it can be lower than...
March 5, 2012 at 2:07 pm
WHERE sys.dm_exec_requests.total_elapsed_time > 5
March 5, 2012 at 9:28 am
capn.hector (3/2/2012)
March 2, 2012 at 5:31 pm
So, you want to look at the number of months between posting date and end date and basically copy data for each month remaining except that posting date should be...
March 1, 2012 at 2:33 pm
If you are that concerned about performance... why not split it into a couple of separate update statements and get rid of your OR conditions?
March 1, 2012 at 2:23 pm
Elliott Whitlow (3/1/2012)
March 1, 2012 at 2:21 pm
aurato (3/1/2012)
SQLKnowItAll (3/1/2012)
aurato (3/1/2012)
SQLKnowItAll (3/1/2012)
March 1, 2012 at 12:17 pm
aurato (3/1/2012)
SQLKnowItAll (3/1/2012)
March 1, 2012 at 11:28 am
GSquared (3/1/2012)
SQLKnowItAll (3/1/2012)
The semi-colon at the start of his query is actually bad when demonstrating the method used for creating a CTE. It's there to terminate the previous statement but...
March 1, 2012 at 10:15 am
Umm... Unless I missed something, you are trying to change the data type on a production table that is accessed by Great Plains? I'm not so sure it is a...
March 1, 2012 at 10:03 am
Let me ask you this... Is this database accessed by a 3rd party application? The application itself may be sending this command.
March 1, 2012 at 9:57 am
Are you sure that the jobs are failing? I don't know your level of experience, so let me ask how you have determined that alerts should be sent; i.e. how...
March 1, 2012 at 9:55 am
Viewing 15 posts - 1,516 through 1,530 (of 2,647 total)