Connection using FireDAC from within the IDE data explorer.
I'm trying to create a MSSQL connection using FireDAC from within the IDE data explorer, but when testing the connection, I'm always getting "Timeout Expired" error.
If create an application using FireDAC components (TFDConnection and TFDPhysMSSQLDriverLink1) with exact same parameters as within IDE data explorer connection, it just works fine.
What am I missing?
Related
I am trying to use a small .sdf database file created in SQL Server Compact Edition version 4.0 on Delphi application, but I cannot make a connection (ADO Connection) to this database. I have Windows 10 64bit OS, Delphi 10.2
I found tutorial for connection to .sdf file created on 3.5 version on this link:
http://slamingcode.blogspot.com/2014/06/connecting-delphi-with-sdf-sql-compact.html
It probably works on .sdf files created on 3.5 version, but when I try to connect "my file", I got error saying that database is created on different version and that I need to install specific DB provider.
So, I installed SQL Server Compact Edition v4.0, but it is only available for 64-bit system. After that, I manage to open and view database through LinqPad application (proof that DB provider was installed and that DB is created in version 4 of SSCE). But, in Delphi, there was no DB provider for SSCE v4.0 on ADO connection in the list.
Based on tutorial for setup 3.5 version in the link above, I found proper (I think) registry key for v4.0 (HKEY_CLASSES_ROOT\WOW6432Node\CLSID{2006C53A-C915-41EA-BAA9-9EAB3A1FBF97}) and added Key "OLE DB Provider" with value "Microsoft SQL Server Compact OLE DB Provider".
Now, I see DB provider in list of providers when I try to make Connection String. But, when I try to use that provider, I got Microsoft Data Link Error:
Provider is no longer available. Ensure that the provider is installed properly
Is it possible to connect Delphi to a .sdf file via ADO connection (or any other) and how?
I have a 3-tier application that uses TSocketConnection to connect to a remote datamodule server app.
In Windows 8 i could open two instances of Delphi, one for the client and another for the server. I run both inside Delphi and could debug the server app with breakpoints : when the client called a function in the server that has a breakpoint, the execution would stop in this breakpoint inside Delphi's server app.
In Windows 10 this behaviour does not happen anymore. With the same scenario explained above, when i execute the client application it open a new instance of the server application, not using the instance already opened inside Delphi. So i end up with two instances of the server app instead of only one.
Is there a way to go back to the previous behaviour ? It was very useful to debug the server app.
Thanks
After i post the question i could find what was wrong and will share here, so it can help someone.
It turns out that both instances of opened Delphi (client and server) should run as administrator. In my case i was using Delphi XE for the client and Delphi 2007 for the server, and only Delphi XE was running as administrator.
So when i run Delphi 2007 as admin i could debug the server app as it worked on Windows 8.
I migrated to a new PC, moving from 32 bit Windows 7 to 64 bit, and from VS2010 to VS2012. A MVC project I'm working on that worked fine on the old system now refuses to connect to Oracle from the new system. When I debug the project I get the following error:
ORA-01019: unable to allocate memory in the user side
I can't seem to find anything online regarding this (rather useless) error that is not either specific to Oracle software or Excel/Access-related.
The relevant code is:
private string _connectionString = "Provider=msdaora;Data Source=***;User Id=***;Password=***;";
private OleDbConnection _connection;
public DB()
{
_connection = new OleDbConnection(_connectionString);
_connection.Open(); // throws error here
}
The function is a constructor in a class that wraps the Oracle DB so callers only deal with OleDB objects.
I have SQL Developer running and it connects to the same Oracle DB just fine. It uses the JDBC connection but I tested it with the TNS connection and it also worked fine, and there is only one Oracle Home directory, so presumably the tnsnames.ora file is in the correct location. (I'm not an Oracle expert by any stretch)
Clearly there is something wrong with my configuration, but I don't know what, since SQL Developer connects fine. It appears specific to VS, but I don't know if the issue is specifically VS2012 related, or 64-bit related, or ... ?
Any help appreciated, thanks.
Since visual studio is 32 bit application, you need to install 32bit drivers for oracle. See my related question about visual studio, oracle drivers and 32-64 bit issue.
Try to connect to oracle using Server Explorer add new Data Connection. If your oracle connection works here, your application should be able to connect too.
I have a Visual FoxPro database that I was able to connect to just fine in Access using ODBC. Now I have been "upgraded" to Windows 7 and cannot figure out a way to get at the data. I understand that ODBC won't work and so I downloaded and installed the FoxPro OleDB provider. Using the OleDB connection wizard in Excel I go through the steps to connect then when it goes to get the data I get an error message "Data could not be retrieved from the database". In Visual Web Developer, I go through the process to connect but when I click on the Data Links button VWD crashes and exits. Is there some non-Microsoft solution or do I have to go find an XP box and convert everything into something I can use?
We recently upgraded a major application to Visual Studio 2010.
Unfortunately, we are still using several database servers that are still running SQL Server 2000 (8.0.2055 to be precise).
According to this article (Link), "Since mainstream support for SQL Server 2000 ended on 04/08/2008, Visual Studio 2010 will only support debugging SQL Server 2005 and SQL Server 2008.
We have a lot of stored procedures that we keep in Source Control and execute them from within Visual Studio whenever we need to update them.
Is there any way around this restriction? 3rd-party tool, anything.
While researching this, I saw a few sites that indicate an ODBC connection could be used to get to the SQL2000 box. I was able to create a System DSN and then a Data Connection within VS2010, but am unable to connect to it.
Any help would be greatly appreciated.
Thanks.
Chris
The only way I've found so far is to extract our data library out of the project and keep it in VS 2008 targeted at 3.5 while we're building it. Once it's complete and ready, we open up the primary project in VS 2010, check out the changed files and then use the file system to copy the changed files over.
We then keep the supplementary 3.5 project in source control parallel to the primary project.
They will still build and function in .Net 4.0, but we have found that the IDE will not accept any connections or commands to them.