Viewing 15 posts - 2,671 through 2,685 (of 7,191 total)
Is this relevant to the thread you've posted in? If not, please start a new one.
It's not clear what your question is. If you're expecting the ALTER TABLE...
April 18, 2016 at 3:17 am
I think I'd set it up so there's a completely different task for the newer versions, and to test for server version in the control flow. That keeps the...
April 18, 2016 at 3:13 am
You're welcome. You do know you shouldn't use TOP without an ORDER BY, don't you? You're risking getting unpredictable results. If, as I suspect, your query only...
April 15, 2016 at 5:11 am
Use a temp table, table variable or staging table and insert into it thus:
INSERT INTO temp_table_or_table_variable_or_staging_table
EXEC ('<whatever>')
You can then select from the temp table, table variable or staging table as...
April 15, 2016 at 4:46 am
OK, please provide table DDL in the form of CREATE TABLE statements, sample data in the form of INSERT statements, and expected results. We should be able to help...
April 14, 2016 at 4:21 am
Do the missing rows from SALESINVOICE have NULL DELIVERYNOTE, by any chance?
John
April 14, 2016 at 4:06 am
Phil
I'd say you're missing a ")" at the end of both of those WHEN lines.
Edit - either that, or get rid of the first "(" on each line - I...
April 13, 2016 at 9:59 am
lotusnotes (4/13/2016)
OREDERID comes from the outer table. (Execution plan says 'nested loops- left semi join')
You answered the question yourself. If the column isn't found in the inner query, the...
April 13, 2016 at 9:51 am
Yes, check for triggers. If you don't find anything, try an extended events session to capture user creation, role membership changes and so on. That might give you...
April 13, 2016 at 9:26 am
Bear in mind that changing the database collation doesn't change the collation of existing columns (of user tables) in the database - it'll only affect new columns. So if...
April 13, 2016 at 8:10 am
In that case, Perry's script should return the same SID twice. Something strange is going on. You'll need to talk us through exactly what you're doing, please, perhaps...
April 13, 2016 at 7:33 am
I'll be there Thursday, Friday and Saturday. I'll look out for you all. You'll recognise me at the party if I'm the only one who's not dressed up!
John
April 13, 2016 at 2:20 am
Perhaps your login is mapped to a database user with a different name? Please run this:
USE MyDB
SELECT u.name
FROM sys.server_principals l
JOIN sys.database_principals u ON l.sid = u.sid
WHERE l.name = 'DOMAIN\serviceAcct'...
April 13, 2016 at 2:14 am
In that case, please will you post the exact script you ran to get that result, along with the script you ran when attempting to change the mapping. You...
April 12, 2016 at 7:51 am
Actually, I've just looked at your query again, and it can't be the one you ran. There's no such column as "user" in either of the catalog views that...
April 12, 2016 at 7:47 am
Viewing 15 posts - 2,671 through 2,685 (of 7,191 total)