Forum Replies Created

Viewing 15 posts - 3,916 through 3,930 (of 8,761 total)

  • RE: Need direction with DB table structure, denormalize?, and using SSIS and XML

    Quick thoughts, do you have an XSD for the XML? If that exists then it's normally the best starting point for modelling the database schema.

    😎

    Bulk loading the XML into...

  • RE: Are the posted questions getting worse?

    Greg Edwards-268690 (1/21/2016)


    Steve Jones - SSC Editor (1/21/2016)


    Greg Edwards-268690 (1/21/2016)


    It seems he has an elephant on the menu, and a 6 quart pot to cook it in.

    But refuses to start...

  • RE: Flag Values Based on Columns

    Sergiy (1/21/2016)


    MMartin1 (1/21/2016)


    That would make sense since this table is a heap. The ID column is not really an identifyer in this situation. We are not recommending a practice of...

  • RE: Find foreign alphabet characters in a column

    TJT (1/21/2016)


    Just identify them

    Here is how

    😎

    USE tempdb;

    GO

    SET NOCOUNT ON;

    DECLARE @TEST_STRING NVARCHAR(4000) = N'ABCDEFG?Ô?1234567Ò???HIJKLM]? ?NOP??60987654321';

    ;WITH T(N) AS (SELECT N FROM ( VALUES (0),(0),(0),(0),(0),(0),(0),(0),(0),(0)) AS X(N))

    , NUMS(N) AS (SELECT TOP(LEN(@TEST_STRING)) ROW_NUMBER()...

  • RE: Find foreign alphabet characters in a column

    TJT (1/21/2016)


    I want to find any non latin chartacters: cyriliic, chineese, Japanese, ect

    Identify them or simply remove them?

    😎

  • RE: number

    Quick suggestion

    😎

    select

    A.a

    ,A.b

    ,DENSE_RANK() OVER

    (

    ...

  • RE: Un-partition and decompress tables

    Roust_m (1/20/2016)


    Hi,

    I am planning to un-partition and decompress some large tables to be able to use standard edition of SQL Server.

    Given that not clustered indexes get rebuilt when a clustered...

  • RE: Separating instances by webserver accessibility

    chuck.forbes (1/20/2016)


    We're re-examining our database server security architecture, as we are starting to migrate our older databases to MSSQL 2012 and 2014. One of the Developers mentioned that a prior...

  • RE: RECREATE AN ID OF A ROW AFTER BEING DELETED

    GilaMonster (1/20/2016)


    My question would be 'why'?

    +1

    😎

    Didn't want to open that Pandora's box

  • RE: Find Latest Date from Multiple Columns

    Eric M Russell (1/20/2016)


    Here you go. It's entirely possibly for multiple rows, or multiple columns within the same row, to tie for having highest date, so it will potentially return...

  • RE: Clustered Index Scan

    GilaMonster (1/20/2016)


    Table definition, index definitions and execution plan please.

    But first, is the query really a problem?

    Sorry Gail, didn't see your post, makes mine look kind of daft:-P

    😎

  • RE: Clustered Index Scan

    bebe022476 (1/20/2016)


    How to optimise the following query, it's doing a Clustered Index Scan (Clustered).

    select document.DocumentID as 'document.document.id',

    document.DocFolderID as 'document.document.folderID',

    document.FileName as 'document.document.description',

    document.FileSize as 'document.document.fileSize',

    document.ModifiedDate as 'document.document.modifiedDate',

    document.TableName as 'document.document.tableName',

    document.EntityCode as 'document.document.entityCode'

    from...

  • RE: Find Latest Date from Multiple Columns

    below86 (1/20/2016)


    You could use something like this to just find the max date of those columns, it won't get you the column name though. I found this on another...

  • RE: RECREATE AN ID OF A ROW AFTER BEING DELETED

    abdellahmoh2016 (1/20/2016)


    HI ALL

    I'm new in T-SQL so i need your help

    My problem is : After deleting a row , is there a way to retrieve the ID of that row...

  • RE: Find Latest Date from Multiple Columns

    Jacob Wilkins (1/20/2016)


    If all we care about is the max date for each ID, it should be close between those and the CASE, if the CASE version is also modified...

Viewing 15 posts - 3,916 through 3,930 (of 8,761 total)