Viewing 15 posts - 61 through 75 (of 227 total)
looks like there is high activity is going on that database. Try running this when no users are connected.
Amit Lohia
May 17, 2006 at 3:16 pm
Yes, you can write a procedure to do. It should take around 1-2 hours to write.
Loop throught each database and then throught each table. Dynamically create sql statement to search...
Amit Lohia
May 17, 2006 at 9:41 am
Try this
SELECT
SUM(CASE WHEN Type = 0 THEN (SUM(NetSales)) ELSE (SUM(NetSales) * - 1) END)
FROM dbo.Orders
GROUP BY MONTH(InvoiceDate), YEAR(InvoiceDate), Type
HAVING (MONTH(InvoiceDate) = @MonthNo) AND (YEAR(InvoiceDate) = @YearNo)
Amit Lohia
May 16, 2006 at 3:32 pm
check files in this or similar folders
C:\Program Files\Microsoft SQL Server\90\Setup Bootstrap\LOG
Amit Lohia
May 16, 2006 at 12:03 pm
Post the error log file
Amit Lohia
May 16, 2006 at 10:35 am
I do not think it is possible in 1 query. You will need a loop or temp table / variable to solve this
Amit Lohia
May 15, 2006 at 11:33 am
Thanks Mike
but what if they are just a dot and the size is not big enough to draw that kind of a line ![]()
Amit Lohia
May 12, 2006 at 11:28 am
As I mentioned in my solution we do not have a real good logical answer but after reading other answer LIKE , break the wall, smash the bulb , pull the...
Amit Lohia
May 12, 2006 at 11:04 am
I wish someone have an answer better than mine (looking for 'out of the box'
)
Amit Lohia
May 11, 2006 at 5:33 pm
Steve
Just want to confirm is the answer logical or something stupid like
you switch on light switch for "room one" wait for 10 minutes , go to 2nd room switch on light switch...
Amit Lohia
May 11, 2006 at 5:03 pm
Link server may be the cause for slow performance
Amit Lohia
May 4, 2006 at 3:07 pm
I think it is left outer join. I may be wrong
Amit Lohia
May 4, 2006 at 12:04 pm
If I am not mistaken. To make a parameter optional you have to pass a default value or NULL.
for example
Create proc ABC
(
@Parameter1 INT = NULL
)
Amit Lohia
May 3, 2006 at 3:53 pm
I am not clear as who will be getting the books?
Amit Lohia
May 3, 2006 at 3:07 pm
Well I still do not have an answer infact, now this scenario is working as an advantage for us![]()
Amit Lohia
May 2, 2006 at 3:35 pm
Viewing 15 posts - 61 through 75 (of 227 total)