如何在SV 2017中重新创建具有数据集xsd的SQL Server数据库结构? [英] How to re-create SQL Server database structure having dataset xsd in SV 2017?

查看:80
本文介绍了如何在SV 2017中重新创建具有数据集xsd的SQL Server数据库结构?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我丢失了存储在SQL Server 2016中的数据库 - 但我仍然有一个基于数据库创建的数据集。如何从数据集重新创建数据库结构?数据并不重要,只有一个测试数据...

解决方案

这可以使用Visual Studio中的服务器资源管理器完成。下图显示了该过程的开始。从这里你创建表格。对于列,如果您的数据位于.xsd文件中,则查看字段定义并在新表中匹配它们。


在旁注中,通常存储数据在C:\Program Files \ Microsoft SQL Server \ MSSQL11.MSSQLSERVER \ MSSQL \DATA下,除非你删除它,否则数据库文件仍然只是分离。


< img alt =""src ="https://social.msdn.microsoft.com/Forums/getfile/1216660">


一个数据库的屏幕截图




I lost my database stored in SQL Server 2016 - but I still have a dataset which was created basing on the database. How to re-create database structure from dataset? Data are not important, there was only a test data...

解决方案

This can be done using Server Explorer in Visual Studio. The images below show the start of the process. From here you create table(s). For the columns, if your data is in a .xsd file then look at the field definitions and match them in the new table(s).

On a side note, data is usually stored under C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\DATA and unless you deleted it the database files are still there just detached.

A screenshot of one database


这篇关于如何在SV 2017中重新创建具有数据集xsd的SQL Server数据库结构?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆