Viewing 15 posts - 10,036 through 10,050 (of 18,923 total)
No need for a UDF :
SELECT (col1 * 1.0/col2 * 100) AS percentage FROM table1
March 14, 2007 at 7:21 am
That's a good point but what does the identity have to do with rowcount?
March 13, 2007 at 1:39 pm
Well yes there is, but probably not for what you need.
Can you take the time to post some sample data and the exact required output from that data. We'll get...
March 13, 2007 at 11:24 am
Does this solve your problem?
Select product_id, product_name, units_in office + units_at owner + units_on sale AS Total from dbo.Products
March 13, 2007 at 9:03 am
Or this would actually be an approved use of the identity propriety by our friend Joe Celko... but I wouldn't add the identity without the date. I can't explain why, but that's...
March 13, 2007 at 7:48 am
Ya but you still have to recreate the whole db somehow without losing any data. I'm sure there's a way to automate this task without causing too much grief on...
March 13, 2007 at 6:32 am
I've pretty much run out of options at this point. The best way you have to see the problem is to use the debug option in query analyser and go...
March 13, 2007 at 5:42 am
Without even going to 3 gig. Asking fro an extra 2 gig (around 200$) to improve your moral and performance is not a waste of money. Especially if you can...
March 13, 2007 at 5:39 am
So what are you suggesting?
3 gig of ram + 1 gig swap?
March 12, 2007 at 10:20 pm
Assuming the code works. Is it possible you have a deadlock somewhere?
Or is it possible that you have a silent failure in the child procedures?
Do you have triggers on any...
March 12, 2007 at 9:44 pm
I think Mohammed is right. However have you tried simply deleting the UDTs?
If that doesn't work maybe you would be able to just unbind them which would be much faster...
March 12, 2007 at 9:32 pm
Soryr for the incomplete answer but that should be enough to get you started.
I'm assuming here that you have a numbers table set up (with the numbers from 1 to...
March 12, 2007 at 2:06 pm
A different sql server database can be accessed like this :
use master
go
Select * from msdb.dbo.sysObjects.
Would this solve the current problem of database access?
Sorry for asking so many questions but...
March 12, 2007 at 1:53 pm
No clue. I've been a developper all my career but then again, I never really looked for a DBA job. If you are strictly asking for a dev job that...
March 12, 2007 at 1:51 pm
That's pretty easy (unless I don't have all the requirements for the problem).
All you need is the have this data in a derived table select :
Id1, id2, RowsNum
then you...
March 12, 2007 at 1:49 pm
Viewing 15 posts - 10,036 through 10,050 (of 18,923 total)