Viewing 15 posts - 2,341 through 2,355 (of 6,037 total)
That's the question to the customer, not to this forum.
There is no point to discuss an implementation if it's not clear how customer wants to see it.
_____________
Code for TallyGenerator
September 3, 2010 at 8:59 pm
It only confirms that such a lame database design is not good enough for you.
_____________
Code for TallyGenerator
September 2, 2010 at 5:18 pm
What you need is a clusted index on [DW_PROD].[dbo].[SPF053_SALES] (dwyear, dwweek, dw_dow, dwstore)
Then your query will return results instantly.
But schedule index creation for weekend: on a table with 900 mil...
_____________
Code for TallyGenerator
August 30, 2010 at 9:01 pm
Check for triggers on the table.
_____________
Code for TallyGenerator
August 30, 2010 at 7:41 am
the original poster wanted to keep the same set of values in the ID column
IDENTITY property on ID column suggests otherwise.
_____________
Code for TallyGenerator
August 26, 2010 at 11:18 pm
Can you explain this sequence?
18271999 2010-08-03 07:49:00.000
18271988 2010-08-03 07:51:00.000
And what should happen after 08:05:00.000?
Should the next record be after 08:10:00.000?
Or should it be the first record of the next 5...
_____________
Code for TallyGenerator
August 26, 2010 at 8:21 pm
Answer on both questions - yes.
_____________
Code for TallyGenerator
August 6, 2010 at 10:46 pm
This should be more effective:
select main.sno, main.name, L.address
from main
inner join (
select sno, max(loca.address) address
...
_____________
Code for TallyGenerator
July 29, 2010 at 8:11 pm
You might also wish to consider using osql or isql for exporting files with headers.
Check BOL for details and syntax.
_____________
Code for TallyGenerator
July 29, 2010 at 8:03 pm
DISTINCT is not a silver bullet.
It's quite opposite.
I'd suggest not to use it in production code at all. Ever.
DISTINCT/GROUP BY is applied after all joins and WHERE clause.
If you have...
_____________
Code for TallyGenerator
July 25, 2010 at 8:12 pm
Can you post full text of procedure f_StockItemDepoQuantitySelect?
Or at least first 70 rows, where the error happens.
_____________
Code for TallyGenerator
July 16, 2010 at 8:16 pm
Remove trigger "using inserted". You don't need it.
Use "using deleted" only.
Put
SELECT * FROM inserted
SELECT * FROM deleted
into the trigger code.
Those table exist only while trigger is running and...
_____________
Code for TallyGenerator
July 8, 2010 at 9:26 pm
I believe both solutions are identical and work perfectly for the request.
Only issue I can see here is that Ken@Work did not bother to read and understand either of them.
_____________
Code for TallyGenerator
July 6, 2010 at 2:00 pm
And though you cannot declare a variable longer than 8000 characters in SQL2000 you still can declare a SP parameter with type "text" ot "ntext".
Then you can pass the whole...
_____________
Code for TallyGenerator
July 1, 2010 at 8:33 pm
Did you check the flow?
What's gonna happen if the first statement returns an error?
Your code will rollback transction and continue - then what?
This way it should work:
SET NOCOUNT ON;
DECLARE @ErrNo...
_____________
Code for TallyGenerator
July 1, 2010 at 8:10 pm
Viewing 15 posts - 2,341 through 2,355 (of 6,037 total)