Forum Replies Created

Viewing 15 posts - 61 through 75 (of 227 total)

  • RE: DBCC SHRINKFILE

    looks like there is high activity is going on that database. Try running this when no users are connected.

     

     

     


    Kindest Regards,

    Amit Lohia

  • RE: searching for value in the database

    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...


    Kindest Regards,

    Amit Lohia

  • RE: Return single value using Case and Group By

     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)


    Kindest Regards,

    Amit Lohia

  • RE: Upgrade failed - now wont install at all

    check files in this or similar folders

    C:\Program Files\Microsoft SQL Server\90\Setup Bootstrap\LOG

     


    Kindest Regards,

    Amit Lohia

  • RE: Upgrade failed - now wont install at all

    Post the error log file


    Kindest Regards,

    Amit Lohia

  • RE: Newbie question: how can I convert values from rows into columns

    I do not think it is possible in 1 query. You will need a loop or temp table / variable to solve this

     


    Kindest Regards,

    Amit Lohia

  • RE: The Bulb Man

    Thanks Mike

    but what if they are just a dot and the size is not big enough  to draw that kind of a line

     


    Kindest Regards,

    Amit Lohia

  • RE: The Bulb Man

    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...


    Kindest Regards,

    Amit Lohia

  • RE: The Bulb Man

    I wish someone have an answer better than mine (looking for 'out of the box' )

     

     


    Kindest Regards,

    Amit Lohia

  • RE: The Bulb Man

    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...


    Kindest Regards,

    Amit Lohia

  • RE: Anyone knew operator *=?

    Link server may be the cause for slow performance


    Kindest Regards,

    Amit Lohia

  • RE: Anyone knew operator *=?

    I think it is left outer join. I may be wrong


    Kindest Regards,

    Amit Lohia

  • RE: optional parameter

    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

    )

     


    Kindest Regards,

    Amit Lohia

  • RE: A Contest from APress

    I am not clear as who will be getting the books?


    Kindest Regards,

    Amit Lohia

  • RE: Free Text Query

    Well I still do not have an answer infact, now this scenario is working as an advantage for us


    Kindest Regards,

    Amit Lohia

Viewing 15 posts - 61 through 75 (of 227 total)