Viewing 15 posts - 61 through 75 (of 148 total)
That makes sense.
Would it be better to surround the @Enddate in the first example with a Convert to Varchar or the second one (the cast statement)?
Thanks,
Tom
May 15, 2015 at 10:23 am
The reason I am doing it this way is that this select is really part of an OpenQuery statement. And if you use parameters, apparently you have to put...
May 15, 2015 at 10:21 am
I don't understand.
Why does it work without casting it to varchar in the first version?
Thanks,
Tom
May 14, 2015 at 10:07 pm
Sql Server Management Server project.
January 27, 2015 at 9:02 am
That worked fine.
Not sure what this means:
ROW_NUMBER() OVER (ORDER BY (SELECT NULL))
How does that work?
August 1, 2014 at 10:41 am
I was putting the waitfor in the query to test the locking and to see when it releases.
The only problem is that the 2nd query (select) never comes back.
If I...
July 31, 2014 at 2:52 pm
Figured it out.
The table in the subquery was not filtering out nulls and there were nulls in that field.
So if I changed it to:
SELECT *
FROM ...
June 2, 2014 at 7:16 pm
I did try the LEFT JOIN and it works correctly with the results expected.
SELECT *
FROM VEStaging ves
LEFT JOIN EHR ehr
ON ves.SSN = ehr.SSN
WHERE ehr.SSN is...
June 2, 2014 at 6:57 pm
To test this, I put together this test which does work fine. If you take out the where clause, I still get one row back (ssn = 2). ...
June 2, 2014 at 6:49 pm
Both Erik and Sean had the solutions I was looking for.
Thanks,
Tom
May 29, 2014 at 1:45 pm
Yes, they are in the same session. As a matter a fact, if I press the debug button, go to the first line of the procedure and cancel the...
May 29, 2014 at 11:26 am
I was a little confused.
I know you can only use whatever values are actually passed back (defined) from the CTE, I didn't know that the value remembers which row and...
May 19, 2014 at 2:07 pm
I also tried it by taking the t1.t_id off of the selection list and it still worked.
You said it knows about the column from the one table but not the...
May 19, 2014 at 12:28 pm
Great.
That answers my question.
But on your CTE sample, I like that as well but am not sure why it works.
I made a small modification to your sample to add another...
May 19, 2014 at 11:05 am
Viewing 15 posts - 61 through 75 (of 148 total)