Viewing 15 posts - 4,726 through 4,740 (of 7,597 total)
terry999 (10/6/2015)
update tblcustomer
set Supid = Supid
I don't mind if this fails.
As long as the supid and manid are not part of the SET clause of an update...
October 6, 2015 at 7:59 am
Those JOIN conditions will always be met, regardless of the actual values in A (unless if a B column is NULL). So just do a CROSS JOIN of the...
October 5, 2015 at 1:52 pm
It looks like you need
SELECT IDENT_CURRENT('dbo.tablename')
rather than IDENT_SEED.
October 5, 2015 at 12:40 pm
You need to be more selective than that. Any reference to the column will turn the "UPDATE flag" on, even if the value is the same. Maybe something...
October 5, 2015 at 12:38 pm
myzus2004 (10/3/2015)
The clustered index on InformationOverride table cannnot be changed as the composite index on these 3 columns have unique data.
I am...
October 5, 2015 at 9:13 am
I think this might do it, if I understand correctly what you need:
SELECT cast(0 as bit) as 'Escolha',data, contado , ollocal ,origem, ousrdata,ousrhora
...
October 1, 2015 at 4:00 pm
Can we see the actual code you used to do the split and column assignment? Maybe there is something there.
October 1, 2015 at 3:22 pm
You can check to see if the cursor exists before you DECLARE it. I added "LOCAL" to the cursor declaration so that you know for sure that it's local...
October 1, 2015 at 2:19 pm
Sounds like you need a really fast splitter. Check out DelimitedSplit8K.
October 1, 2015 at 2:09 pm
Might a job have run and hit that db but using a different user?
October 1, 2015 at 2:02 pm
Lynn Pettis (10/1/2015)
ScottPletcher (10/1/2015)
October 1, 2015 at 11:26 am
You should get rid of the INSULL() in the WHERE clause, as always. Just NEVER use ISNULL() in a WHERE or JOIN. But it's esp. important if that...
October 1, 2015 at 11:11 am
No, you can't use EXISTS to return data.
As to performance, the non-clustered index on the vcv (InformationOverride) table would have to INCLUDE the vote column to be useful.
Better would very...
October 1, 2015 at 9:16 am
You could put values into a table and do a lookup.
You could also use a CROSS APPLY to assign an alias name to the result of the first CASE statement,...
October 1, 2015 at 9:10 am
I wondered about that too, but I noticed there's an odd character before "wrap" that looks like a blank, but really isn't. When you copy it in the SSMS...
September 30, 2015 at 3:05 pm
Viewing 15 posts - 4,726 through 4,740 (of 7,597 total)