I created a database project in VS2010, created the connection to my SQL Server 2008 R2 database and I know it's connected because I can write a SQL command and it works. It even auto-suggests table names as I type.
I want to be able to use SSMS-style things like browse table names & stored procedures, right-click on them and do the tasks.
But I'm not even able to see the tables. I have both Solution Explorer and Schema View on the right side and it shows the whole tree, but not a single table under Schemas >> dbo >> tables.
Here's the schema view
And here is the server explorer view after adding the server.
What am I missing?
if i understand you right, Use server explorer you can find it in VIEW tap OR Click
Ctrl + Alt + S
And connect to your server and database it will show every thing on that database
Related
I am relatively new to Visual Studio and apologies if I word things incorrectly, but I am currently going through this tutorial for a login system that I can connect to my SQL Server database. I could work up to step 8 where you need to connect the SQL Server using Data Binding, but the menu gives me no option to add a new data source:
(Image showing no options when I select data binding in Properties).
The data source box also gives me no option to add a new data source. Instead, when I right click it says that no commands are available: (Data source box).
I am currently using the CLR .NET Framework (4.8). I have tried to look for solutions to this, but I cannot find anything that applied to me. Thanks.
I have a database project in my solution and a database imported from windows azure via SSMS "Import data-tier app..." option. When using schema compare, the comparison shows system "service brokers" (message types, queues, etc.) in the delete section. When I apply the update, everything works, but these system service brokers are not deleted and appear again and again.
I suppose that it is not possible to delete them, but is there a possiblity to ignore them in the schema compare?
If you click on the settings icon (looks like a cog on the compare tool toolbar) and then navigate to the Object Types tab you should be able to select/deselect the object types you wish to include/ignore in your comparison.
The icons in the Object Types tab match those in the comparison so it should be pretty easy to ignore what you wish to ignore.
I am attempting to add a connection to an Oracle database through Server Explorer. The 'Test' Connection' is successful, however whenever I go to view the list of tables / schemas, I can only see the one associated with my login.
I realise this sounds silly, but when I use the same login/password through Toad for Oracle, I am still allowed to browse "All Schemas" to find the tables I want.
Is this possible through Server Explorer? Or do I need to find a specific login for the schema I want to access?
Solution (just so it's here and not just on the OTN forums)
Right-click on connection in Server Explorer
Choose filters
Select the "Dispalyed Schemas" row in the property grid (it should be selected by default)
In the Property/Condition/Value fields, click the "..." button for Value
Pick any schemas you want to see and click Ok.
Conversely, instead of using the dialog that appears after clicking the "..." button, you can list the schemas separated by commas in the Value textbox.
Oracle's way of dealing with users and schemas is different from SQL Server's. So I suspect the default Visual Studio behaviour won't work properly with Oracle.
Have you installed the free Oracle Developer Tools for Visual Studio? Find them here. If you do that then you can manually add the other schemas to the filter of your main connection. I found instructions in this OTN forum thread:
"highlight the connection node you
want to moidy and choose filters or
right click on the specific connection
node and choose modify then click on
the filters tab to modify the
filters."
I agree this is clunky, and it should be done automatically. I guess there's a limit to how VS can be extended.
And should I add it to the source code repository?
It is for state persistence for Schema View.
The state of this view is saved locally, there is no need to add it to source code.
The SQL Server project type has a special Schema View window and an extra Data menu item.
Also the Solution Explorer gets two extra buttons: Database Schema View and Reanalyze Project.
When the Schema View is open, 4 menu items under Data|Schema View are activated with the same functionality as 4 of the buttons in the Schema View window (a rather strange button in the Schema View window is the Solution Explorer button to return to the Solution Explorer..)
Note e.g. the External elements and Built in elements menu items in the Schema View window.
When you select Built in elements schema's of built-in db-roles become visible (e.g. db_owner).
When you select External elements schema's defined in different projects may become visible.
Such settings are saved in the schemaview file.
Oracle IDE to visually = wizard (not writing sql) create views? any names? (eg like toad)
SQL Server Management Studio = can create views visually for sql server what is same for oracle
Have you tried SQL Developer?
Once installed and connected - try the following.
1) Right click on Views icon
2) New View
3) Click Advanced check box
4) Interface appears which allows you select tables, where clauses etc.
EDIT: Just thought I would point out that the above allows the use of a "wizard" type interface to create a view. Not sure if that meets your requirement of "Visual"
Want a purley visual experience? Try DeZign for Databases by Datanamic. I haven't purchased the tool, but after an initial evaluation I'm wanting it. It lets you drag and drop items onto a visual designer and then generates the DDL for you.
A little late, by here's an online designer - WWW SQL Designer
Its mainly for MySQL but nevertheless pretty useful