-
Notifications
You must be signed in to change notification settings - Fork 47
Test environment setup
Nicholas Sizer edited this page May 14, 2018
·
5 revisions
Roughly, the steps for setting up a test environment are:
- Download and install a trial version of ASE
- Set up a test database
- Enter connection details into
DatabaseLoginDetails.json
The following script should suffice to set up a test database
use master
if exists (select 1 from master..sysdatabases where name = 'your_test_db')
begin
drop database your_test_db
end
create database your_test_db
on default = '512M'
go
use your_test_db
exec sp_configure 'number of user connections', 100
go
We've found that tests can hang if:
- The database's
number of user connections
setting is too small - The database's allocated size is too small
- ASE might emit a message like the following:
X task(s) are sleeping waiting for space to become available in the segment 'logsegment' for database 'your_test_db'
- ASE might emit a message like the following:
- Using the driver
- Developing the driver