I am facing a peculiar problem.
Application Details
Java : Jre 1.6
Db: MS SQL 2008 R2 (On Vmware)
OS: Windows 2008 R2 (On Vmware)
Problem:
Whenever i am trying to connect to the database using sqljdbc4.jar it takes almost 5 seconds to make a connection.
But if i use jtds driver it connects instantly.
Now if i try to connect to a similar database hosted on single physical server it connects instantly using both the drivers.
Please help me if any body has faced this issue.
Sorry.. Had got wrong information about the connection driver being used. Configured the application with sqljdbc4.jar and the issue was resolved.
Related
we are developing a web application that use SQL Server 2016 (Express) as a database engine.
We have noticed that the queries we make from application side take 20-30ms (average) when SQL Server is installed locally while, if installed on a remote machine, it take 400-500ms. We tried different versions of JDBC (now version 7.2.2) but the timing is the same. Both PC are connected on same switch.
The connection string we use is:
jdbc:sqlserver://${database.address};SelectMethod=cursor;database=${database.name};useUnicode=true;characterEncoding=UTF-8;charactetrResultSets=UTF-8
We tried to delete SelectMethod=cursor; and the timing improve but not significantly.
It is not a DNS problem because as address we use the IP.
Can someone tell me how to solve the problem?
I have installed windows 7 64 bit os on my machine and installed oracle 12c database on the machine. Database software got installed properly and i'm able to connect using sql developer client. The database instance is listening on port 1521. I have also installed oracle xe 11g edition. During the installation i did not get any errors and I got the message that installation is successful and complete. However, when i try to access it using sqldeveloper tool, the listener seem to be refusing the connection. How can i make both xe and 12c work on the same machine. Please let me know your suggestions.
How can i make them work both at the same time. I have seen cases where 2 instances use same port on the same machine.
Thank you.
I would like to know if an installation of SQL Server Express is required on my client PCs? I have searched a fair bit and so far all I've seen were related to attached databases or local databases.
Here's the setup of my system.
There will be a Windows Server PC that will be hosting the SQL Server instance.
Client PCs will be running a VBNet based windows form application where connection strings will be fed to table adapters that would allow them to connect to the server.
Now I have tested running the application on a Windows 7 PC without SQL Server Express installed and it works, connection was a success and data can be retrieved etc. However the system is actually going to be run on Windows XP when it goes live.
So I was wondering if the client PCs would require an installation of SQL Server Express or any sort of dlls for it to be able to connect to the server? Or would the .Net Framework be sufficient?
Thanks in advance.
You will not require a SQL instance on your client PCs. The app can just make the connection to the server via the connection strings. Our app is very similar in the fact that we support Windows Xp and SQL Server 2005 and it works well without any instance on the client PCs. We do install a local instance on the client but this is only used when transferring data to a laptop so it can be used when disconnected from the network. HTH
I think you should install .Net framework on your client pc. I'm not entirely sure if it's the case but to be sure, run it on a Windows XP machine. If you dont have an xp machine, try using desktop simulater like virtualbox of sorts.
I need to create Link Server in SQL Server 2012 Enterprise 64 using Oracle ODAC.
I have done everything I know, including multiple re-installation of Windows Server 2012 Standard R2 64. The ODAC is also 64bit.
I am able to connect to Oracle 11g using Oracle SQL Developer using TNS as Connection Type.
I am beginning to think this may have something to do with Windows Server. Because I have never experience this issue on other systems not running Windows Server.
I get this error:
returned message "ORA-12154: TNS:could not resolve the connect identifier specified.
Thanks
After combining through hundreds of internet posts and install/reinstall. I discovered the problem was the ORACLE ODAC Components. Every article on the internet tells you to install 64bit ODAC if you are running 64bit database, however, this is not accurate.
After spending two days trying to get this to work, I decided to try the 32bit ODAC and it worked.
In case anyone is having this same issue.
I've got a project where I have to work with Microsoft SQL which is new for me.
I already made a lot with MySQL server and database. Is there a way to developpe on a Mac OSX with a local MS SQL database and XAMPP or something like that?
SQL Server's database engine only runs on Windows. You can find a spare Windows box to run it, or host the machine with VMWare Fusion / Parallels.
Oracle SQL Developer can serve as a replacement for SSMS on Mac.