> For the complete documentation index, see [llms.txt](https://shrutisantosh.gitbook.io/head-scratching-sde/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://shrutisantosh.gitbook.io/head-scratching-sde/sap-ill-pass.md).

# SAP, I'll Pass

SAP ASE on DBeaver

In case of SAP ASE, it is a hell of a mess. We have so many products, I'm wondering why.

Problem: Couldn't connect to by server, even after the correct credentials and port. Got the error&#x20;

### 1. Connection Already Closed

```
// SQL Error [JZ0C0]: JZ0C0: Connection is already closed.
```

* services, on windows, restart
* if that doesn't work, kill pid of the service.
* start again.

could be issue of space not being enough.

### 2. Curious case of 'Connection Already Closed' but we did the above step:

The users of my SAP ASE instance, especially team DataStage, who run automated tests on the instance, were getting connection refused or connection already closed. I restarted the server like above, it worked for me as an `sa` but it didn't for them. I was on the verge of crying, when angel Pallavi Koganti helped me with the command:&#x20;

```sql
sp_configure "number of user connections", 200

reconfigure

sp_configure "number of user connections"
```

This helped me solve the frequently logged out issue. Thanks, Pallavi!

### 3. Timed out on CREATE statements

Did some digging around (*cough \*chat GPT\* cough) and* realised that space might have run out of CONOPS database, so I increased it, with the following commands.

<figure><img src="https://428485900-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg8Z67hWT3M8ahFC9cRdj%2Fuploads%2F5EBwdz7yUTG69metejLb%2Fimage.png?alt=media&amp;token=2de201de-2724-4319-a323-6f90018a5ed0" alt=""><figcaption><p>The said commands</p></figcaption></figure>
