Wednesday, December 30, 2020
Tuesday, December 29, 2020
Working with regular expression in python3
Below is the sample how to replace the string using the regular expression
new_address = new_address.append(subst(pattern, replace_str,sub))
return new_address
Friday, December 25, 2020
Thursday, December 24, 2020
Create 10 virtual users every second on an average for 1 minutes, perform post request to create user details and print the new ID created for each user name using Debug option
We need to below script for the above scenario.
After savings that into test.yml you can run using the following command
Sunday, December 20, 2020
Artillery inline variable using yml
Below script show how to use inline variables in artillery using yml.
Saturday, December 19, 2020
Search in yml
Below program show the sample script to search using the yml
artillery run test.yml -o output
The output will be saved in Jason format
Looping using the yaml or yml
Above script is used for looping 100 times for using user id 3 for 20 virtual users for one minute. Save the above code with test.yml
For running the above script
artillery run test.yml -o output
Create put request in artillery using the yaml.
Create a test.yml file and run the above code
The above code will run using
artillary run test.yml -o output
Sunday, October 4, 2020
transactions
set transaction isolation
level repeatable
read
begin tran
select * from Relationship where link_id=64099
commit tran
set transaction isolation
level repeatable
read
begin tran
update Relationship set start_date='2012-12-06' from Relationship where link_id=64099
commit tran
set transaction isolation level read committed
begin tran
select * from Relationship where link_id=64099
commit tran
set transaction isolation level read committed
begin tran
update Relationship set start_date='2012-12-06' from Relationship where link_id=64099
commit tran
NOLOCK VS ReadPast
select * from Relationship(nolock) where link_id=64099
select * from Relationship(readpast) where link_id=64099
Execution context in SQL Server
When executing the modules we can specify the EXECUTE AS clause for executing the module with the execution context.
There are different types of executing context
EXECUTE AS CALLER|OWNER|USER
Subscribe to:
Comments (Atom)