Forum Replies Created

Viewing 15 posts - 1,426 through 1,440 (of 3,543 total)

  • RE: Where did Taskpad go?

    I'm using 2k5 at sp2... and there's no "Summary" selection in the "View" menu... has anyone actually tried this?

    I belive it was changed in SP2.

    Right click on the database,...

  • RE: Update previous close price.

    Thanks Jack... lotta tension on this side, lately, and I had to make sure I wasn't tuggin' on a friend's chain.

    Phew! Jeff 😀

    Thought you were trying to poke the...

  • RE: Ltrim rtrim no working with UPDATE

    OK. Maybe there are trailing non printable chars as well, should have thought of that :blush:.

    Try

    LIKE '%WDT%'

  • RE: Ltrim rtrim no working with UPDATE

    You need to do

    LIKE '%WDT'

    not

    LIKE 'WDT%'

  • RE: Ltrim rtrim no working with UPDATE

    And this should correct the data....

    UPDATE #tablename

    SET colname = STUFF(colname,1,1,'')

    WHERE colname LIKE '%WDT'

    AND colname <> 'WDT'

  • RE: Ltrim rtrim no working with UPDATE

    I would do the following to find the offending values

    SELECT colname,CAST(colname as varbinary(5))

    FROM tablename

    WHERE colname LIKE '%WDT'

    AND colname <> 'WDT'

  • RE: Hidden RBAR: Triangular Joins

    Good article, as usual, Jeff 🙂

    You sure know how create these long threads 😉

    p.s. Keep banging that drum, they'll either get it or go deaf :hehe:

  • RE: T-SQL statement to return SQL Job Last Run Date

    SELECT j.[name],

    CAST(STUFF(STUFF(CAST(jh.run_date as varchar),7,0,'-'),5,0,'-') + ' ' +

    STUFF(STUFF(REPLACE(STR(jh.run_time,6,0),' ','0'),5,0,':'),3,0,':') as datetime) AS [LastRun],

    CASE jh.run_status WHEN 0 THEN 'Failed'

    ...

  • RE: Return missing hours from a table

    You need to match your data against a dataset of 24 hours, something like this

    SELECT DATEPART(Year,a.dev_time) as [Year],

    DATEPART(Month,a.dev_time) as [Month],

    DATEPART(Day,a.dev_time) as [Day],

    n.Number AS [Hour],

    COUNT(a.tdm_msg) AS [Total_Incoming_Vehicles]...

  • RE: Knowledge sharing

    And Jeff makes a good point too. Not enough of you guys get credit for posting knowledge...

    Hear, hear. 🙂

    But I think we all owe thanks to folks like Jeff...

  • RE: DBCC

    Jeff Moden (11/15/2008)


    I got it right but this is a really bad question for people who are still stuck with SQL Server 2000. These types of questions should probably...

  • RE: Absolutely (Not?)

    guess I'd have to argue that developers are sometimes even more arrogant than the DBA

    Ouch! :pinch:

  • RE: The "Numbers" or "Tally" Table: What it is and how it replaces a loop.

    Wayne West (10/29/2008)


    Huh, somehow I never noticed that in the documentation about Len() ignoring trailing spaces. Then again, chances are that I never opened BOL for Len() and just...

  • RE: The "Numbers" or "Tally" Table: What it is and how it replaces a loop.

    Wayne West (10/16/2008)


    Hey, Gary. I just worked on cleaning up a big address table, talk about fun! Anyway, how about something like this:

    select left(Address, charindex(' ', Address) -...

  • RE: need to execute bcp command through C#.net - URGENT

    ramesh.tce (9/8/2008)


    I also have same issue.Can anyone help me to export data from sql sever to the temp file in sever using bcp? in c#.netThanks

    If you are using c# in...

Viewing 15 posts - 1,426 through 1,440 (of 3,543 total)