"Add new table" option missing - Visual Studio 2015 - sql

I'm working on Visual Studio 2015 and whenever I try to add a table from the server explorer menu, it only shows two options Properties and Refresh.
There have been answers for this problem, but I have already tried them, like, adding SQL data tools and repairing visual studio.
SQL data tools were already installed and even after repairing the problem persists.
So please suggest me how can I add tables to the database.

Thanks for the comments, but i solved the problem.
Open the command prompt and type the command:
C:\sqllocaldb create "MyInstance"
MyInstance refers to your sql server instance, it can be v11.0 but for me it was mssqllocaldb .
If it runs successfully, it will show you result stating 'Instance created' and you will be able to add the tables.
But if you get error regarding creation of instance then delete the instance by typing the command in command prompt:
C:\sqllocaldb delete "MyInstance"
and then create the instance.
I hope this helps.

Close your visual studio.
Download SQL Server Data Tools
Install it in your pc
Then Close if successfully installation.
Now Open your visual studio.
Hope this will help.
Enjoy :)

Another reason "Add New table" Not showing is you don't have installed SQL server Data Tools.So just go ahed and downlaods SQL server data tool ISO from official Website
https://go.microsoft.com/fwlink/?linkid=863443&clcid=0x409
Install the SQL Server Data Tool And Restart Visual Studio

Download and Install SQL server data from the link given below,
https://download.microsoft.com/download/3/4/6/346DB3B9-B7BB-4997-A582-6D6008796846/Dev12/EN/SSDTSetup.exe
After installing the SQL server you will be able to add a new table.
Table > right click> Add new Table.

Related

SQL Server Management Studio not opening files

I just installed Microsoft SQL Server Express and Management Studio, the Management Studio opens but will not open files. I am getting the following message when I try to open a SQL file:
error message
Any help would be so much appreciated. Thank you
This is the known issue in SSMS 18.0 preview 6 and before.
Double-clicking on a .sql file launches SSMS, but does not open the actual script.
As workarounds, please drag and drop the .sql file onto the SSMS editor.
If it is possible, you can use the SSMS 17.9.1 instead. Here is the download link.
https://learn.microsoft.com/en-us/sql/ssms/download-sql-server-management-studio-ssms?view=sql-server-2017
This may be due to the fact that you're asking to grab something from an unaccessable directory. I'm not too sure, try reinstalling ssms if possible and reinstall sql express and see what it does

How to Extract DDLs from Microsoft Parallel Data Warehouse?

Please suggest How to Generate the scripts from Microsoft Parallel Data Warehouse...
I have already tried using SSMS 2016 by using my PDW credentials...
But i failed to Generate the scripts...
Regards,
Abhishek
The first thing I would try is to go to SSMS 2016 and go to the Tools menu and choose Check for Updates. Install the latest update out in the last month or so supports Azure SQL DW which is a similar MPP surface area. It may support PDW but I'm not sure.
If that doesn't work, go the tried and true route. Search the Microsoft download center for Analytics Platform System Appliance Update and then choose the version that matches your PDW. Download the .chm help file. Then you have to right click on the .chm file and choose Properties then unblock it in order to open it.
Then search for "Install SQL Server database tooling for Visual Studio" and it documents how to install SQL Server Data Tools for Visual Studio and connect SQL Server Object Explorer. Then you can expand and view a list of tables/sprocs/etc and script them out by right clicking on a table or sproc in SQL Server Object Explorer.

SQL Server Import and Export Wizard: Data destination issue

I am trying to get familiar with SQL Server commands and procedures. So I have downloaded from my university's Dreamspark account the Visual Studio 2015 Enterprise Edition.
My idea (call it personal project) was to try and import an excel table with dimensions 34162x465. And then within Visual Studio to try and manipulate it. For that reason I downloaded the SSDT for Visual Studio 2015 in order to use the SQL Server Import and Export Wizard.
I successfully researched and solved the first shortcoming, which was a Microsoft.ACE.OLEDB.12.0 problem.
But then, after I chose the excel file as a source, and when I reached the next step, to pick a destination, I chose SQL Server Native Client 11.0. The problem is that I cannot assign a SQL server because the drop down list is empty.
**I have already set up a local server (C:) and a database in Visual Studio's SQL environment, but I have no idea why the Wizard cannot detect its name.
Apologies if the question sounds ambiguous or I have missed any crucial details. Also, I have searched in various forums and online for similar issues but I couldn't find a solution.

Cant see Mysql data source at the add connect to database

I have visual web developer 2010 express and mysql/connector 6.4.3
When I press on the database explorer tab -> connect to database, I need to choose data source but I dont see mysql data source as I shold.
I've tried to reinstall it..
I have both visual studio 2008 and visual web developer 2010 express.
Btw, during the mysql/connector I only saw that he configured vs2008..
How can I fix that?
p.s.
I saw here that its not supported, is it true??
Thanks.
This is an old, but to answer your question I was having the same issue until I tried it on the ultimate version. It picks it right up. You just need to re-install the connector.
So short answer, yes. :(

Visual Studio error when trying to open dbproj files

I have Visual Studio 2008 Database Edition, and everything worked great until the first time I tried to load a .dbproj file. These database project files work for the other developers I work with, but when I try to open it, I just get an error message "Object reference ot set to an instance of an object."
It's probably the same problem this guy is having, although he didn't do a good job of describing it and has no solution.
Every other kind of project file loads and builds and runs normally. dbproj files all generate this cryptic error. I just tried a fresh removal and reinstall of Visual Studio 2008 DE to no avail. Could this have something to do with my SQL 2005 installation? (This also works normally through SQL Server Management Studio.)
**
UPDATE
**
Probably even more importantly, this same error occurs when I try to make a new dbproj file. Every other type of project can be created no problem.
You need to tell Visual Studio the correct instance of SQL Server to use for validation.
Tools>Options>DatabaseTools
Change the settings in "Data Connections" and "Design-time Validation Database" to reflect the correct instance.
After many failed re-configurations and re-installations, a member of my team discovered the problem!
Under Tools > Options > Database Tools > Design-time Validation Database, there is an option to set your SQL Server Instance Name. Visual Studio automatically picks this when it's installed.
The key is that Visual Studio doesn't necessarily pick the right one. I happen to have 3 SQL server instances on my machine. SQLEXPRESS (a 2005 instance that Visual Studio installed alongside itself), SQLEXPRESS2005, a 2005 instance I installed, and SQLEXPRESS2008, which I also installed.
Visual Studio had configured itself to connect to the SQLEXPRESS2008 instance, even though it only supports SQL2005 dbproj files by default. By opening this dialogue, and updating the server instance name, the error no longer appeared and I was able to open dbproj files: