Forum Replies Created

Viewing 15 posts - 1,516 through 1,530 (of 6,036 total)

  • RE: Search Optomisation

    IF OBJECT_ID('tempdb..#PartsList', N'U') IS NOT NULL

    BEGIN

    DROP TABLE #PartsList;

    END;

    GO

    CREATE TABLE #PartsList

    (

    PartId INT...

  • RE: Search Optomisation

    What you actually search for is a string pattern within a number represented as a string using decimal notation.

    Therefore you'll be better off having PartNumber stored as a string and...

  • RE: tempdb filled from ETL process

    Siten0308 (4/7/2016)


    so i am inserting 1014193 rows, and it made a 175gig temp db data files grow

    Every record must fit into a single data page.

    A data page is 8K.

    1...

  • RE: Performance Impact of using Union in where clause

    SELECT top 10 * from XYZ x

    WHERE EXISTS (SELECT * FROM ABC a

    WHERE a.Col2 = x.Col1

    AND (Col3>date OR Col4>date OR Col5>date)

    )

    For this query (any version of it) to perform well...

  • RE: Search Optomisation

    DesNorton (4/5/2016)


    I have inherited a DB, and need to make some changes for a search proc.

    This app and DB are still in dev, and have not yet been published to...

  • RE: COMMA WITHIN NAME FIELD CAUSING COMMA-DELIMITED FILE IMPORT ERROR

    John Rowan (4/5/2016)


    I always prefer a non-comma delimited file. Pipes are nice, tilde is nice too.

    Unless those characters are used for something else.

    I used to import catalogue files...

  • RE: Sort alphanumeric value based on condition

    Jeff Moden (4/4/2016)


    ,NumPart = CAST(SUBSTRING(ID,1,SplitPos-1) AS INT)

    It will return the same zero value for "0A" and "A".

    I do not...

  • RE: Sort alphanumeric value based on condition

    Following data normalization rules actually helps.

    If numeric and alphabetic parts of the values are meant to be processed separately then they must be stored in separate columns.

    If you cannot make...

  • RE: mysterious slowdown every 4 minutes

    andrea.dimaio (4/4/2016)


    Now i've checked perfmon counter log bytes flushed/sec and i've seen that when the mistrious event happens,

    this counter GO DOWN. So it means that :

    - we have an external...

  • RE: Complicated performance issue

    nadersam (3/31/2016)


    First i would like to thank you Curious and Hugo for the detailed reply.

    I have updated statistics for both database for those 3 tables.

    The view still taking 3 sec...

  • RE: Creating a Dynamic Temp Table

    JediSQL (4/1/2016)


    Well, most of the data in the remote views does pass muster, so we end up pulling most of it. Thus, it is more efficient to get all...

  • RE: drop temp table owned in another session

    Luis Cazares (4/1/2016)


    Sergiy (3/31/2016)


    GilaMonster (3/31/2016)


    snomadj (3/31/2016)


    Can I drop a local temp table owned by myself in another session?

    No. Temp tables are session-scoped, you cannot access a temp table created in...

  • RE: Convert a string with an array of variables?

    drew.allen (3/31/2016)


    Hard-coding the translation table is not necessarily a bad idea if the translation table is relatively small and the table rarely, if ever, changes. You need to know...

  • RE: Convert a string with an array of variables?

    drew.allen (3/31/2016)


    I specifically said Inline Table-Valued Function, precisely because they are inlined. Scalar functions are never inlined, which is why it can make sense to create an inline table-valued...

  • RE: drop temp table owned in another session

    GilaMonster (3/31/2016)


    snomadj (3/31/2016)


    Can I drop a local temp table owned by myself in another session?

    No. Temp tables are session-scoped, you cannot access a temp table created in another session, not...

Viewing 15 posts - 1,516 through 1,530 (of 6,036 total)