Forum Replies Created

Viewing 15 posts - 4,606 through 4,620 (of 14,953 total)

  • RE: SQL Mail

    If you want more control over the e-mail, set up DBMail, and use sp_send_dbmail. You can control the whole message that way. Pretty easy to set up and...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: Need to perform a RESTORE!

    You will definitely need to do the tail log backup before you start restoring, unless you're restoring to a different server/instance, or to a different database name. Otherwise, you'll...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: Are the posted questions getting worse?

    GilaMonster (3/15/2011)


    WayneS (3/15/2011)


    GilaMonster (3/15/2011)


    WayneS (3/15/2011)


    Does anyone know if we'll be able to download them later on?

    Streaming, not download. Something an issue with but PASS doesn't seem to be willing to...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: from to date as parameter

    Use Raiserror to raise an error and have the front-end capture that and alert the user.

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: How to access column data outside SELECT statement

    -- Local Variables

    declare @Dayin int = 0

    ,@DayGood char(1) = 'y'

    ,@LengthofStay int = 1

    ,@xx int

    ,@RMSDays int -- new variable

    SELECT @RMSDays = RMS_Days

    FROM ResMinimumStay

    WHERE RMS_ResortId = @ResortID and RMS_RoomType = @RoomType and...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: Create trigger to fire SSIS package

    Don't directly call SSIS from a trigger. Triggers are part of the transaction, which means locks will last longer, concurrency and performance will suffer, and, if the SSIS package...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: convert to SQL2005

    If you plan to do it yourself, my main piece of advice is do it in a test environment first.

    Use some form of source control, and script any database changes...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: Loop all the servers and get the query results

    You can either add them all to sys.servers, and loop through that, or you can take a look at Red Gate's Multiscript product and see if that will do what...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: function vs straight query response time

    While there is some overhead just in having code in a UDF instead of a script, it's usually about 3-5% as a performance hit.

    Here are the things I suspect are...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: Parameters selection manually and selection

    rkaria (3/15/2011)


    so the user has to enter the information twice??

    No, the multi-select or drop-down is primary, but they can use the free-form text if the want/need to.

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: xp_dirtree to access UNC folder on another file server (+ provide UserId& Pwd)

    You can use CLR in stored procedures and user-defined functions (and user-defined datatypes, even) in SQL 2005 and later. It's not as simple as writing lines of VB.NET inside...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: SSIS package for changing the Source table

    I would do three data flow objects in one package for that. Easier to document that way. They can be set to run in parallel or in sequence,...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: Group by

    Jeff Moden (3/15/2011)


    GSquared (3/15/2011)


    Also, using parsename in this fashion requires more complex documentation, since it's being used in a fashion that it isn't designed for. Anyone looking up "parsename"...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: Why does this query only run in master?

    Cross Apply isn't compatible with SQL 2000 (which is what Compat 80 means).

    It's giving a syntax error because it thinks the Cross Apply target is a table, and the parameter...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: from to date as parameter

    If the report is based on a stored procedure, you can handle it there. Either raise an error, or change the To Date to something that makes sense.

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

Viewing 15 posts - 4,606 through 4,620 (of 14,953 total)