I am just starting to write VS2022 WebForms app and need a MySql connection.
I already have MySql Connector/Net 8.0.23 installed.
Database is MySql 8.0.23. All applications ar vb.net.
I have read where I need to install "MySql for Visual Studio" to establish a server-connection in "Server Explorer".
But I am concerned that it will wipe out my 8.0.23 Connector with a later version.
Will this be a problem?
Is there any way I can just specify a connection using my existing 8.0.23 connector.
I have many/many applications already written for 8.0.23 so I can't upgrade all of those.
Thanks
I have tried setting up a new server in "Server Explorer" but it also wants a mysql connector that I don't have in the installed connectors for VS2022.
You have to download "MySql Connector" from Devart. The problem is that it is no longer free: after a 30 days trial period, we have to buy a licence.
I am working with VS 2022 but I am considering installing VS 2019 because of this problem!
Related
I am new to this technology and I badly need help regarding to this Mysql Database (Mysql Data Provider). I am planning to use data binding for my navigation of student details in my xampp database but when I'm trying to create a dataset, there wasn't Mysql Database (Mysql Data Provider) available. I've tried almost all solutions I've saw in the internet but none of them works. Please help me. btw I am using Visual Studio 2022 and Xampp Mysql for the database. Thank you in advance.
Actually, MySQL for visual studio isn't updated yet! it runs only on VS 2019 and lower, so you can't use it on VS 2022 at this moment.
But you can link your MySQL database with your C# project via Connect / Disconnect mode but not with Entity framework.
I have installed Oracle Developer Tools for Visual Studio 2017. I am now finally able to create my database classes within VS2017 without switching back to VS2015.
After the installation I am getting the following error message upon opening an old project and also when creating a new Oracle database connection (in a new project) in Visual Studio 2017:
oracle data provider for .net has been installed without a
machine-wide configuration
(...) Also found anoher version in the GAC that might be incompatible, please uninstall it and restart VS2017
(Poorly translated the german message to english, but you get the point)
Problem is: The version in my GAC is the newer version needed for VS2017. I definitly do not want to uninstall that, but the non machine wide data provider from earlier. I can't find anything about how to do that. Do you guys have any ideas?
Please forgive me if my attempt itself is not smart at all => I haven't installed Oracle Tools for VS before and ran into loads of problems doing so earlier.
Just for the record: I have been trying to google for a solution, but I did not manage to find one. If you got the key-Keywords let me know-
I installed this Version from 6th july 2017
Oracle Developer Tools for Visual Studio 2017 (12.2.0.1.0)
This download includes:
Oracle Developer Tools for Visual Studio 12.2.0.1.0 Oracle Data
Provider for .NET 4, Managed Driver 12.2.0.1.0 Oracle Providers for
ASP.NET 4 12.2.0.1.0
I did a lot of installing of the Oracle tools before getting it to work. Not an expert, but I found many installations of my "Oracle Home". In order to uninstall versions that I did not want, I used the Oracle Universal Installer. This is found (for Windows 7) in "Start Menu -> All Programs -> Oracle-Ora Client-your specific client -> Oracle Installation Products.
Run the installer and choose which oracle home you want to uninstall. You should be able to determine which one is the one that you want to uninstall by looking at Registry Keys, HKLM->Software->Oracle. Also HKLM->SOFTWARE->Wow6432Node->ORACLE. There may be others, search for Oracle keys.
SO figure out which oracle home you want to uninstall and use the Universal Installer to remove it. This should preserve the installation that you want and remove the one you don't. I'm not an expert, just offering what has worked for me.
In Visual Studio 2017, when I create new connection (using the wizard), there is a hard-coded path to a TNSNAMES.ORA file, that can't be changed through the wizard. It is set up through the above-mentioned registry keys. This is key to mapping your Data Source to an actual database. Hope this is helpful.
I am setting up VS 2013 for development with Azure SQL Database (I am new to Azure). I have set up a database on Azure and a Solution on VS 2013. The local machine is Windows 8.1 Pro, with SQL server 2014 Express. I am trying to import the database on Azure into the VS solution. I have changed the Target platform on VS to “Microsoft Azure SQL Database”. I have checked that VS can see the Azure database by using “Test Connection” – all appears well.
When I start the Import Database, I get the following error:
You cannot import a 1025 database because you project’s target platform is set to 130. To learn more about changing your target platform and/or source database, or the supported database editions for specific target platforms, please refer to Import Schema help page.
I cannot find the help referred to in the error message. I have tried changing the target to SQL server 2014, no joy. Can anyone give me some pointers?
This issue could be SSDT version issue. Can you download and install the latest RTM or Preview version of SSDT from https://msdn.microsoft.com/en-us/library/mt204009.aspx
If you need to try out all GA and Preview features of Azure SQL DB, SSDT Preview would cover it. Otherwise SSDT RTM version will provide the stability.
For this:
Created the SQL project
Set target to Azure SQL
Instead of "Import" did "Synchronize"
The numbers refer to they type of sql installation, with 130 being 2014, and 1025 being the azure cloud. Exporting data from azure is a little more complicated than you would expect with a VM, because of the way SQL Azure works behind the scenes. First to literally answer your question here is the link to how to use the import export services so you can get the DB on your local 2014 install. However I imagine what you want to do is actually develop for that server without some painful import export process, which is why I think this link that talks about what tools to use might be more helpful.
Anyway, good luck, SQL azure is very much a product in it's infancy.
I was able to work around the problem by working from VS 2013 and creating the Db in VS and publishing to Azure following the tutorial:
https://azure.microsoft.com/en-us/documentation/articles/web-sites-dotnet-get-started/
I hope I will not need to import a Db in the future!
Thank you to all those that edited & answered. I hope to be able to return the favour.
Importing from Azure into a Sql Server Project works in Visual Studio 2015 with no issues.
We have SQL Server 2005 Enterprise Edition here.
I have been using SQL Server Management Studio 2008 for connecting to our Data Source - this has been working fine for the last year.
When I first got here, I found an article on this site that stated that to install Management Studio, you just down the SQL Server Express 2005/2008 installer. Once installed, it will give you access to features according to the SQL Server version of the Data Source (this worked a treat).
I now need to use SQL Profiler, but it isn't present in SQL Server 2008 Management Studio.
Through searching online, I apparently need to tick the "Management Tools - Complete" option - but this option is not present on the installer.
I am using SQLEXPRWT_x64_ENU.exe to attempt to install this but the feature is not present, it only has "Management Tools - Basic" available.
There does not seem to be a way to point the installer at my Data Source, so that it can see that it will be used with an Enterprise licensed server.
I have tried downloading various versions, but still the "Complete" option is missing.
Is there an installer that I can download with this option enabled, or do I have to ask my support services team to speak to Microsoft to provide a special installation program for me to get this facility?
Any help on this issue will be greatly appreciated.
MS does not provide the SqlProfiler with Express versions of Sql Server. I have been looking for a profiler alternative myself, found ExpressProfiler on Codeplex but its a bit crude and not very configurable. This one works quite nicely: http://www.codeproject.com/Articles/784905/Real-time-Tracing-With-SQL-Server-Express
I wanted to open my database up using sever explorer in visual studio 2012 and it told me I needed to upgrade my database from 3.5 to 4.0. Now when I deploy my application (WP8 project) it tells me Incompatible Database Version. If this was a compatible file, run repair. For other cases refer to documentation. [ Db version = 4000000,Requested version = 3505053,File name = mydatabase.sdf ]. How do I downgrade back to 3.5... I'm using VS2012 - surely if there was a quick upgrade like it did - there is a quick downgrade. :-)
I assume a backup wasn't created by the wizard. You could try using the SQL Server Compact Toolbox to downgrade from 4.0 to 3.5. There's a tutorial here on how to do it for SQL Server to 4/3.5 but it should be the same for CE 4 to 3.5. The idea is to export your database's information to a file that can then be used to create a 3.5 version of the database.
Before you try and downgrades, create a backup of the database just in case something else happens.