Forum Replies Created

Viewing 15 posts - 42,796 through 42,810 (of 49,566 total)

  • RE: appropriate use of triggers

    I typically use triggers for auditing, though that use is getting reduced or eliminated on SQL 2008.

  • RE: how to configure sql server memory

    You've left a lot of important information out.

    32 bit? 64 bit?

    What OS

    What edition of SQL 2005?

    How much memory does the server have?

  • RE: temp table vs subquery

    Jeff Moden (11/29/2008)


    Your good explanation is, of course, the most accurate... I was just trying to give a 30,000 ft overview.

    No prob. I was just worried that someone...

  • RE: CLR Stored procedure without visual studio?

    Jonathan Kehayias (11/29/2008)


    GilaMonster (11/29/2008)


    Does anyone know if Visual Studio Express allows database projects?

    Gail,

    The Visual Studio Express Editions don't include database projects in them, at least the last time I checked...

  • RE: Minatanace plan for backup

    Hmm. That almost looks like the main plan's corrupted. Can you try recreating it? Can you also try backing up to that device not using the maint plan?

  • RE: Are the posted questions getting worse?

    rbarryyoung (11/29/2008)


    Like everyone else, I don't know everything, even in SQL Server (well, Gail might know everything, she's pretty darn close)

    Hell, no! Plenty areas I don't know well (and that's...

  • RE: stored procedure---finding all tables that contain a specific column

    Two more things.

    Stored procedures should not be created with the sp_ name, That's for system procedures and means that SQL will look in one of the system databases first for...

  • RE: Critical issues detected by SQL Server BPA

    TCP Chimney I don't know. May I suggest a google search?

    As for CU9, providing you're on SP2 (which I assume you are), you can request the cumulative update from microsoft....

  • RE: stored procedure---finding all tables that contain a specific column

    You're passing the value invoiceid to the procedure, but you're doing nothing with it within the procedure.

    If you want to use the parameter to filter the query, it needs...

  • RE: Stored procedure- help with date parameter validation

    I'd guess there's no data for the period in 2008 within the invoices table.

  • RE: temp table vs subquery

    Jeff Moden (11/29/2008)


    So you're saying that a derived table takes no memory?

    Considering that a derived table in a query isn't usually executed in 2 steps (ie, the query processor doesn't...

  • RE: Are the posted questions getting worse?

    I used to have some of mine in my sig. Not a laundry list. Just 2 or 3. I put them there after a bad experience (on another forum) where...

  • RE: Stored procedure- help with date parameter validation

    If @DateMin < @DateMax

    Begin

    (Select InvoiceNumber, InvoiceDate, InvoiceTotal, InvoiceTotal-PaymentTotal-CreditTotal AS Balance

    That bracket right after the begin that shouldn't be there.

    InvoiceDate < @DateMax+1

    Meaning 1 day later than the datemax that the user...

  • RE: Stored procedure- help with date parameter validation

    t-pinto (11/29/2008)


    If @DateMin < @DateMax

    Begin

    (Select InvoiceNumber, InvoiceDate, InvoiceTotal, InvoiceTotal-PaymentTotal-CreditTotal AS Balance

    From Invoices

    Order By InvoiceDate

    END

    The rest looks good (other than the varchar types)

    What do you want to do with the resultset...

  • RE: temp table vs subquery

    Jeff Moden (11/28/2008)


    Before folks get into what could be a heated debate, Table Variables, Temp Tables, and Derived Tables (sub queries in the FROM clause) all live in the same...

Viewing 15 posts - 42,796 through 42,810 (of 49,566 total)