OLEDB connection problem in visual studio 2017 - oledbconnection

I am able to make ODP connection in visual studio, but when i make OLEDB connection it gives me error "oracel client and networking components were not found, please help me out".

Related

Connecting VS 2015(Integrated) to TFS

I am using SQL Server Data Tools (which = Visual Studio 2015 (Integrated)) and I am having trouble being able to connect to TFS. I can see the Team Explorer window, but when I click "Manage Connections" --> "Connect to Team Foundation Server" ....nothing happens. I get no error or prompt or anything. Has anyone else had issues like this? Spent most of my day googling the problem yesterday and I can't figure out what is wrong.
I cannot use VS community as I am part of a company and it would violate the TOS.
Unfortunately, TFS is not included in the minimal VS that SSDT installs. If you're not able to use VS Community due to license restrictions, I would suggest looking into the Express edition (Web or Desktop) of Visual Studio 2015. It has a less restrictive license and supports the SSDT tools.

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.

Connecting to TFSPreview Programmatically

I'm attempting to connect to TFS Preview from a C# application.
At the moment, I'm stuck trying to authenticate. I've added a reference to the TFS 2010 DLLs (I believe that these will enable me to connect, please correct me if I am wrong!) and my test case is as simple as. The URL I am trying to connect to is in the form https://MYSERVERNAME.tfspreview.com/DefaultCollection
var teamProjectCollection = TfsTeamProjectCollectionFactory.GetTeamProjectCollection(workPath, new UICredentialsProvider());
teamProjectCollection.EnsureAuthenticated();
This fails with the following exception.
Team Foundation services are not available from server https://MYSERVER.tfspreview.com/$/defaultcollection.
Technical information (for administrator):
TF400813: Resource not available for anonymous access. Client authentication required.
I had hoped that providing a UICredentialsProvider in the factory method creating the team project collection that it'd use this to provide authentication. The TFS Preview service uses Windows Live authentication, but I had hoped that this would be covered.
Pointers in the right direction greatly appreciated!
I have found that you cannot connect to TFSPreview using the TFS2010 DLL's, most likely because of the web credentials that need to be provided in order to access the site.
By adding a reference to the TFS2012 DLLs (which come with the Visual Studio 2012 RC at %PROGRAMFILESX86\Microsoft Visual Studio 11.0\Common7\IDE\ReferenceAssemblies\v2.0) I was able to successfully connect.
Download and install the Object Model for Team Foundation Server 2010SP1 and then install the Visual Studio 2010 SP1 Forward Compatibility GDR. Though this installer may look to only apply to Visual Studio 2010, it will happily update your Object Model installation if it's installed stand-alone.

Visual FoxPro 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?

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