Skip to main content
Question

Connect to SQL-Server takes 8 seconds

  • March 4, 2026
  • 2 replies
  • 61 views

Ingo Stiller
Forum|alt.badge.img+3

Hi freaks
I was forced to upgrade ourWindows-Server and SQL-Server to Version “2025”
No problem but now, when I connect (from our application) the first time to the database it takes 8 seconds

sql/print "SELECT top 1 1 FROM aTable", "DEF"

Profiling on MS-SQL give me no hint, as the duration of all action are a few microseconds.
Using procmon results in this picture
 

UnifAce connects and deconnect several time. Every reconnect last 0.5 seconds so in total we are near the eight seconds (measured by counting aloud)
So what’s going on here?
As I said, it's really just the simple SQL/print statement, nothing else.


Oh yes, when I start the IDF, I got this

What happens here for about two seconds?

Thanks for any hint
Ingo


 

2 replies

Roger Wallin
Forum|alt.badge.img+3
  • Participating Frequently
  • March 9, 2026

Interesting.
Was the old database faster?
Do you have the same procmon log for the old database?
I suppose Uniface wouldn’t change it’s way to fetch, unless you have changed the driver. 
Or perhaps if the Sql-server closes the connection...


Ingo Stiller
Forum|alt.badge.img+3
  • Author
  • Participating Frequently
  • March 12, 2026

Hi Roger
Yes, our old  Database (SQL Server 2019) was much faster.
I have to chekc wether another driver from UnifAce will solve the “Pronlem”