Forum Replies Created

Viewing 15 posts - 886 through 900 (of 1,048 total)

  • RE: SP not working same on SQL 2008 as SQL 2005

    ExecuteScalar() does not return the RETURN value of the stored procedure. I returns the first column of the first row of the result set. That is why you are...

    The probability of survival is inversely proportional to the angle of arrival.

  • RE: Add business days to a date field

    The last Monday of the month is nothing more than the first Monday of next month minus 7 days.

    The probability of survival is inversely proportional to the angle of arrival.

  • RE: Add business days to a date field

    yeah, my keyboard glitched before I finished that post so I had to edit it. Glad to have the chance to help out.

    You might consider removing the holidays and...

    The probability of survival is inversely proportional to the angle of arrival.

  • RE: Add business days to a date field

    Okay, here's one way to do it. First, define a CTE for your business dates:

    with BizDates (Bdate)

    as (

    select Date

    from Datetable A

    ...

    The probability of survival is inversely proportional to the angle of arrival.

  • RE: Unable to add multiple attachments using DBMail

    it does not work with wildcards.

    I would have whatever app puts the attachment files in the folder insert a row with (containing the path) into a table as well.

    The probability of survival is inversely proportional to the angle of arrival.

  • RE: Add business days to a date field

    sure, shoot me a private message with an email address.

    The probability of survival is inversely proportional to the angle of arrival.

  • RE: need some ideas for query

    I would also look at the query plan. Depending upon the size of the table if suddenly decides to perform a tables scan Vs. some other plan it can result...

    The probability of survival is inversely proportional to the angle of arrival.

  • RE: Add business days to a date field

    I wrote a stored proc that computes the dates of all known (in our case banking) holidays. Some dates are always fixed (such as July 4th, Nov 11th) others are...

    The probability of survival is inversely proportional to the angle of arrival.

  • RE: Add business days to a date field

    Best way is to maintain a holiday tablecontaining holidays on out years into the future. (we have a SQL agent job that keeps the table current out 8 years ahead)....

    The probability of survival is inversely proportional to the angle of arrival.

  • RE: Update only date against datetime field

    declare @x datetime -- this is your date time column or variable

    set @x = getdate() -- set it to current time value

    select @x ...

    The probability of survival is inversely proportional to the angle of arrival.

  • RE: How do I show items dated 1 day from current date?

    Jeff Moden (3/5/2010)


    sturner (3/4/2010)


    try this:

    Select* from mytable

    WHERE functionDate > CONVERT(char(10),getdate(),101)

    that assumes all times are 00:00:00

    It also causes a costly implicit conversion. Use the method that Lutz posted instead.

    Not if...

    The probability of survival is inversely proportional to the angle of arrival.

  • RE: How do I show items dated 1 day from current date?

    try this:

    Select* from mytable

    WHERE functionDate > CONVERT(char(10),getdate(),101)

    that assumes all times are 00:00:00

    The probability of survival is inversely proportional to the angle of arrival.

  • RE: Guidance on Rolling up changed schema into production db needed

    You should probably employ the expertise of an experienced DBA to help you establish and implement all of the procedures from application upgrades to disaster recovery.... at least in the...

    The probability of survival is inversely proportional to the angle of arrival.

  • RE: D/B Copy error 1073548784

    please provide the entire query instead of the part of it.

    The probability of survival is inversely proportional to the angle of arrival.

  • RE: Increasing TEMPdb files

    look up ALTER DATABASE in BOL it should explain how you can do it.

    Alternatively, you can right click on tempdb from SMC, go to "files/filegroups" and do it that way.

    The probability of survival is inversely proportional to the angle of arrival.

Viewing 15 posts - 886 through 900 (of 1,048 total)