Forum Replies Created

Viewing 15 posts - 256 through 270 (of 562 total)

  • RE: Processing strings.

    First of all thanks to all the contributors of this thread.

    Allthough this thread and all the links (and indirect links) is a bit overwelming.

    I have allready learned a lot and...

  • RE: Processing strings.

    Jeff Moden (4/1/2016)


    Sachin Nandanwar (3/31/2016)


    Why would you want to do string processing using TSQL ? Please see the attached image. I wrote this in C# in less than 20 minutes.It...

  • RE: Processing strings.

    As Promissed this is what I reached on Friday, but now cleaned.

    It is still not 'complete'.

    Known problems:

    Performance.

    In some situations where a string is started with a double qoute, this is...

  • RE: Processing strings.

    Sachin Nandanwar (3/31/2016)


    Why would you want to do string processing using TSQL ? Please see the attached image. I wrote this in C# in less than 20 minutes.It can be...

  • RE: Processing strings.

    Eirikur Eiriksson (3/26/2016)


    Alan.B (3/25/2016)


    Are you really on SQL Server 2008? If you were using SQL 2012 this article would get you 90% there:

    http://www.sqlservercentral.com/articles/SQL+Server+2012/106903/[/url]

    I would say more like 99.99% there:-D

    😎

    The...

  • RE: Processing strings.

    Luis Cazares (3/25/2016)


    It doesn't need to be a comma or a semicolon. You could use different control characters that are unlikely to be in any current text. Read the "Unlikely...

  • RE: Processing strings.

    Luis Cazares (3/25/2016)


    In my opinion, you would be better fixing the process that creates the string. Something as simple as changing the delimiter would solve all the headaches.

    Probably most CSV's...

  • RE: Processing strings.

    Alan.B (3/25/2016)


    Are you really on SQL Server 2008? If you were using SQL 2012 this article would get you 90% there:

    http://www.sqlservercentral.com/articles/SQL+Server+2012/106903/[/url]

    Thanks for the link. I have to process this,...

  • RE: even and odd records

    mehta.saurabhj (3/2/2013)


    The sql code to find odd number of records is:

    select * from emp where (rowid,1) in (select rowid, mod(rownum,2) from emp);

    But if I do the foll code for odd...

  • RE: Sql Server Indexes - BTree Or B+ Tree

    According to Knuth's definition, a B-tree of order m is a tree which satisfies the following properties:

    1. Every node has at most m children.

    2. Every non-leaf node (except root) has...

  • RE: Extracting time from datetime adds a second? Why?

    Hugo Kornelis (2/28/2016)


    You write that it is important for your project to show the exact time - so why not stop the rounding/truncating completely and show milliseconds as well? (Note...

  • RE: current and time-expired rows.

    Found a solution with an indexed view.

    Both selections on a recent period and on a period in the past perform fast.

    The indexed view:

    CREATE VIEW dbo.Vtesttable_recent

    WITH SCHEMABINDING AS

    SELECT

    ...

  • RE: current and time-expired rows.

    ChrisM@Work (2/23/2016)


    Just to clarify, Ben - it's this system you are attempting to tune:

    No, not limited to this system. More to get some good grip range queries. (With variations.)

    this...

  • RE: current and time-expired rows.

    ChrisM@home (2/22/2016)


    Hi Ben

    The model system you have posted - does this model a production system or a system in development?

    Assuming it's in development:

    The model (from another thread) is to learn...

  • RE: current and time-expired rows.

    We have a number of 'models':

    Legacy: Build in house the operating system and the DBMS, running since 1973.

    SQL-server 1: In house designed/build database. (From the second part of the 90ties)

    SQL-server...

Viewing 15 posts - 256 through 270 (of 562 total)