Forum Replies Created

Viewing 15 posts - 9,751 through 9,765 (of 18,926 total)

  • RE: Data type for Credit Card

    As I said earlier, I have never worked in such an environement, such I was asking lots of questions to be ready for when it happens.  I got good instincts...

  • RE: Code stopping at breakpoint... but there isn''''t one.

    What I do when that happens is that I cut the line then repaste it in place (quick ctrl-X, ctrl-v).  This works everytime, but I must admit it's very annoying.

     

    Anoter...

  • RE: Data type for Credit Card

    I was just doing my Devil's advocate here.  My instinct was varchar + encryption, looks like I was pretty much dead on!

  • RE: Data type for Credit Card

    I think this works

    SELECT CONVERT(BIGINT, 1234567890123456) AS CCNumber

  • RE: Data type for Credit Card

    All interesting points for the initial validation.  I'm wondering, once the credit card has been validated once,  Do you still have to do lots of manipulation with those numbers, or...

  • RE: Need to create & select #temp data table

    Ya I'm kind of sick of that don't use dynamic sql discussion.  If they want to hang themselves, I let 'em.  I'm not here to save the world anymore.  But...

  • RE: sort order

    Should be able to...  can you post the code?

     

    If worse comes to worse, you can always do the distinct query in a derived table, then apply the dynamic sort.

  • RE: Need to create & select #temp data table

    The table is created in the exec statement.  It is automatically destroyed when that connection is dropped (before the execution goes back to the procedure).

    You'll have to create that table...

  • RE: Index review?

    Is there any way to get the rowcount in profiler (directly, without re-rerunning the query)?  I'm guessing no, but hopping for a yes on this one!

  • RE: Data type for Credit Card

    Here's where I show my in-experience.  Bigint assumes that the card number will NEVER have a leading 0.  Now I have never seen that on a card but I would make sure...

  • RE: Data type for Credit Card

    Varchar would be my guess (without any experience in that domain).

  • RE: sort order

    Still need to have a dynamic sort... or 1 query / sp / function per variation to have the optimal query plan...

  • RE: View sentence error

    That's alright, we're all here to learn .

  • RE: sort order

    To complete this, I strongly suggest you validate the input order variable :

     

    if @SortOrder IN ('jobid', 'empName', 'empid')

    begin

     

    end

    else

    begin

    raiserror ('Invalid sort order', 13, 1) --this avoids any possible sql injection

    end

  • RE: DBA without system administrator privileges

    What movies was that?

Viewing 15 posts - 9,751 through 9,765 (of 18,926 total)