Viewing 15 posts - 901 through 915 (of 7,191 total)
WITH MyValues AS (SELECT v FROM (VALUES('WAR') ,('WARTEC') ,('TRIAGE') ,('LAB') ,('BDIAG')) x(v) )
SELECT m.v, s.Name, s.ref
FROM #SampleData s
JOIN MyValues m ON s.ref LIKE '%' +...
February 6, 2018 at 8:04 am
Not like that, but you could use a table value constructor and join to that. I think that would work. If you post up some table DDL (CREATE...
February 6, 2018 at 6:08 am
You didn't post the results of the query I posted, but I suspect the user doesn't exist in the target database, or is orphaned.
USE db1
CREATE...
February 6, 2018 at 6:02 am
February 6, 2018 at 4:36 am
Cathryn
What doesn't work about SET LANGUAGE, and why do you even need it? Can you not just put the messages in the various languages in a table and...
February 5, 2018 at 9:44 am
February 5, 2018 at 9:28 am
Yes, that would probably stop the errors. But you ought to find out why they're happening. Is it replication that's attempting to do the inserts? If so, either the article...
February 5, 2018 at 9:25 am
Looks as if either somebody is overriding the identity property by setting identity insert on, or the identity has been reseeded. Is the table in question in the publication database,...
February 5, 2018 at 9:08 am
Maybe because it's returning 52 times as many rows? Please post the query plan and the two actual execution plans.
John
February 5, 2018 at 8:29 am
OK, I see. You should change that parameter name to @TableName, so it's clear what it is. And are you looking for the Searchname only in the column naam?
February 5, 2018 at 8:27 am
So you want to see whether the Searchname appears anywhere in the database? To do that you'd need to loop through every character column in every table. If you have...
February 5, 2018 at 8:03 am
tmmutsetse - Monday, February 5, 2018 7:22 AMCan i not create an alert?
What kind of alert? You can use the TABLERESULTS option...
February 5, 2018 at 7:34 am
I tried something like this myself. I think you need to create a table for the results and then modify the stored procedure to run DBCC CHECKDB with the (undocumented)...
February 5, 2018 at 7:10 am
You don't - it doesn't need solving. Indexes of less than, say, 1000 pages don't benefit from maintenance. Indeed Ola's code may even specifically exclude them.
John
February 5, 2018 at 6:25 am
You're not imposing. It's just that it's easier to assist someone who wants help with a specific issue, rather than asking for an end-to-end solution. You should try working through...
February 2, 2018 at 9:24 am
Viewing 15 posts - 901 through 915 (of 7,191 total)