Forum Replies Created

Viewing 15 posts - 8,926 through 8,940 (of 39,771 total)

  • RE: Getting t-1

    Often people use a dateadd/datediff combination to remove times, or to set to a base time.

    SELECT DateAdd(Day, Datediff(Day,0, GetDate() -1), 0)

    returns midnight of yesterday. That might be what you want....

  • RE: writing queries that easily readable

    The way in which queries are formatted is very subjective. Some people like this:

    select col1, col2, col3

    from mytable

    inner join myothertable on col1 = myfk

    where time < getdate()

    others prefer more indentation.

    select...

  • RE: How can I find the source of data for a DB

    I'd also ask people in the company. It's possible someone runs SSIS or performs manual imports from their workstation.

  • RE: Are the posted questions getting worse?

    Alvin Ramard (11/25/2015)


    Steve Jones - SSC Editor (11/25/2015)


    The spam problem is tough. Believe me, no matter what we do, people will find ways around it. Much of the spam isn't...

  • RE: Getting Alert if job is running unusual

    You could track the times in sys.jobactivity. You would need to create an average, or max, or whatever statistical calculation you want. Then you'd need to track the current execution...

  • RE: Are the posted questions getting worse?

    The spam problem is tough. Believe me, no matter what we do, people will find ways around it. Much of the spam isn't a user clicking and posting like you....

  • RE: Is my Database corrupted ? Any solutions on fixing this ? Help

    I know this is old, but did you recover things?

    Also, please don't set emergency or use repair allow data loss. You have errors in low numbered system objects, which are...

  • RE: Fantasy Football 2015

    Thanks for noting that I mirror Keith poorly. :hehe:

  • RE: The dotted table

    DonlSimpson (11/24/2015)


    Yeah but isn't that using a butter knife as a screwdriver? Certainly you can, and many people and organizations do, use the database server as the staging area...

  • RE: Query help on previous record

    I was using window functions, and this appeared to work, but it's a small sample size, so perhaps there's a flaw here:

    SELECT t.*

    FROM ( SELECT top 10

    ...

  • RE: The Biggest Data Breech (For Now)

    IMHO (11/24/2015)


    Can you start to imagine criminals using the information intelligently to not directly sell the data but to make a secondary use of the information.

    I think they call...

  • RE: The Biggest Data Breech (For Now)

    swwg69 (11/24/2015)


    Corporations allow the owners to have limited liability. That also makes the guys making the BIG money more casual about these problems. If someone took 100 million...

  • RE: The dotted table

    don't drop your framework or view on table design.

    If I'm staging data here, pulling from unclean sources, do I need a PK or non-nullable columns? It's a perfectly valid design,...

  • RE: Query help on previous record

    What's previous?

    The order of rows has no meaning in SQL Server. The way you insert them doesn't matter.

    Right now your second row has a larger id and a later last...

  • RE: Shrinking the Budget

    I'm not sure it's that hard to go from 2005 sp4+ to 2016. The core features are there and not much has been removed, though lots deprecated. I suppose if...

Viewing 15 posts - 8,926 through 8,940 (of 39,771 total)