Viewing 15 posts - 2,251 through 2,265 (of 4,087 total)
marc.corbeel (10/17/2016)
On the sample data their were no indexes indeed, but on the db I tested the solutions, there are indexes on the currency id and on the date...
This sounds...
October 17, 2016 at 12:27 pm
drew.allen (10/17/2016)
hegdesuchi (10/15/2016)
Thank you!yes I agree with you! My client wants to check if columns are same .update only if they are not same. I could think only of...
October 17, 2016 at 9:28 am
The only index in your sample table was on the identity field, which is not an appropriate index for this approach. You need to create an index like below.
CREATE INDEX...
October 17, 2016 at 9:20 am
marc.corbeel (10/17/2016)
Hi Draw.I tried your 2nd solution, and it is much slower than the earlier solutions... (for 160 currencies)
I did say that it required that the appropriate index be in...
October 17, 2016 at 9:05 am
hegdesuchi (10/15/2016)
Thank you!yes I agree with you! My client wants to check if columns are same .update only if they are not same. I could think only of this...
October 17, 2016 at 8:48 am
There are two issues with all of the solutions provided so far. They all read the exchangerates table twice: once to get the exchange rate and once to get...
October 17, 2016 at 8:27 am
marc.corbeel (10/14/2016)
This is strange...when I copy from my SQL studio Manager to this forum, each time the double space is replaced by single one
Anyone knows this issue???
It's because you didn't...
October 14, 2016 at 2:54 pm
Why did you abandon the XML approach? It performs better than manipulating the strings.
I did notice that the sample XML data you provided does not match the case of...
October 14, 2016 at 11:44 am
Y.B. (10/13/2016)
SELECT
s1.LocID,
s1.Name1 as s1Name1,
s1.Name2 as s1Name2,
s2.Name1 as s2Name1,
s2.Name2 as s2Name2
FROM #Server1 s1
JOIN #Server2 s2 ON s2.LocID =...
October 14, 2016 at 9:19 am
Again, your WHERE clause is converting your OUTER JOIN to an INNER JOIN. You want to find record where the value is MISSING. Use the following.
SELECT DISTINCT
CourseInfo.CourseStateCode ,
CourseInfo.CourseTeacherID...
October 14, 2016 at 8:33 am
Since English is a left-to-right language, you will almost exclusively see people using LEFT outer joins.
A RIGHT outer join says include all records from the RIGHT table (Responsibilities) regardless of...
October 12, 2016 at 3:08 pm
The standard workaround is to create a view that uses RAND() and/or NEWID() and then select from the view in the UDF.
And the reason they can't be used is that...
October 12, 2016 at 2:31 pm
dianerstein 8713 (10/12/2016)
DECLARE @Startlockid INT=0
DECLARE @MyTableVar table( lockID int);
insert...
October 12, 2016 at 12:56 pm
river1 (10/12/2016)
I have a total of 128 GB of memory on it and SQL Server configured...
October 12, 2016 at 11:27 am
Also, if you just disable and reenable the foreign key constraint, that constraint will no longer be trusted, which, again, defeats the purpose of having the constraint in the first...
October 12, 2016 at 11:15 am
Viewing 15 posts - 2,251 through 2,265 (of 4,087 total)