Forum Replies Created

Viewing 15 posts - 3,331 through 3,345 (of 5,111 total)

  • RE: sql script backup

    Create a variable with the date value and pass that in your statement. For example:
    DECLARE @CurrDate varchar(8) = REPLACE(CONVERT(varchar(10), GETDATE(), 104),'.','');
    ...
    ... DISK = '

  • RE: Are the posted questions getting worse?

    Brandie Tarvin - Wednesday, August 9, 2017 8:39 AM

    Hopefully this report isn't one of those federally mandated reporting tools that could...

  • RE: Converting Hour and Minute to Decimal

    drew.allen - Wednesday, August 9, 2017 7:54 AM

    First, you should start your own thread instead of reopening an old...

  • RE: How to convert varbinary to date

    ravikaliappan - Wednesday, August 9, 2017 7:12 AM

    Guid uqEventId = LOG.Trace("Test (Not Ravi date)", dtValue);
    public Guid Trace(string strMessage, params object[] objects)
     ...

  • RE: How to convert varbinary to date

    Just had a stab in the dark and tested all the following:
    SELECT CONVERT(varbinary(MAX),CONVERT(datetime2(0), '20170809 16:19:53.830')),
           CONVERT(varbinary(MAX),CONVERT(datetime2(5), '20170809 16:19:53.830')),
           CONVERT(varbinary(MAX),CONVERT(datetime, '20170809 16:19:53.830')),
        ...

  • RE: How to convert varbinary to date

    how was the varbinary value created? Are you sure that the original value was a datetime2? For example, if it was originally a datetime, using CONVERT(datetime2(x)) isn't going to work....

  • RE: How to convert varbinary to date

    Where did that value come from initially? How was the varbinary created? Is it encrypted?
  • RE: Stored Procedure help

    ExhibitA - Wednesday, August 9, 2017 4:52 AM

    Thank you both for your explanations. 

    Tom- I'm going to be honest, I can't get my head...

  • RE: Stored Procedure help

    Thought I might as well post a little on TRY CATCH and Transactions with a little example. The actual process here, in the sense of the transaction, is a little...

  • RE: Stored Procedure help

    At a quick glance, the email in the first SP is only sent if the CATCH is entered. If there are no errors in your TRY, the transaction is committed...

  • RE: Require complex data format

    You should already know this, but can you please post proper sample data and DDL (see the link in my signature), and the expected output. The floats are really malformed...

  • RE: Stop SSMS providing the server name

    I can't think of anything myself, but this sounds more of a training thing that anything. Users should be checking their connection information before running a statement (especially if making...

  • RE: Are the posted questions getting worse?

    ThomasRushton - Wednesday, August 9, 2017 2:21 AM

    Tom_Hogan - Tuesday, August 8, 2017 1:42 PM

  • RE: Are the posted questions getting worse?

    Brandie Tarvin - Tuesday, August 8, 2017 9:08 AM

    YIKES!

    I don't suppose this is a thing you can document to show...

  • RE: Load multi tab Excel data into SQL Server table using SSIS

    Yeah, see you're point. I focused on the statements:

    The Excel file contains multiple tabs with each month of data in it. I should treat the current month tab like...

Viewing 15 posts - 3,331 through 3,345 (of 5,111 total)