Forum Replies Created

Viewing 15 posts - 13,246 through 13,260 (of 14,953 total)

  • RE: Nested query help

    This is how I would write the original query:

    DECLARE @HomeID INT

    SET @HomeID = 2

    SELECT utbHome.*, finfo.FileID, finfo.Name as 'FileName'

    FROM utbHome

    LEFT JOIN utbAmenities

    ON utbHome.HomeID = utbAmenities.HomeID

    LEFT JOIN

    (SELECT HomeID,...

  • RE: Parsing text file and updating the output to database records

    I'm assuming what you mean is a text file with rows and columns of data in it. Is that correct? (Some examples would be comma-delimited data, or fixed-width...

  • RE: Calculations in Temporary Tables

    Is there a date or other sequence you can use for ordering this data? If so, then it becomes a relatively easy task for a running total calculation.

  • RE: Database Unavailable Alert?

    It would be easy enough to set up a proc that did something like "select 1 from database.dbo.table" for each database on your server. Have it send an e-mail...

  • RE: The Back Door DBA

    Well, I have two choices for entering the building, the front door, or the other front door. Either way, all I usually get on the way to my desk...

  • RE: The Core

    For anyone doing either role, I'd say the zeroeth skill is the ability to wander around in Management Studio/QA+EM, without getting lost.

    For an admin, I'd say the first skill is...

  • RE: In The Zone

    One of the major complaints I get from people on a relatively regular basis, is that I'm "in The Zone" too far and too often.

    Any time I find something strongly...

  • RE: ANY

    Very cool. I wasn't aware of the Any/Some/All operators in SQL. Didn't even know they existed. Learned something from this one.

  • RE: Need help with % in a search

    Glad I could help.

  • RE: Best way to select same table twice within same query, once as "lookup table"?

    ;with Alloys (A) as

    (select alloy

    from dbo.BOM

    where material = 'xyz')

    select Alloy, Material

    from dbo.BOM

    inner join Alloys

    on alloy = a

    That's SQL 2005. If you need an SQL 2000 version, move the Alloys...

  • RE: Need help with % in a search

    If it were T-SQL, this part:

    Select distinct folderno from FOLDERS where CLIENTPONO=?nCLIENTPO?

    Would be more like:

    Select distinct folderno from FOLDERS where CLIENTPONO like '%' + nCLIENTPO + '%'

    No clue if that...

  • RE: Split text by empty spaces

    Jeff, he's not looking to parse out the whole string. Just grab the second word, and everything else.

    String parser was my first thought too, but then I read it...

  • RE: sp to take values while exection

    First, why update the "value" column? It's already equal to the thing you're updating it to.

    Second, you have variables in the proc with different names than when you declared...

  • RE: Create Temporary Tables Dynamically in cursor loop

    Jeff Moden (6/19/2008)


    Honest to goodness... folks keep posting what they think is a solution to a problem instead of posting the actual problem. This particular one is RBAR on...

  • RE: Full Recovery, no tlog growth

    Indianrock (6/19/2008)


    From my earlier post:"Tlog is doing nothing as far as I can see -- apparently that's because there is no full backup and thus no possibility of tlog...

Viewing 15 posts - 13,246 through 13,260 (of 14,953 total)