Viewing 15 posts - 3,331 through 3,345 (of 5,111 total)
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 = '
August 9, 2017 at 9:32 am
Hopefully this report isn't one of those federally mandated reporting tools that could...
August 9, 2017 at 8:47 am
August 9, 2017 at 8:14 am
August 9, 2017 at 7:25 am
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')),
...
August 9, 2017 at 7:03 am
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....
August 9, 2017 at 6:44 am
August 9, 2017 at 6:33 am
Tom- I'm going to be honest, I can't get my head...
August 9, 2017 at 4:55 am
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...
August 9, 2017 at 4:51 am
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...
August 9, 2017 at 4:21 am
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...
August 9, 2017 at 4:08 am
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...
August 9, 2017 at 3:57 am
August 9, 2017 at 2:31 am
YIKES!
I don't suppose this is a thing you can document to show...
August 8, 2017 at 9:25 am
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...
August 8, 2017 at 8:53 am
Viewing 15 posts - 3,331 through 3,345 (of 5,111 total)