Forum Replies Created

Viewing 15 posts - 6,646 through 6,660 (of 15,381 total)

  • RE: Dropping/Recreating Clustered Index

    Gabe T. (10/1/2013)


    Hi SSC,

    I've got a table with a clustered index which needs to be dropped and recreated to add an additional column to it. The table also has three...

  • RE: Optimize join to return single value from (one to many)

    mario17 (10/1/2013)


    Hi,

    I need to get column from JOINed table but its one to many so I need to select only single instance for c2 , to keep original...

  • RE: ORDER BY, Bad form?

    SQL_FS (10/1/2013)


    Sean Lange (10/1/2013)


    SQL_FS (9/30/2013)


    SELECT string, category

    FROM @SampleData

    ORDER BY

    CASE WHEN category % 7 = 0 THEN 1

    WHEN category % 3 = 0 THEN 2

    ELSE 3

    END ASC

    , string ASC

    This is NOT...

  • RE: Are the posted questions getting worse?

    jcrawf02 (10/1/2013)


    Grant Fritchey (10/1/2013)


    jasona.work (10/1/2013)


    Grant Fritchey (10/1/2013)


    Please. For purposes of employment, some of us cannot comment on politics because no matter what side I argue for, I'll yack off a...

  • RE: Are the posted questions getting worse?

    Stefan Krzywicki (10/1/2013)


    jcrawf02 (10/1/2013)


    Stefan Krzywicki (10/1/2013)


    Brandie Tarvin (10/1/2013)


    Stefan Krzywicki (10/1/2013)


    I now know why people hire wedding planners. Wow, this is a lot of work.

    Yes. Yes it is. And you'll kick...

  • RE: Slow Script

    easy_goer (10/1/2013)


    Hello. I ran the following script that too 3 hours 25 minutes to insert about 40,000 rows. Is there any logic that I can put into this...

  • RE: Are the posted questions getting worse?

    Stefan Krzywicki (10/1/2013)


    Sean Lange (10/1/2013)


    Stefan Krzywicki (10/1/2013)


    I now know why people hire wedding planners. Wow, this is a lot of work.

    haha. I picked the band, the food and the tuxedos....

  • RE: Are the posted questions getting worse?

    Stefan Krzywicki (10/1/2013)


    I now know why people hire wedding planners. Wow, this is a lot of work.

    haha. I picked the band, the food and the tuxedos. Other than that the...

  • RE: Script for columns' name, data type, length for one table

    --edit--

    wrong post.

  • RE: ORDER BY, Bad form?

    SQL_FS (9/30/2013)


    SELECT string, category

    FROM @SampleData

    ORDER BY

    CASE WHEN category % 7 = 0 THEN 1

    WHEN category % 3 = 0 THEN 2

    ELSE 3

    END ASC

    , string ASC

    This is NOT ordering by ordinal...

  • RE: ORDER BY, Bad form?

    T.Ashish (9/30/2013)


    If ordinal position of column is used instead of column name, then a new programmer will always have to look into the table to find out which column is...

  • RE: SQL to list the headers in a table?

    jpnasab 81740 (9/30/2013)


    Create function [dbo].[AF_TableColumns](@table_name nvarchar(55))

    returns nvarchar(4000) as

    begin

    declare @str nvarchar(4000)

    select @str = cast(rtrim(ltrim(column_name)) as nvarchar(500)) + coalesce('' + @str , '')

    from information_schema.columns

    where table_name = @table_name

    group by table_name, column_name, ordinal_position...

  • RE: Backuping Stored procs of the Database by using scripts

    raj.prabhu001 (9/30/2013)


    hi all,

    i want to create a script to backup the stored procs of the database plz suggest.

    Do you not already backup the database??? All the procs will be in...

  • RE: deleting all data\logins\views

    homebrew01 (9/30/2013)


    could you do "truncate table" instead of delete ? Should be faster, and no logging since you don't care about data recovery.

    Faster yes...but truncate is a fully logged...

  • RE: Passing external sproc params to internal variables - Explanation?

    amenjonathan (9/30/2013)


    I think I worded my post wrong, because it is exactly parameter sniffing. Once I passed the externals to internals the sproc ran very fast. Thanks!

    Cool glad we were...

Viewing 15 posts - 6,646 through 6,660 (of 15,381 total)