Forum Replies Created

Viewing 15 posts - 2,011 through 2,025 (of 2,894 total)

  • RE: Triggers vs Cursors

    MuraliKrishnan1980 (3/7/2012)


    Friends,

    I have a staging DB where there are around 100 History tables. These History tables are used to store History values of the updated records for the Main Tables....

  • RE: How to get the Manager by Manager in SQL

    --> IF "Senthil" ID Passes means, no record should display

    What about:

    INSERT INTO #ReportingToPerson VALUES (4, 'Karthik', 3)

    INSERT INTO #ReportingToPerson VALUES (5, 'Sanmugam', 3)

    ?

    Why they shouldn't be returned?

    What make them...

  • RE: Moving average for the last 4 records

    Would me more than happy to help if you could provide some DDL and data setup for your question. Please refer to the link at the bottom of my signature.

  • RE: Select columns dynamically

    Jeff Moden (3/6/2012)


    ...

    That's precisely what I was going to tell Eugene... the use of sp_ExecuteSQL doesn't necessarily mean that it prevents SQL Injection when someone uses it incorrectly. If...

  • RE: What causes parameter sniffing to start?

    GilaMonster (3/7/2012)


    paul.goldstraw (3/7/2012)


    However, I don't consider this, or any of the other solutions online to be true solutions. A real solution would be code that just works. Whether this...

  • RE: What causes parameter sniffing to start?

    paul.goldstraw (3/6/2012)


    ...Dynamic SQL is not an option as the industry I work in is quite security conscious, so I am not allowed to code for that

    ...

    Are you allowed to use...

  • RE: Multiple count() in a single SQL

    siva 20997 (3/6/2012)


    I accept that the first method is best

    Can we leave it at that

    No one argued with that :hehe:

    But I still advise you to read Jeff Moden's articles about...

  • RE: Best approach to let users create and manage their own tables and data

    Eric M Russell (3/6/2012)


    Eugene Elutin (3/6/2012)


    I would go with Eric M Russell's suggestion:

    Kill the project!

    Give your users MS Access if they want to abe able to create tables themselves.

    Unless...

  • RE: Multiple count() in a single SQL

    siva 20997 (3/6/2012)


    Line by Line code in Applications software is not thought of as good practice. It must be done in logical For next Loops etc and broken down niceley

    What...

  • RE: Best approach to let users create and manage their own tables and data

    I would go with Eric M Russell's suggestion:

    Kill the project!

    Give your users MS Access if they want to abe able to create tables themselves.

  • RE: Average date difference between two columns

    not much given...

    Select AVG(Datediff (day, StartDate, Lastattended)) as AverageTuitionDuration

    From PersonalFinance as PF

    Inner join PersonalProfiles as PP

    on PF.ContactID = PP.ID

    Where StartDate < Lastattended

  • RE: Multiple count() in a single SQL

    siva 20997 (3/6/2012)


    I agree that my code is little bit heavier on execution

    but there are a few reasons

    1) I come from a windows programming background and making the execution plan...

  • RE: Select columns dynamically

    jcb (3/6/2012)


    Eugene Elutin (3/6/2012)


    I have a gut feeling that this requirement comes from not very well thought out design.

    Me too...

    I cannot see why would you want to do what...

  • RE: Select columns dynamically

    I have a gut feeling that this requirement comes from not very well thought out design.

    I cannot see why would you want to do what OP has asked for. Even...

  • RE: Sql Server & MS Access database size

    zeeshandar (3/6/2012)


    Q#1: How can I find the size of my sql server database?

    Q#2: I have MS Access database of size 80 MB. If I move access db data to sql...

Viewing 15 posts - 2,011 through 2,025 (of 2,894 total)