Forum Replies Created

Viewing 15 posts - 31 through 45 (of 109 total)

  • RE: Life Logging

    Stephen Wolfram (inventor of WolframAlpha among many other things) already does 'life logging' - here's a quote from a revent interview with him:

    "I'm an information pack rat," he confesses. Recording...

  • RE: extact last 3 characters from a string

    my code was in response to this question:

    I want to split the string as below

    <all chars-3> space <last 3 chars>

    Eg: "ABCDEFG" should appear as "ABCD EFG"

    "ABC DEFGH" should appear as...

  • RE: extact last 3 characters from a string

    another method...

    DECLARE @txt VARCHAR(20)

    SELECT @txt = 'helloALL'

    select STUFF(@txt,LEN(@txt)-2,0,' ')

    🙂

  • RE: Comma separated Value

    Thanks for the additional 'speed tricks' Jeff... 🙂

    Btw - how does the performance of the 'FOR XML' method of extraction compare with other methods?

    Also, the last line of the above...

  • RE: Comma separated Value

    ...or to remove the trailing comma:

    DECLARE @emp VARCHAR(MAX)

    SELECT @emp = CAST

    (

    (

    SELECT [Empid] + ','

    FROM yourTable

    WHERE LEN([Empid])>0 AND [Empid] IS NOT NULL

    FOR XML PATH('') ...

  • RE: Comma separated Value

    how about...

    SELECT [Empid] + ','

    FROM yourTable

    WHERE LEN([Empid])>0 AND [Empid] IS NOT NULL

    FOR XML PATH('')

    is that method any faster?

  • RE: Quality of Outsourcing Staff

    Very true re: toasters - and just about all other consumer products

    The problem is also that many companies (i.e. the people in charge of running them) are only interested in...

  • RE: Quality of Outsourcing Staff

    @steve-2

    Maybe I should send him a large quantity of posts from this forum? There are plenty of Americans answering questions and doing work for people overseas here

    How ironic would it...

  • RE: Who created a new job on my server

    Hi - if the job contains one or more schedules, you may find a clue by running this query:

    SELECT

    sp2.[name] job_owner

    , sp.[name] scheduled_by

    , j.[name] ...

  • RE: Function Vs Inline Query

    my mistake - I didn't check to see which version of SQl you were using - apologies

    It works well for SQL 2005 though! :w00t:

  • RE: Function Vs Inline Query

    This will return a comma separated list:

    SELECT ',' + [columnName]

    FROM [TableName]

    WHERE id = @value

    FOR XML PATH ('')

    I have tested a similar query which works ok

  • RE: Quick report needed

    Sounds like you are running the query against one of the system databases such as 'master'.

    Make sure that you run the query against the database whose tables and columns...

  • RE: Help With a Cursor Please

    Similar situation here to that mentioned above by Ross

    I think that one of the main reasons that cursors are used is familiarity with procedural code rather than set-based code...

  • RE: advice on reindexing and resulting logfile growth

    ssismaddy:

    Shrinking Database or just the log??

    The job used DBCC SHRINKDATABASE - so both database and log files were shrunk.

    I have considered shinking the logfile after reindexing - but decided not...

  • RE: advice on reindexing and resulting logfile growth

    Hi Michael

    I'm running transaction log backups every hour - which has been sufficient to maintain a relatively small log file (500Mb) for daily transactions. The growth of the logfile to...

Viewing 15 posts - 31 through 45 (of 109 total)