Forum Replies Created

Viewing 15 posts - 58,756 through 58,770 (of 59,065 total)

  • RE: Column Naming Conventions (rears it''''s ugly head again :)

    >First option makes optimizer work faster

    Sergiy,

    Can you show me where this is written?  The reason I ask is because I've got a bunch of folks at work that use...

  • RE: updating without using Cursor

    Dang... I missed that.  Sorry Shahed and thanks for the feedback.  Glad you got it working...

  • RE: Column Naming Conventions (rears it''''s ugly head again :)

    Roger that... thanks.  I'm just the opposite... I leave the aliases just for brevity... I figure that it takes about 2 seconds to figure out that "c" means "Customer".  But...

  • RE: updating without using Cursor

    Obviously, I haven't tested this but it should be real close.

     UPDATE A

        SET Flag = 1

       FROM A,

            (--Derived table "bd" finds everything in B having a count...

  • RE: Column Naming Conventions (rears it''''s ugly head again :)

    Hi Michael,

    Doesn't having the full table name on columns make the code a bit difficult to read for troubleshooting?  I guess it would be ok if the table names were...

  • RE: Malicious process...

    Just about anything that can get to the xp_CmdShell and, that would be a lot of things... that's why a lot of DBA's disable it.  I don't know how to...

  • RE: Need a RELIABLE table-exist test

    If you truly need to use positive logic (IS NULL instead of IS NOT NULL) and you also want to check for a zero value, the NULLIF function does a...

  • RE: Default "Order By"

    For goodness sake, add a Primary Key to the table.  Not for sorting but will nearly double the speed at which queries on large wide tables run because SQL doesn't...

  • RE: Column Naming Conventions (rears it''''s ugly head again :)

    I agree with Ray's basic idea but, just a thought... table names, especially when they are large, can make code pretty well unreadable.  I usually use 1, 2, or 3...

  • RE: Recursive Queries in SQL:1999 and SQL Server 2005

    Very, very nice.  I do a lot with Hierarchies and this will really help when 2005 comes out.  Your examples and text based diagrams are awsome.  Thank you very much...

  • RE: DateTime format to mmmdd format

    >I cannot get Jeff's solution to work without using GETDATE(). 

    What I wrote was meant to solve the original posting which stated... "I would like to be able to...

  • RE: A Better Solution

    If the file you are trying to bring in is a text file (fixed field, CSV, Double-Quoted CSV, etc), you can use BCP or, perhaps, Bulk Insert which both operate...

  • RE: A Better Solution

    If you aren't making any modifications, seems like the old DOS COPY command would work better and faster.

    What is it that you are...

  • RE: Recusive Hierachy

    Angela,

    Lookup "Expanding Hierarchies" in "Books Online"... has full explanation and an easily modifiable example script that could be changed to a stored procedure.  That's one way to do this.

    Another way...

  • RE: Formatting Select Columns

    Here's a couple of other ways...

    SELECT

       LEFT(SalesName,25) As Name

    FROM

       CommERV

    WHERE

       ProcessDate = '1/1/05'

       AND RevDate = '1/1/05'

       AND TIN = '2042416'

    SELECT

       CAST(SalesName AS VARCHAR(25)) As Name

    FROM

       CommERV

    WHERE

       ProcessDate...

Viewing 15 posts - 58,756 through 58,770 (of 59,065 total)