简体   繁体   English

VS2010 - 从 C# 执行各种 sql 管理任务的当前选择库是什么

[英]VS2010 - what is the current library of choice for performing various sql admin tasks from C#

I've been tasked with writing a C# Winforms application to simplify some of our common SQL admin tasks.我的任务是编写 C# Winforms 应用程序来简化我们一些常见的 SQL 管理任务。

In the past I've worked with various SQL libraries which have simplified many aspects of the task such as interrogating and amending the schema, creating tables, stored procedures etc but it's been a while.过去,我使用过各种 SQL 库,它们简化了任务的许多方面,例如查询和修改架构、创建表、存储过程等,但已经有一段时间了。

Is SQL SMO still the preferred library of choice (VS2010, SQL Server 2005 and later)? SQL SMO 仍然是首选库(VS2010、SQL Server 2005 及更高版本)吗?

Some of the tasks I need to perform are:我需要执行的一些任务是:

  • Provide a list Servers提供服务器列表
  • Provide a list of Databases when a Server is selected选择服务器时提供数据库列表
  • List tables列表表
  • Iterate through objects (tables, columns, procedures, views, triggers)遍历对象(表、列、过程、视图、触发器)
  • Interrogate object meta data - primarily on tables and columns查询 object 元数据 - 主要针对表和列
  • Create tables, stored procedures and perhaps views and triggers.创建表、存储过程,也许还有视图和触发器。

(I'm developing in VS 2010) (我在 VS 2010 中开发)

thanks谢谢

Matt马特

SMO is what I would say. SMO就是我要说的。

Is there something is doesn't do that you need, or are you just doing a sanity check to make sure you're using the latest?是否有一些您不需要的东西,或者您只是在进行健全性检查以确保您使用的是最新的?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 VS2010中sql脚本的选项卡标签括号中的数字是多少? - What is the number in brackets on the tab label of a sql script in VS2010? 我可以在我的Dev机器上为C#VS2010项目使用哪种轻量级SQL Server类型? - which lightweight SQL Server type could I use on my Dev machine for a C# VS2010 project? VS2010的SQL Server Management Studio - SQL Server Management Studio For VS2010 VS2010外键的C#Windows窗体应用程序更新查询 - C# Windows Form Application Update Query for Foreign Keys VS2010 在已发布的VS2010 C#项目中包括数据库的独立副本 - Including a stand-alone copy of a Database inside Published VS2010 C# Project 在SQL Server Management Studio中从VS2010启动SQL Server 2008 Express - Launching SQL Server 2008 Express from VS2010 in SQL Server Management Studio 从VS2010和SQL Server 2008调试SQL应用程序 - 无法在存储过程中命中断点 - SQL Application Debugging from VS2010 and SQL Server 2008 - unable to hit breakpoint in stored proc Red Gate SQL Compare与VS2010 Ultimate - Red Gate SQL Compare vs. VS2010 Ultimate 从 C# 中的各种方法创建 dll 库文件时出现问题? - Problem Creating dll library file from various methods in C#? 通过防火墙从IDE(VS2010)内部访问SQL数据库 - Accessing SQL database from within IDE (VS2010) thru Firewall
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM