Force SQL Server to respond slowly in order to test client application response to timeout -
is possible somehow force microsoft sql server slow down or queries can test client application on how acts when sql queries run extended time? example, limiting i/o or cpu 1%.
unfortunately not possible modify data in database add more rows.
i tried forcing query timeout in sql server unfortunately client application issues select (nolock)
ignores locks create.
to force query timeout error select ... myschema.mytable (nolock)
queries:
select ... myschema.mytable (nolock)
still requires sch-s
lock. according lock compatibility (database engine), sch-s
lock has conflict sch-m
lock.
1) so, create new query in ssms , execute next script:
begin tran alter table myschema.mytable add dummycol int null default 0 -- requires sch-m lock --rollback
2) execute queries (from client app. or ssms query) nolock
table hint:
select * myschema.mytable d with(nolock) -- requires sch-s lock
3) now, have wait.
Comments
Post a Comment