Either from Microsoft or there are other options like jTDS. Of course your SQL Server should be in mixed mode so you can connect with username and password created on server. This answer is presented for next visitors on this kind of question. Configuring the java driver connection for SQL Server can be quite confusing for new users. There're 2 kinds of authentification accepted on SQL Server. In this answer I'll active " sa " syst. To enable the " sa " account you can skip this if it had already been there :.
Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Asked 7 years, 8 months ago. Active 1 year, 3 months ago. Viewed times. Can anyone help me change the connection to the database? Thank you all very much. SQLException; import java. DimOrganization as op on op.
DimCurrency as c on oc. Related Articles. NET to create an Access database interrogation tool. Learn how to build a multithreading. Popular Articles. Rolling up multiple rows into a single row and column for SQL Server data. In SQL Server; check what the remote timeout is set at; you may need to increase the value. Also check the Database options; is "Auto Close" selected?
If it is then turn this option off. SQL Server does not generally close connections to the server unless the connection is actually lost. I would look at your Java program to see if there is a timeout of somekind. This would cause the connection to auto-retry at least one time, before the application even knows it has been disconnected.
While browsing through , I got the similar problem - solution from the below URL:. Verify last but one reply in the thread, which was proposed as answer. Hope this may help you. Sign in.
0コメント