Viewing 15 posts - 2,146 through 2,160 (of 8,731 total)
Here's an option:
SELECT *
FROM #NoShow ns
OUTER APPLY( SELECT TOP 1 fa.ApptDt
FROM #FutureAppts fa
...
September 22, 2016 at 9:59 am
If you don't intend to return it, why are you including the SELECT in the code?
September 22, 2016 at 9:01 am
Jason A. Long (9/22/2016)
...
SET @FunctionSQL = 'IF OBJECT_ID(''[dbo].[itvf_Model_Name_Compare]'', ''IF'') IS...
September 22, 2016 at 8:56 am
J Livingston SQL (9/22/2016)
OP said
....
I have 2 tables and I am attempting to match models. (they are described differently in both tables).
IPHONE 6S ROSE 64GB SGL...
September 22, 2016 at 8:45 am
I was curious on my previous idea, which seems to be working fine. Although, with more time, I would improve the code.
CREATE TABLE ReplacementCodes(
type_priority int,
...
September 22, 2016 at 8:13 am
Jason A. Long (9/22/2016)
September 22, 2016 at 7:25 am
You've got two great options here. If by any way you get an option of using dynamic sql, please avoid it unless you plan to go unemployed.
The splitter that Jason...
September 22, 2016 at 7:12 am
Sergiy (9/21/2016)
On different server settings you may get different results:
SET DATEFORMAT DMY
SELECT CONVERT(VARCHAR(20), CONVERT(datetime,CAST('2016-08-10 05:29:27' as datetime),112),...
September 22, 2016 at 7:03 am
Interview question?
September 22, 2016 at 6:38 am
Ken McKelvey (9/21/2016)
If you have to live with an app which uses it, I would alter it so the parameters are logged and a...
September 21, 2016 at 2:17 pm
My code has no errors. I tested it before posting.
I still have no idea on what you want to return. You're asking to return the same values that you're entering...
September 21, 2016 at 2:06 pm
jasona.work (9/21/2016)
I am now a member of that elite group of "dead topics revived!"
Noticed the email alert that a reply had been...
September 21, 2016 at 1:27 pm
Your code makes no sense.
Why are you concatenating row counts? You'll end up with a number that means nothing. You're also not telling what are you returning. You mention that...
September 21, 2016 at 1:20 pm
It's not appending zeros, that's just the way it displays the value stored. Datetime is stored as 2 integers combined in an 8-byte value. One integer is used for the...
September 21, 2016 at 1:03 pm
Use the maxerrors parameter (-m) with a large value to catch the bad rows in an errorfile defined with the parameter -e.
September 21, 2016 at 11:22 am
Viewing 15 posts - 2,146 through 2,160 (of 8,731 total)