Viewing 15 posts - 1,096 through 1,110 (of 1,219 total)
balasach82 (7/20/2013)
[font="Times New Roman"]Erland Sommarskog, SQL Server MVP, www.sommarskog.se[/font]
July 21, 2013 at 3:54 am
MartJ (7/21/2013)
The deadlock is happening on the clusterd index. The update is deadlocking susequent reads.
As I said, I need to see the deadlock trace, to be able to say...
[font="Times New Roman"]Erland Sommarskog, SQL Server MVP, www.sommarskog.se[/font]
July 21, 2013 at 3:22 am
Thamizh (7/20/2013)
Sorry, Cannot share the query plan because of the work restrictions.
Without the plan and the query, there is not much we can do. Performance tuning is not about telepathy....
[font="Times New Roman"]Erland Sommarskog, SQL Server MVP, www.sommarskog.se[/font]
July 21, 2013 at 3:19 am
mikej 14403 (2013-07-20)
I'm sure there are ways to edit a table using SQL.
There is. Did you try the UPDATE statement, I gave you?
[font="Times New Roman"]Erland Sommarskog, SQL Server MVP, www.sommarskog.se[/font]
July 21, 2013 at 3:11 am
It's difficult to comment on the deadlock, since I have not seen the deadlock traces.
But I think the query would better be:
UPDATE TableToBeUpdated
SET ColumnToUpdate = @UpdateParam
FROM ...
[font="Times New Roman"]Erland Sommarskog, SQL Server MVP, www.sommarskog.se[/font]
July 20, 2013 at 4:27 pm
Could you post query and attach the query plan as a start?
[font="Times New Roman"]Erland Sommarskog, SQL Server MVP, www.sommarskog.se[/font]
July 20, 2013 at 4:20 pm
Can you post the actual query and the view definition as a start?
[font="Times New Roman"]Erland Sommarskog, SQL Server MVP, www.sommarskog.se[/font]
July 20, 2013 at 3:32 pm
That should work out fine, I think. But take a snapshot of your VM before you go ahead. (If you VM software supports that.)
[font="Times New Roman"]Erland Sommarskog, SQL Server MVP, www.sommarskog.se[/font]
July 20, 2013 at 2:13 pm
mikej 14403 (2013-07-20)
[font="Times New Roman"]Erland Sommarskog, SQL Server MVP, www.sommarskog.se[/font]
July 20, 2013 at 2:06 pm
No, indexed views does not cut it. You would need a view that performs a UNION ALL of the two tables, but UNION is not a permitted construct in an...
[font="Times New Roman"]Erland Sommarskog, SQL Server MVP, www.sommarskog.se[/font]
July 20, 2013 at 6:22 am
That depends on what you want to do. To remove all leading and trailing spaces, you would do:
UPDATE tbl
SET col = rtrim(ltrim(col))
WHERE col <>...
[font="Times New Roman"]Erland Sommarskog, SQL Server MVP, www.sommarskog.se[/font]
July 20, 2013 at 6:05 am
It is certainly a lot easier to help you if you post the actual SQL statement you use as well as the exact error message.
[font="Times New Roman"]Erland Sommarskog, SQL Server MVP, www.sommarskog.se[/font]
July 20, 2013 at 6:00 am
jallmond (2013-07-19)
I will create the clustered index as you suggest for the August shard.
In the long run, you probably want the same across the board, but of course it will...
[font="Times New Roman"]Erland Sommarskog, SQL Server MVP, www.sommarskog.se[/font]
July 20, 2013 at 2:55 am
Eh, yes, there are concerns, since CONTROL gives them full control on the table. ALTER is slightly better, but that may be bad enough. To you want these users add...
[font="Times New Roman"]Erland Sommarskog, SQL Server MVP, www.sommarskog.se[/font]
July 19, 2013 at 4:21 pm
rajborntodare (2013-07-19)
No one ever done such thing????
I think the problem is that the question is too open-ended. Whether the script you posted makes sense, all depends on what you want...
[font="Times New Roman"]Erland Sommarskog, SQL Server MVP, www.sommarskog.se[/font]
July 19, 2013 at 4:16 pm
Viewing 15 posts - 1,096 through 1,110 (of 1,219 total)