Unable to locate table in VS2019 Server explorer using ODT - oracle

We have recently upgraded from VS15 to VS19 for a legacy WinForms/DevExpress application, and during this upgrade we decided to use ODT for VS (19.3.3). The Oracle database is running 12c Enterprise Edition Release 12.2.0.1.0.
The issue is that I am unable to find a specific table (let's call it Table A)
When we are trying to modify a Datatable, which uses Table A, it seems like VS19 is trying to validate something behind the scenes, and since ODT isn't able to locate the table which is specified in the query, Visual Studio 2019 just crashes. This happens every time I adjust this specific Datatable.
I have tried to create a new dataset, with no success. Table A is the only table, as of now, which isn't available in the table explorer. For reference the table has 170 colums, I don't think that is an issue, as we have tables which work, with more colums.
Is there any way to force VS not to validate the query given? Or some other work around?

Related

Visual Studio Community 2015 SQL - how to populate a schema with test data

Using Microsoft Visual Studio Community 2015 to create a SQL Database.
I haven't constructed a SQL database for maybe 15 years or more, and now I'm falling at the first hurdle.
How do I populate a schema with test data?
I have at the moment the following in my SQL Server Object Explorer panel: two default SQL servers listed (MSSQLocalDB and ProjectsV13 - both marked as localdb), and the current project with tables.
I have no problems in creating tables, but no way apparently to populate them with test data.
What do I need to do? Sorry for the very dumb question.
If you have a database project, create an SQL script in your database project and populate it manually with a good amount of sample data (use your discretion) using SQL INSERT INTO queries.
See here for INSERT statements

How to create Oracle database project using Visual studio 2010?

All,
I have Oracle database project in VS2008. Now i upgraded my project to VS2010.While trying to create a database project , i can see i can't select any other Data source other than SQL Server. But in VS2008 i have option to select different data source.
I read about Toad Extension for Visual Studio and but its also not supported anymore.
http://www.toadworld.com/Blogs/tabid/67/EntryId/519/Creating-an-Oracle-Project-with-Toad-Extension-for-Visual-Studio.aspx
http://toadworld.com/Blogs/tabid/67/EntryId/876/What-happened-to-Toad-Extension-for-Visual-Studio.aspx
How can i set up oracle database project in VS2010. Is there any way through TFS?
Any suggestions??
Thanks
I believe you may want to install the Oracle Data Provider for .NET. (ODP.NET)
http://www.oracle.com/technetwork/topics/dotnet/index-085163.html
EDIT:
also you may want to check this one that supports entity framework
http://www.devart.com/news/2008/directs475.html

Schema Comparison causes Visual Studio 2010 to crash

When I click on Write Updates and then I confirm, VS stops working. What could be the issue here?
I'm trying to update the database project schema directly from the source database using a schema comparison, as it seems it is the absolute best way to sync those, but I seem unable to execute it on the target project. I haven't tried targeting a database.
http://i.stack.imgur.com/lSUpQ.png

Reload database objects in a VS database project?

if I create a SQL Server 2008 Database Project in Visual Studio 2010, then I am able to right click the project and select Import Database Objects and Settings.... I can do that exactly one time (even if I get an error while importing). If I did it one time, the option is grayed-out.
But after I have imported my objects, I couldn't find a way to reload or refresh the objects. A good example would be, that I have a database project of a whole database and someone adds something to the database directly. Now I want to have new table (function, procedure, etc.) in my project, too.
There has to be a better way than copy&paste to add new existing database objects to my database project?
I found this question:
Script all SQL database objects into VS Database project
But I neither have a Schema Compare option, nor can I drag&drop files from the server explorer.
In Visual Studio you should see a menu choice that says Data. If you click on that, you should be able to run a Schema Compare. If you're not seeing that, then there's something wrong with your VS install or the project or maybe both.

Database in version control using Visual Studio 2010 Professional

I've added a SQL Server 2008 database project to my Visual Studio 2010 Professional Edition solution in the hope that it might allow me to include my database in version control.
I can commit the schema files for each database object into version control, however these schema files all script objects as create rather than alter, so are not good for colleges getting my changes and updating their databases.
Is this a good way to get my database into source control?
And what would the workflow be for actually using it to update databases to a given revision without losing all the data associated with dropping and re-creating all the tables?
Update: on Premium and Ultimate versions, there is a schema compare tool which makes this easy. This does not exist on Professional. Is there any straightforward manual workaround?
I'm not sure if you can do this in VS 2010 Professional, but in VS 2010 Premium, you can do a schema comparison (Data -> Schema Compare -> New Schema Comparison) between your project and database, and update changes in either direction.
When going from project to database, VS generates a script that copies existing data into a temporary table before dropping the existing one.
The database project has a deploy step (which is present in my Professional copy of VS2010) that will generate a sql script with your sql objects in it.
The key thing here is if you r-click the project, properties, goto deploy and change target database settings to a specific database, when you deploy it will generate a change script for that specific database so it matches the objects in the project (and in theory keep existing data etc).
You can get it to either generate a sql script, or directly update the database. Generating a script is probably a better idea :)

Resources