Visual FoxPro OleDB - oledb

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?

Related

Delphi IDE data explorer

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?

How to connect SQL Server Compact Edition database .sdf file to ADO Connection

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?

Visual Studio can't connect to Oracle after migrating to 64-bit -- SQL Developer connects fine

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.

how to solve mvc database

I am Using Visual studio 2010 Ultimate edition registered version and want to develop ASP MVC 3.0 Project.
I need to include database in Asp_Data folder.I want to use .sdf version SQL server 2005,But when I use
Data tab at--> Add New Item(By clicking at solution explorer)--> It shows .mdf format only.
I am Using SQL Server 2005.
I installed SSCERuntime_x86-ENU.exe 4.0(Microsoft SQL Server Compact 4.0 Setup)
Can anyone tell me how to get .sdf format of SQL Server 2005 in Data tab of Add new Item
You have to create the SDF file using the Server Explorer -> Connect to Database in VS 2010.
You need to install sql server compact 4.0 local database. Here's the link that will guide you to it. Walkthrough: Working with SQL Server Compact in Visual Studio

Visual Studio 2010 Connect to SQL Server 2000?

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.

Resources