Forum Replies Created

Viewing 15 posts - 151 through 165 (of 608 total)

  • RE: Index/table rebuild

    Carl B. (11/8/2013)


    Hi Sean,

    It would be simpler to process all the tables. But let's say you can avoid rebuilding indexes on 5 to10 really big tables, it would reduce a...

    The SQL Guy @ blogspot[/url]

    @SeanPearceSQL

    About Me[/url]

  • RE: Index/table rebuild

    Carl B. (11/7/2013)


    GilaMonster (11/7/2013)


    Do your tables change definitions so often for this to be the primary concern and trigger for rebuilding indexes?

    Hi Gail,

    Yes. The contexte is the following :

    Application upgrade...

    The SQL Guy @ blogspot[/url]

    @SeanPearceSQL

    About Me[/url]

  • RE: Strange column names in execution plan

    curious_sqldba (11/7/2013)


    Keith Tate (11/6/2013)


    That is simply the name of the output (one of them) from the Compute Scalar operation right before the sort. Also, you have some carnality issues with...

    The SQL Guy @ blogspot[/url]

    @SeanPearceSQL

    About Me[/url]

  • RE: How are Sys.Object Object_IDs Allocated?

    http://technet.microsoft.com/en-us/library/ms143432.aspx

    Database objects include objects such as tables, views, stored procedures, user-defined functions, triggers, rules, defaults, and constraints. The sum of the number of all objects in a database cannot exceed...

    The SQL Guy @ blogspot[/url]

    @SeanPearceSQL

    About Me[/url]

  • RE: collation conflict in union conflict

    Instead of building one statement to execute, I would execute each statement into a temp table.

    CREATE TABLE #Indexes

    (DatabaseName SYSNAME,

    TableName SYSNAME,

    IndexName SYSNAME NULL,

    Reads INT,

    Writes INT,

    Rows INT);

    DECLARE @DatabaseName VARCHAR(50)

    DECLARE @sql NVARCHAR(MAX)

    DECLARE...

    The SQL Guy @ blogspot[/url]

    @SeanPearceSQL

    About Me[/url]

  • RE: Query Help

    You need to cast DM.DOCNUM in your where clause

    and CAST(DM.DOCNUM AS VARCHAR)+'-'+G.USER_GP_ID not in

    The SQL Guy @ blogspot[/url]

    @SeanPearceSQL

    About Me[/url]

  • RE: Query Help

    This will work for your sample data

    New table definition

    -- Add an IDENTITY ID column and a CategoryID column

    CREATE TABLE books

    (ID INT IDENTITY(1, 1) NOT NULL,

    CategoryID INT NULL,

    book_name VARCHAR(10),

    code VARCHAR(3),

    qty INT,

    day...

    The SQL Guy @ blogspot[/url]

    @SeanPearceSQL

    About Me[/url]

  • RE: Query Help

    Even with a category your next problem is row order. You mention a requirement to identify subsequent rows but there is no column that will allow you to identify subsequent...

    The SQL Guy @ blogspot[/url]

    @SeanPearceSQL

    About Me[/url]

  • RE: Strange column names in execution plan

    These are internal expressions produced when SQL Server executes the query.

    The SQL Guy @ blogspot[/url]

    @SeanPearceSQL

    About Me[/url]

  • RE: What Do You Want to Learn?

    Between September and October, I've attended 11 events in 7 cities and given 23 talks on 8 topics.

    We certainly don't get those kind of opportunities living in Africa, I envy...

    The SQL Guy @ blogspot[/url]

    @SeanPearceSQL

    About Me[/url]

  • RE: Query Help

    It's not possible with that design. You have no way to relate a book to a category at all. At the minimum you need a column to indicate the relationship...

    The SQL Guy @ blogspot[/url]

    @SeanPearceSQL

    About Me[/url]

  • RE: Today's Random Word!

    Bazinga

    The SQL Guy @ blogspot[/url]

    @SeanPearceSQL

    About Me[/url]

  • RE: Why query is performing good on recreating a function??

    I suspect parameter sniffing.

    http://sqlinthewild.co.za/index.php/2007/11/27/parameter-sniffing/

    The SQL Guy @ blogspot[/url]

    @SeanPearceSQL

    About Me[/url]

  • RE: Update SQL job step

    Do you want to update a notification or a step command?

    Notification

    sp_update_job [ @job_id =] job_id | [@job_name =] 'job_name'

    [, [@notify_level_email =] email_level ]

    ...

    The SQL Guy @ blogspot[/url]

    @SeanPearceSQL

    About Me[/url]

  • RE: Return image from file system as if it were in a blob column

    What about just sending the path to the app and letting the app worry about fetching the image?

    The SQL Guy @ blogspot[/url]

    @SeanPearceSQL

    About Me[/url]

Viewing 15 posts - 151 through 165 (of 608 total)