Forum Replies Created

Viewing 15 posts - 706 through 720 (of 2,647 total)

  • RE: Select * into table2 from table1 - Performance Impact - what do u think?

    How many processors/cores? what is your istance's maxdop setting? What is the instance max memory setting?

    Jared
    CE - Microsoft

  • RE: Select * into table2 from table1 - Performance Impact - what do u think?

    Daxesh Patel (6/13/2012)


    anthony.green (6/13/2012)


    Daxesh Patel (6/13/2012)


    if table has a large size data, I think SELECT * INTO should be avoided due to its limitations.

    I would create New table ahead of...

    Jared
    CE - Microsoft

  • RE: Partition Question

    I'm pretty sure that you can (although I may be wrong). What I do know is that you cannot partition a table on the second column of a clustered...

    Jared
    CE - Microsoft

  • RE: Multiple Queries-Please Help

    Evil Kraig F (6/12/2012)


    SueTons (6/12/2012)


    Hi, I know that deleting a row can cause fragmentation since it creates free space within a page, also inserting can cause fragmentation due to page...

    Jared
    CE - Microsoft

  • RE: Partition Question

    jamie_collins (6/12/2012)


    Sorry maybe I should have elaborated...

    The actual table is 800 million + rows...

    The example is just a made up table for simplicity...

    I am curious as to how to get...

    Jared
    CE - Microsoft

  • RE: ETL sql job failure

    Looks like you are out of disk space...

    Jared
    CE - Microsoft

  • RE: Partition Question

    jamie_collins (6/12/2012)


    I have a table:

    CREATE TABLE Orders

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

    OrderDate DATETIME NOT NULL,

    OrderFreight MONEY NULL,

    ProductID INT NULL,

    CONSTRAINT PK_Orders PRIMARY KEY CLUSTERED

    (OrderID ASC, OrderDate ASC)

    )

    ...

    Jared
    CE - Microsoft

  • RE: Table design

    Express12 (6/12/2012)


    I have a table:

    id int

    project_id int

    primary bit

    with several entries per project --

    is there any way to set up a constraint that (project_id, primary) can only happen once when...

    Jared
    CE - Microsoft

  • RE: long running sp

    Marius.D (6/12/2012)


    That's what I read - Microsoft recommends MaxDOP set to 2 for servers with 4-8 procs (ours has 4). The Cost Threshold set to 25 allows longer running queries...

    Jared
    CE - Microsoft

  • RE: long running sp

    Why is your server MAXDOP set to 2? Why is your threshold set to 25? I'm not saying that they shouldn't be... I'm asking if you know why they are...

    Jared
    CE - Microsoft

  • RE: SQL Backup Fails.

    anon1m0us1 (6/12/2012)


    I stopped service, changed the ID to local, restarted service. Stopped the service and changed back to the service ID.

    How are you changing the login for the service? I...

    Jared
    CE - Microsoft

  • RE: Insert a record for every possible date within a range

    Eugene Elutin (6/12/2012)


    I guess, it's a kind of achievement to confuse KnowItAll one 🙂

    I wish that was true... I'm always confused, though less so since I have been on the...

    Jared
    CE - Microsoft

  • RE: How to ? Insert multiple records in a table from a single record in another table

    SteveEClarke (6/12/2012)


    Jared,

    That is exactly what I am saying .....

    Regards

    Steve

    Try this and also look up PIVOT and UNPIVOT T-SQL

    SELECT department, name

    INTO #temp

    FROM

    (SELECT department, name1, name2, name3, name4,...

    Jared
    CE - Microsoft

  • RE: How to ? Insert multiple records in a table from a single record in another table

    Maybe this is what you are saying?

    CREATE TABLE departments (Department char(20),

    Name1 char(20),

    Name2 char(20),

    Name3 char(20),

    Name4 char(20),

    Name5 char(20),

    Name6 char(20))

    CREATE TABLE unpivot (Department char(20),

    Name char(20))

    INSERT INTO departments

    SELECT 'Chemistry', 'Suzanne','Joe','Gertrude','Brett','Katie','Rebecca'

    AND you want results to...

    Jared
    CE - Microsoft

Viewing 15 posts - 706 through 720 (of 2,647 total)