Forum Replies Created

Viewing 15 posts - 5,611 through 5,625 (of 8,761 total)

  • RE: string query help

    Sean Lange (4/15/2015)


    Eirikur Eiriksson (4/14/2015)


    Sean Lange (4/14/2015)


    Eirikur Eiriksson (4/14/2015)


    ztoddw (4/14/2015)


    This way is probably more efficient-

    declare @STRING varchar(1000);set @STRING='100010111100010001';

    select pos=ltrim(str(n))+'-'+ltrim(str(len(sub)-len(ltrim(replace(replace(sub,' ','~'),'0',' ')))+n-1))

    from (select n=number, sub=substring(@STRING,number,len(@STRING))

    from master.dbo.spt_values where type='P'

    and (number between...

  • RE: Today's Random Word!

    SQLRNNR (4/15/2015)


    xylotomist

    Forensics

  • RE: string query help

    ztoddw (4/14/2015)


    I admit I don't know for sure that it's more efficient- it just seems like your solution was doing more work than it needed to- although I'm not sure...

  • RE: Today's Random Word!

    Ed Wagner (4/15/2015)


    whereisSQL? (4/15/2015)


    crookj (4/15/2015)


    Ed Wagner (4/15/2015)


    SQLRNNR (4/15/2015)


    Ed Wagner (4/15/2015)


    Revenant (4/15/2015)


    Eirikur Eiriksson (4/15/2015)


    SQLRNNR (4/15/2015)


    calumniate

    NOLOCK

    Hint

    Clue

    colonel

    Mustard (if I got the reference right)

    Peacock

    Feather

    Duster

    Dodge

  • RE: Loop through each instance on a server

    Just ran your code on a multi instance box (10 running and 4 not running), all showing up in the results, could this be a permission issue?

    😎

    BTW: the services not...

  • RE: Known issues with SQL Server 2012 and SSD?

    paul.connors 70350 (4/15/2015)


    Thanks for the swift reply, I'm thinking along the same lines myself, unfortunately the cursory scan of the event logs etc revealed not much detail at all and...

  • RE: Running an update from inside a cursor

    tarr94 (4/15/2015)


    Hi,

    I'm a bit puzzled. I have a stored procedure with a cursor and while loop. I have two update statements that update the same table. If...

  • RE: Known issues with SQL Server 2012 and SSD?

    paul.connors 70350 (4/15/2015)


    Hi

    I'm just looking for a little feedback from out there in the wilderness, here's my situation.

    5 months ago added locally attached SSD storage

    •741148-B21 - HP 200GB 12G SAS...

  • RE: Loop through each instance on a server

    SQLHeap (4/15/2015)


    I don't want to start anything, just trying to get info. I'd like to stay with a SQL query.

    without any parameters it only lists the services, should be...

  • RE: Loop through each instance on a server

    Quick thought, how about cmd net start and parse the output?

    😎

  • RE: Today's Random Word!

    SQLRNNR (4/15/2015)


    calumniate

    NOLOCK

  • RE: Today's Random Word!

    SQLRNNR (4/14/2015)


    cabalistic

    Others

  • RE: disk getting full

    Zeal-DBA (4/14/2015)


    my update query updating approx 50 million record which is causing transaction log to grow, and filling disk space and finally transaction is failing, please suggestany worl around.

    Further on...

  • RE: string query help

    Sean Lange (4/14/2015)


    Eirikur Eiriksson (4/14/2015)


    ztoddw (4/14/2015)


    This way is probably more efficient-

    declare @STRING varchar(1000);set @STRING='100010111100010001';

    select pos=ltrim(str(n))+'-'+ltrim(str(len(sub)-len(ltrim(replace(replace(sub,' ','~'),'0',' ')))+n-1))

    from (select n=number, sub=substring(@STRING,number,len(@STRING))

    from master.dbo.spt_values where type='P'

    and (number between 1 and len(@STRING))) t

    where...

  • RE: Today's Random Word!

    Revenant (4/14/2015)


    djj (4/14/2015)


    Eirikur Eiriksson (4/14/2015)


    Ed Wagner (4/14/2015)


    crookj (4/14/2015)


    Chainsaw

    Firewood

    Soot

    Clean

    Break

    Even

Viewing 15 posts - 5,611 through 5,625 (of 8,761 total)