Forum Replies Created

Viewing 15 posts - 1,711 through 1,725 (of 6,486 total)

  • RE: SQL Functions VS JOINS

    Lowell (9/18/2009)


    In my opinion, functions are OK if you are getting a single row of data. but if you are getting more than one row, a functions should be replaced...

  • RE: Qry Performance

    Lynn Pettis (9/18/2009)


    Jeff Moden (9/18/2009)


    If nothing else, the NOT LIKE will likely force a scan.

    Building on this, empid isn't even in the index, so sounds like a good possibility for...

  • RE: How To Efficiently Index Using a VARCHAR Column?

    Jeff Moden (9/17/2009)


    Matt Whitfield (9/17/2009)


    Jeff Moden (9/17/2009)


    I've been under the weather and in bed for the last 18 hours or so...

    That doesn't sound like enough time to recover from being...

  • RE: location of business logic: database vs. C# code

    If the picture is to not allow ANY server component, even local, then, no - how could SQL Server be involved?

    At best you would have to use something like XML...

  • RE: What to do when your job is sapping your motivation?

    I am reminded something a recruiter friend mentioned to me: You need a job to find a job.

    Like Gus mentioned, the first thing you should do is come to...

  • RE: Save Source Code with line breaks in Table

    David.Maron (9/15/2009)


    The problems with sourcesafe, subversion are:

    1. Changes can be made outside of the source control because they are based on flat files and there is no link to the...

  • RE: Generate MAc addresses with a stored procedure

    Use the database as it should be. Generate ALL of the MAC addresses in one shot, and assign them as needed.

    From what you have listed there - looks like...

  • RE: SELECT @@IDENTITY - sqljdbc driver

    Switch to using the OUTPUT clause instead. It WILL be a single statement and won't have the vulnerabilities that @@identity has.

    Insert MyTable(Mycolumns)

    Output inserted.MyIdentity

    select MyColumnValue

  • RE: Association Table and Primary Key/Identity column

    In the sense that every table should have a primary key, yes, a mapping table SHOULD have a primary key.

    Whether it should be a separate column or can be implemented...

  • RE: Are the posted questions getting worse?

    jcrawf02 (9/14/2009)


    Kit G (9/10/2009)


    Jan Van der Eecken (9/9/2009)


    Didn't quite get the coconut - swallow connection either, but maybe I'm just a little slow.

    This particular coconut/swallow reference is from Monty Python...

  • RE: Gotcha with dates

    If I were to guess....

    Karnak

  • RE: add a bar code font in a report to avoid installing it on every client ?

    I'm betting it's not so much the font itself that is unclear, as is the image saving process (which might be skewing/stretching the images to accomodate a specific size).

    You may...

  • RE: T-SQL Stumper

    use testing

    select 'Sam' name1, '09/10/2009 15:20:39.000' endts, 3 unk, 11024 duration

    into #matt

    go

    ;with MattCTE as (

    select datediff(second,dateadd(hour,datediff(hour,0,endts),0),endts) basesecs,

    dateadd(hour,datediff(hour,0,endts),0) basehour,

    *

    from #matt)

    select

    case when (duration-basesecs-(n-1)*3600)>3600 then 3600 else (duration-basesecs-(n-1)*3600) end secsspent,

    dateadd(hour,(-1*n),basehour) timeslice,

    endts,unk,duration from...

  • RE: A Good Word for ODBC

    bob.willsie (9/10/2009)


    Ah. Got it. Thanks Matt.

    Am I correct in assuming that forcing it to be pass-thru is only useful if all the tables being joined reside on...

  • RE: A Good Word for ODBC

    bob.willsie (9/10/2009)


    Hmm. I just popped into Access 2003 opened an existing query in SQL design mode, right clicked and selected Properties. However, I don't see that anything that...

Viewing 15 posts - 1,711 through 1,725 (of 6,486 total)