x

sp_getschemalock is causing the lock of database servers

The procedure sp_getschemalock is causing the lock of database servers arbitrarily. What is the reason for this blockade? How to avoid it?

more ▼

asked Nov 06 '09 at 01:06 PM in Default

André Mendonca gravatar image

André Mendonca
11 1 1 1

(comments are locked)
10|1200 characters needed characters left

2 answers: sort voted first

a quick google revealed

http://social.msdn.microsoft.com/forums/en-US/sqlintegrationservices/thread/231b4893-7bf6-4b7b-b072-1338d95c3eeb/

Are you using ssis ?, how is sp_getschemalock being called , and by what ?

more ▼

answered Nov 06 '09 at 04:49 PM

dave ballantyne gravatar image

dave ballantyne
928 1 1 4

a Microsoft consulter sad that the sp_getschemalock is started by server when this is creating or updating a database struct, but not known exactly how.
Nov 09 '09 at 05:12 PM André Mendonca
Check that your linked servers are collation compatible and have the configuration set as such.
Nov 09 '09 at 05:28 PM dave ballantyne
(comments are locked)
10|1200 characters needed characters left

sp_getschemalock is an internal extended procedure, used when querying across linked servers.

Does this fit with your scenario?

If so what queries are you running?

more ▼

answered Nov 06 '09 at 01:13 PM

Kev Riley gravatar image

Kev Riley ♦♦
50.8k 43 49 76

we have 4 servers runnig linked servers selecting, inserting and updating data between the servers. but when the getshemalock start on a server lock all others, many times in process anothers databases.
Nov 09 '09 at 05:05 PM André Mendonca
(comments are locked)
10|1200 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

New code box

There's a new way to format code on the site - the red speech bubble logo will automatically format T-SQL for you. The original code box is still there for XML, etc. More details here.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

SQL Server Central

Need long-form SQL discussion? SQLserverCentral.com is the place.

Topics:

x235
x24

asked: Nov 06 '09 at 01:06 PM

Seen: 4287 times

Last Updated: Nov 06 '09 at 01:06 PM