Viewing 15 posts - 61 through 75 (of 919 total)
You might want to start here:
https://www.simple-talk.com/sql/t-sql-programming/bin-packing-problems-the-sql/
Mr. Celko is always an interesting read unless he happens to be answering a forum question.
December 18, 2013 at 2:25 pm
Yes, what Sean said, and:
Your 'where' clause in the update doesn't actually limit any rows in the table because it doesn't check any columns in the table. So it...
December 18, 2013 at 2:11 pm
If you remove all the case logic and just execute the query with the join intact, do you still get the duplicate rows?
December 12, 2013 at 3:04 pm
Can you post the actual function and the sql that's calling it?
December 5, 2013 at 11:44 am
The original definition would hold
1234567890123456.123456
The new definition won't. So if you have a number with greater than 14 positions left of the decimal, you'll get a message. That's...
October 31, 2013 at 1:03 pm
What does:
round(cast(sum(columnname) as numeric(5,3))*100.00,3)
give you?
October 16, 2013 at 3:14 pm
Haven't tried this, but you could set them up with the db_datareader role in the Model database. When Model is copied as the basis for any new database, the...
September 20, 2013 at 2:03 pm
I don't see where the code you posted could have generated that error. Is there another trigger on that table? How did you determine the error originated in...
September 19, 2013 at 4:26 pm
The create database is run in the context of the account under which the sql sever is running. Check the permissions for that account, not your account.
September 12, 2013 at 9:24 am
WOW! If you calculate the value of 1 point as the combined hourly rate of all the people who have posted about this question, SQL Server Central should probably...
September 11, 2013 at 3:47 pm
If the process loading the data is a scheduled job, I'd put the csv creation into the job as another step. If it's a user-initiated process, you could have...
September 11, 2013 at 10:42 am
If you're not doing any other summation or grouping, I'm not sure you'll find anything more efficient than the straight 'select' in my question. It would only touch the...
September 5, 2013 at 10:09 am
Not a solution, just a clarification, you need the cumulative total adding each month to the previous month like
select opco, region, country, jan as [jan],
...
September 5, 2013 at 9:53 am
So, normally I don't weigh in on stuff like this, but here goes. Your original post speculated that your difficulties were caused by the lack of brainpower at Microsoft,...
August 30, 2013 at 1:23 pm
A SQL Profiler trace might give them a clue, and if you can get the app into some kind of debug mode with verbose diagnostics, that might help also. ...
August 30, 2013 at 1:07 pm
Viewing 15 posts - 61 through 75 (of 919 total)