Basic question is how to create custom menu items in Object Explorer in Sql Server Management Studio ?
Actually what I want to implement is create menu item which will perform as:
Create CRUD stored procedures for the table on which the user had done right-click.
Possibly other stuff like remove duplicate records.
The executing module could be external written in C#.NET
I have checked SSMS Addins but I think it is different than what I am looking for.. (please correct me if I am wrong)
I hope I am clear enough now !
Here are some links to get you started :
Create SSMS Addin
Extend Functionality in SQL Server 2005 Management Studio with Add-ins
Some Gotchas for SQL 2008 R2
SQL 2008 R2 Breaks SSMS Addins
Related
I am writing a console application using .NET 5, and I am using a LocalDB instance (at least I hope that's the right terminology) to store the data that the application needs. I can see the database (including both tables and all the data in said tables) in both the Server Explorer and SQL Server Object Explorer tabs of Visual Studio 2019, but the Data Sources tab the only thing that shows is the text "This window is not supported for the selected project."
The problem is, all the tutorials I've been able to find rely on that Data Sources tab. From looking at other questions here on Stack Overflow, it looks to me like that tab is deprecated with .NET 5? Am I correct? And how would I write the code to access the database and perform CRUD operations without the Data Sources tab?
Sorry if this is a stupid question; this is my first time using LocalDB.
You should use SQL Server Object Explorer. If you right click on the database that you want to connect, you can see the properties, including connection string. If you have trouble with incorporating Connection string into your code - you need to show the code and the problem.
Whether Data Sources is deprecated or not, as you can see it is not supported for most projects (I think it's just for Windows projects - but I may be wrong). Anyway - you don't need it. And by the way - this approach works regardless of the database you use (LocalDB, SQL Express or regular SQL Server)
I have a funny problem. I can't get my stored procedure in the Server Explorer and push it into my ORM designer. I can't because in my database there are around 100.000 procedures and while VS 2012 does not load the whole procedures, Server Explorer is not responding.
How to solve this issue?
Seems like you need some extensions(Productivity Power Tools) to do your job : go here and get the extension.
That will add a new "Solution Navigator" tabbed control, from which you can make a "GLOBAL" text search to your solution.
It will show you everything that matches the partial entered text (xml files, cs files, classes, methods, etc).
That is very close to what you need.
I'm beginner to visual studio and I want to create local DB for c# project
so i installed sql server compact/sqllite for it
after installing it I created a new connection. Then build table
and then executed the table to see option of table I created under drop down menu "table"
I don't understand how to edit that table
when I select edit top 200 rows I see the screen as in image
just one rows. I can't see 200 rows
and on top of that I can't even write in column
is there any special way to do it
or did I miss something that I should have done
'Edit top 200 rows' means edit the data, not the table design (known as the table schema). If there's no data in the table—which if you just created it sounds like the case—you'll need to enter some before you can edit it.
You enter data in Visual Studio by clicking the cell that you want to edit.
Visual Studio 2015 no longer supports design tools for SQL Server CE, so you probably created a SQL Server LocalDB file instead (note no space in the word). That said, you can install Erik EJ's excellent SQL Server CE/SQLite ToolBox extension (more info here).
This is coming from a 15 year veteran of Delphi who has taken a State Job where Visual Studio 2010 C# is used.
So how do I see data at design time? It seems to elude me. At least it does not seem possible on the surface.
TIA...
You can use SQL Server Object Explorer or Server Explorer to view or modify database structure and data at design time.
Here is a good article series about SSDT (SQL Server Data Tools) which in linked article trains working with SQL Server Object Explorer.
This is a pretty simple question, but I'm learning C# and I'm wondering if when you add a Local Database to your project (The book I'm using is Head First C#) if it's a SQL Server database or just an Access database (or something else).
I'm using just the Windows forms to add a database, and it's filling a bunch of columns in with the names/id's/etc of a database I filled out. It was super easy to do (I can see why people like C# now) But I didn't know if this was an actual SQL Server database you could do inserts/updates and such with. Or something else entirely.
I forgot to mention this is VS 2012 Express.
By default if you're using VS 2012, a LocalDB database will be created. With prior versions of Visual Studio, the database will be SQL Server Express.