Excel connection manager error - importing from Table to Excel - visual-studio

I am getting below error while selecting Excel file after configuring connection manager.
I am using visual studio 2019 and Excel 2016.
Where am I going wrong?
Thanks
Ar

Related

Connection string not working when saving to 2007 format

I'm very confused with OleDB & Excel.
I've 2 files:
One is saved in Excel 2007
One is saved in Excel 2010
This is because some computers have 2007 and other 2010 version of Microsoft Excel.
In vb.net i use:
m_sConn1 = String.Format("Provider=Microsoft.ACE.OLEDB.12.0;Data Source='{0}';Extended Properties='Excel 12.0;HDR=NO;IMEX=1';", file)
When is do:
conn1 = New System.Data.OleDb.OleDbConnection(m_sConn1)
conn1.open()
With the save-in-2010 file i got 0 errors.
With the one saved in 2007 i got
"External table is not in the expected format"
Is this string connection for both versions? Should i use Interop instead? (because the file is auto generated using Interop Excel 12.0 and it works in 2007 & 2010).
I already installed 2007 Office System Driver: Data Connectivity Components from http://www.microsoft.com/en-us/download/details.aspx?id=23734
Edit:
If i open the 2007 file in 2010 and save it, oleDB reads it ok.
It's a Bug already reported. Only Excel 2007 has this error and MS knows it but never addressed it.
This project can be only use w/ excel 2007.

Connection with SQL database in visual studio 2010

I have connected with the database successfully by using wizard in server explorer. but the data source is showing nothing. i have googled and search on msdn help. but not get help.
I want to add data source. but add new data source option is disabled for me.
I am using windows form application...
I want ask that am i doing right. could you please tell me how can i get rid of not showing thing.
PLEASE HELP!!!
The Server Explorer of Visual Studio 2010 and the Datasource of your application are completely different. Check the following links to see how you can connect your Windows Form Application with Sql-Server database:
Walkthrough: Connecting to Data in a SQL Server Express Database (Windows Forms)
Connecting to a Database with Visual Studio Tools

Can't view database objects in SQL 2008 Database Project within Visual Studio 2010

I've created a SQL 2008 database project in Visual Studio 2010. I have imported existing tables and stored procedures using both of the available methods of import (script or connecting to db). Regardless of which method I use, after the import completes I see my table files in the Visual Studio project, however, I get the following error when trying to view the object by double clicking on it:
Object reference not set to an instance of an object.
I can also see the files I am trying to access on the hard drive. Perhaps this is a permissions issue masked with an obscure error message? I've done some research and am stumped at this point. Any assistance is greatly appreciated.
Details on Visual Studio 2010: Version 10.0.40291.1 SP1Rel
My OS is: Windows Server 2008 R2 Standard
Thanks!
Starting VS 2010 with "devenv /ResetSkipPkgs", should help, mostly due to the "non-loading problem" of some of the key modules.

Log on failed. Crystal Report 13 for Visual Studio 2010

I am facing a problem with Crystal Report, in the deployment Server (i.e Windows 2003 Server), my example was working in Crystal Report 10..for visual Studio 2008, but when I upgraded to the new Crystal Report 13 for Visual Studio 2010, it gives me the following error:
Error
Database logon failed.
I have used to use Typed DataSet for the ReportDocument, and from CodeBehind I set reportDocument.SetDataSource(DataTable), and it was working fine in the previews version, but in the new version it gives me the previews error.
By the way the report working fine my local pc where Visual Studio 2010 installed..
Kind Regards
Bassam Basamad
For anyone will face this problem in future.
The problem because if you run two version in the Same Application Pool, it will not work, it will give log failed, but if you create another Application pool, for the Crystal Report 13 for visual studio 2010 it will work fine.
Kind Regards
First goto the app.config file and update the code below
add like this:
<startup useLegacyV2RuntimeActivationPolicy="true">
Add the line useLegacyRuntimeActivationPolicy="true" into startup tag.

I have problem with create .mdf file in VS 2010

When i trying to create. Mdf file in App_Data folder in visual studio 2010 I see this message.
"Failed to generate user instance of SQL Server due to an error when starting the process for an instance of the user. The connection will be closed."
I can to create the database other ways. (In visual studio -> Tools-> Connect to the database and SQL Manager). SQL Server is installed automatically studio.
How can I solve this problem?
What am I doing wrong?
This is not exactly an answer to your question, however I think it is very important you read this link first before attempting any further resolutions to your problem.

Resources