Forum Replies Created

Viewing 15 posts - 1,561 through 1,575 (of 1,583 total)

  • RE: Database e-mail does not display specified name

    Can you please suuply the TSQL code you're using?

    Ex:

    EXECUTE msdb.dbo.sp_send_dbmail @recipients = 'jdoe@gmail.com'

    , @subject='Test', @body = 'Test'

    Also, you may want to check the settings in >> Management >> Database Mail...

    ______________________________________________________________________________Never argue with an idiot; Theyll drag you down to their level and beat you with experience

  • RE: Database I/O and Activity Monitor

    This could happen for MANY reasons...without knowing your configuration for both SQL and your Server. Considering this occurs at 20-min intervals it sounds like something is scheduled and running....so...

    ______________________________________________________________________________Never argue with an idiot; Theyll drag you down to their level and beat you with experience

  • RE: BEGIN/COMMIT TRANSACTION question

    OMG...talk about an ID10T error...I think maybe I spent too much time looking at it to see the obvious! :s

    Thanks for pointing it out 🙂

    ______________________________________________________________________________Never argue with an idiot; Theyll drag you down to their level and beat you with experience

  • RE: SQL stored Procedures

    I have a function that may help you...of course, you'd have to use dynamic SQL (which has it's own caveats)

    It can be used nicely to return a set of values...

    ______________________________________________________________________________Never argue with an idiot; Theyll drag you down to their level and beat you with experience

  • RE: Why does SSIS take so long to "build" before running?

    Thanks for the reply Craig. This only shows the execution times and steps for everything "after" the build process completes...which runs exceptionally quick (< .5 secs)

    It's the actual build...

    ______________________________________________________________________________Never argue with an idiot; Theyll drag you down to their level and beat you with experience

  • RE: T SQL Error Capturing

    (from MSDN)

    TRY…CATCH constructs will not fire:

    1. Warnings or informational messages that have a severity of 10 or lower.

    2. Errors that have a severity of 20 or higher that stop the...

    ______________________________________________________________________________Never argue with an idiot; Theyll drag you down to their level and beat you with experience

  • RE: Long running update - looking to help speed it up

    Lynn, sorry I missed that request. The expected result would be an integer value in the prevodometer column for each record in the table.

    I don't fully understand why they...

    ______________________________________________________________________________Never argue with an idiot; Theyll drag you down to their level and beat you with experience

  • RE: Long running update - looking to help speed it up

    Sorry! Yes I guess that would help 🙂

    CREATE FUNCTION [dbo].[fx_GetLastOdometer]

    (@date varchar(40)

    ,@pan VARCHAR(32)

    ,@tranid int)

    RETURNS int

    AS

    BEGIN

    DECLARE @Odometer int

    SET @Odometer = (

    SELECT TOP 1 odometer

    FROM dbo.[Mileage_Table] WITH(INDEX(idx_TranTime))

    WHERE tranid <> @tranid

    AND pan=@pan

    AND...

    ______________________________________________________________________________Never argue with an idiot; Theyll drag you down to their level and beat you with experience

  • RE: How to add date and time

    Done, thanks for the heads up

    http://www.sqlservercentral.com/Forums/Topic1048204-145-1.aspx

    ______________________________________________________________________________Never argue with an idiot; Theyll drag you down to their level and beat you with experience

  • RE: How to add date and time

    If I wanted to calculate the average run time for a given SQL Agent job over the past month...knowing that the run_duration column in sysjobshistory is represent as 33848, meaning...

    ______________________________________________________________________________Never argue with an idiot; Theyll drag you down to their level and beat you with experience

  • RE: How to add date and time

    How would you go about adding actual time fields together?

    For instance, you have SQL Agent Job run times as follows:

    HH:MM:SS

    03:58:19

    04:18:42

    03:14:09

    11:31:10 (which would mean 11 hours, 31 minutes, and...

    ______________________________________________________________________________Never argue with an idiot; Theyll drag you down to their level and beat you with experience

  • RE: How to check since how long this job is running

    Perhaps I am missing something but this stored-procedure only tells you historically the last time a SQL Agent job started and finished, it does not tell you the start time...

    ______________________________________________________________________________Never argue with an idiot; Theyll drag you down to their level and beat you with experience

  • RE: xp_cmdshell to convert HTM file to PDF

    Found it!

    Turns out that the software install is user specific and must be individually licensed by each user on the server: Simple installing it as an administrator and registering it...

    ______________________________________________________________________________Never argue with an idiot; Theyll drag you down to their level and beat you with experience

  • RE: xp_cmdshell to convert HTM file to PDF

    Again, I can run it from our production box just fine as is (and is SQL 2005), but not from the new box which is SQL 2008.

    With the reporting model...

    ______________________________________________________________________________Never argue with an idiot; Theyll drag you down to their level and beat you with experience

  • RE: Using xp_cmdshell and Zip Genius 6

    Here are the results:

    (1 row(s) affected)

    ID TheOutput

    ----------- ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    1 NULL

    (1 row(s) affected)

    ______________________________________________________________________________Never argue with an idiot; Theyll drag you down to their level and beat you with experience

Viewing 15 posts - 1,561 through 1,575 (of 1,583 total)