This forum is dedicated to software developers utilizing Refinitiv APIs. It's not a place where you can ask generic programming questions or get help with 3rd party products.
For Help with Microsoft products, please use appropriate Microsoft resources.
Which SQL database are you trying to connect to? It doesn't look like you're utilizing any Refinitiv products or APIs in this instance. If I'm wrong and you are indeed using some Refinitiv product or API, then could you specify which product or API you're using? The code sample including the call that returns the error you reported would be very useful as well.