Viewing 15 posts - 2,416 through 2,430 (of 7,191 total)
I don't know where you're getting "Output.ColumnName" from. It's either Inserted.ColumnName or Deleted.ColumnName. Do it like it's shown in the examples, and don't be afraid to try stuff...
July 22, 2016 at 9:53 am
Because there's no such virtual table as "Updated". Like I said, Inserted is the values after the update; Deleted is the values before.
John
Edit: By way of further explanation, an...
July 22, 2016 at 9:40 am
I'm not sure what you mean. There are plenty of examples on that page I linked to. "Inserted." refers to the new value of the column after the...
July 22, 2016 at 9:27 am
If I understand correctly, you need an OUTPUT clause in your UPDATE statement.
John
July 22, 2016 at 9:12 am
Extended Events is one of the few things I recommend doing in the GUI rather than with scripts. There are some promising-looking events in the session category that you...
July 22, 2016 at 8:49 am
Yes. Capture the lock_escalation event in an Extended Events session.
John
July 22, 2016 at 8:32 am
But you said in your original post
The store procedure itself resides on server3
Are you now saying it exists on all servers? If it does, try setting up an extended...
July 22, 2016 at 8:17 am
Is the SQL Server Browser service running on the remote server? I'm not sure whether or not it tries to connect on 1433 for a named instance. If...
July 22, 2016 at 8:13 am
Surely your stored procedure is attempting to execute sqlbackup at the remote server? I'm guessing that the domain group in question has permissions on it on server1 but not...
July 22, 2016 at 7:56 am
Start here:
Connection string is not valid
Have a look at the connection string. Does it look right? If it does, please post it here, changing any sensitive information.
John
July 22, 2016 at 7:36 am
Yes, it will. First, make sure you don't have any duplicate jobids in the second table so that you don;t get unpredictable results, then use UPDATE...FROM to join and...
July 22, 2016 at 7:23 am
Not out of the box, as far as I know. You could set up individual alerts that run a job that writes to a table, and have a trigger...
July 22, 2016 at 5:32 am
Excellent. So which column is the clustered index on? Please post the execution plan as requested, plus DDL (including indexes) for all tables.
John
July 22, 2016 at 5:08 am
Is the clustered index on the column you're updating? That's going to cause major pain. Aside from that, can't really help without seeing the (actual) execution plan.
John
July 22, 2016 at 4:59 am
Yes! I like that. I think I prefer going with explicit dates rather than integers - it makes it easier to see at a glance what it's doing....
July 21, 2016 at 8:23 am
Viewing 15 posts - 2,416 through 2,430 (of 7,191 total)