Forum Replies Created

Viewing 15 posts - 1,531 through 1,545 (of 14,953 total)

  • RE: Selecting dates from a fixed period

    Sean Lange (5/2/2012)


    The "Having" clause allows you to do "Where clause" type stuff on aggregates, like Max(), Min(), Avg(), and so on.

    sheesh in looking at my post I could have...

  • RE: Creation Time of Schema?

    Yes, the import/export tool will automtically copy schema names over if it doesn't find them. That's by design.

  • RE: very very strange problem - profiler trace

    I'd expect a statement complete event at the end of it, unless you've filtered the trace somehow.

  • RE: Selecting dates from a fixed period

    Try this:

    SELECT Matters.FeeEarnerRef,

    Entities.Code,

    Matters.Number,

    Entities.Name,

    ...

  • RE: UPDATE statement using SELECT

    DBA_SQL (5/2/2012)


    Thank you so much. I actually need to mask the data. so i found this would be good option.

    Figured as much.

    Does the reason and solution make sense?

  • RE: SQL Server not using connection Login

    That error message almost always means you're trying to pass Windows credentials more than one "hop". Search online for "Kerberos double-hop" and you'll find the details on what that...

  • RE: Creation Time of Schema?

    I keep a log of all DDL changes to all my databases, and I get that kind of information from there. Source control works as well if not better....

  • RE: UPDATE statement using SELECT

    Exact reason for the problem and solution to it posted on the other copy of this thread.

  • RE: UPDATE statement using SELECT

    Lynn Pettis (5/2/2012)


    GSquared (5/2/2012)


    Ignoring the infinite loop about where to post.

    Your update statement doesn't specify which row in Scramble matches which row in your random select.

    Gus, use the other one.

    Too...

  • RE: UPDATE statement using SELECT

    What you need is something comparable to this:

    IF OBJECT_ID(N'tempdb..#SCRAMBLE') IS NOT NULL

    DROP TABLE #SCRAMBLE ;

    CREATE TABLE #SCRAMBLE

    (FNAME VARCHAR(10),

    ...

  • RE: UPDATE statement using SELECT

    Ignoring the infinite loop about where to post.

    Your update statement doesn't specify which row in Scramble matches which row in your random select.

  • RE: help with SQL query please

    SQL Kiwi (5/2/2012)


    GSquared (5/2/2012)


    The parentheses on Top are only needed outside of Select statements, but whatever is wanted on the standards for that. That's style, not function, so whatever...

  • RE: SQL Query to show previous and next date?

    Something like this?

    IF OBJECT_ID(N'tempdb..#mytable') IS NOT NULL

    DROP TABLE #mytable ;

    CREATE TABLE #mytable

    (event INT,

    event_date DATE)

    INSERT #mytable

    VALUES...

  • RE: Improve Performance of this Purge Process

    Honestly, all I can say for sure is that it looks massively over-complicated for a standard purge process, and that I'd have to work with it in your data to...

  • RE: Programmers v Salespeople

    RobertYoung (5/2/2012)


    L' Eomot Inversé (5/2/2012)


    The idea someone had that salesmen should be paid more because they have to look good doesn't hold water

    I guess you not noticed the harlot hussy...

Viewing 15 posts - 1,531 through 1,545 (of 14,953 total)