Forum Replies Created

Viewing 15 posts - 46 through 60 (of 594 total)

  • RE: A SUM problem

    eamonroche,

    your proc looks ok. you may run into some performance problems further down the road if you're dealing with extremely high vlume datasets, but for now, everything...

  • RE: A SUM problem

    Go ahead and post your real script, and we'll take a look.

  • RE: Cannot persuade SQL to bypass Bitmap Create

    Thanks for the reply. I'll try that out...

    However, why would QA not effectively view the execution plan as the same as any other execution by the query optimizer? ...

  • RE: using variables in a view

    That's what stored procedures are for.

    --

    If you post the code, we can help convert it to a proc.

    Edited by - jpipes on 09/02/2003 12:49:51 PM

  • RE: A SUM problem

    The message about "aggregate.." means that you are including a SUM(someColumn) along with other columns without specifying a GROUP BY clause.

    --

    However, this is a perfect case for another resultset. ...

  • RE: FillFactor for Clustered Index on an identity col

    quote:


    I'm a little confused about this. Isn't the clustered index actually on the data pages? If you specify a fill...

  • RE: Query to get first number

    quote:


    ...just not sure what happens when it reaches the max size of size int...


    Gee, that's...

  • RE: QOD 29/08/2003

    quote:


    ALTER DATABASE Northwind

    SET SINGLE_USER

    WITH ROLLBACK AFTER 30 SECONDS

    Did they change this in SQL2K from SQL7? I ran it against my SQL7 server...

  • RE: pages clustered/non-clustered index

    quote:


    Will the datapages be read (while seeking the index) ?


    Yes, since b's index is clustered....

  • RE: SQL server Paging

    quote:


    Msgbox "Sorry, our programm does not fit for a user like you. Try somewhere else" ???


  • RE: Query to get first number

    Try it with NOT EXISTS instead of NOT IN:

    
    
    ...
    SELECT MIN(tt.TempID)
    FROM @Temp tt
    WHERE NOT EXISTS (SELECT * FROM tblBudgetYear)...
  • RE: Query to get first number

    
    
    CREATE PROCEDURE GetFirstAvailableBudgetID
    AS
    SET NOCOUNT ON
    --
    DECLARE @Temp TABLE ([TempID] INT IDENTITY(1,1))
    DECLARE @MaxCurrentBudget INT, @i INT
    -- Grab the highest current budget
    SELECT @MaxCurrentBudget = MAX(BudgetID) FROM tblBudgetYear
    -- Populate Lookup
    SET...
  • RE: Index for column with a lot of Null

    tikus,

    I was hoping that one of the more hardware-knowledgeable guys would have popped in to this thread by now, but alas, I guess not. I don't...

  • RE: Indexing single or multi columns?

    quote:


    Select A.a3, B.b3

    from A inner join B on A.a1 = B.b1 and A.a2 = B.b2

    --

    The performance is not impressive (both tables...

  • RE: FillFactor for Clustered Index on an identity col

    The fillfactor setting for a clustered index on IDENTITY field can be set extremely high (95% - 99%), since there it is HIGHLY unlikely that a clustering key will be...

Viewing 15 posts - 46 through 60 (of 594 total)