从.mdf生成.sql文件

编程入门 行业动态 更新时间:2024-10-21 16:16:39
本文介绍了从.mdf生成.sql文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

之前我从visual studio 2010发布向导生成它。但是现在我在Window 8中使用它 ,它正在给m errro安装 3.5 sp1,当我安装它时它会给erro og 2.0。 那么,是否有蚂蚁方式将我的.mdf文件转换为script.sql。 1.任何软件(不是任何重的喜欢managemnt工作室) 2.any onlin econverter 3.OR通过一些sql命令

Earlier i generate it from visual studio 2010 "Publish Wizard". But now i m using it in Window 8 , it''s giving m errro to install 3.5 sp1, when i installing that it give erro og 2.0. So, is there ant way to conver my .mdf files to script.sql. 1.any software (not any heavy like managemnt studio) 2.any onlin econverter 3.OR by some sql command

推荐答案

如果你有Windows 8(不是RT),你可以安装SQL Management Studio 2010和2012.那些也有脚本数据库功能。 但你可以编写自己的应用程序来编写脚本。请参阅以下文章 - 所有使用SMO: http:// www.sqlteam/article/scripting-database-objects-using-smo-updated [ ^ ] www.mssqltips/sqlservertip/1833/generate-scripts-for-database-objects-with-smo-for- sql-server / [ ^ ] philergia.wordpress/2011/02/28/using-powershell-and-smo-to-script-sql- server-database-objects-3 / [ ^ ] If you have Windows 8 (not RT), you can install SQL Management Studio 2010 and 2012. Those also have "Script Database" function. But you can write your own application to do scripting. See following articles - all using SMO: www.sqlteam/article/scripting-database-objects-using-smo-updated[^] www.mssqltips/sqlservertip/1833/generate-scripts-for-database-objects-with-smo-for-sql-server/[^] philergia.wordpress/2011/02/28/using-powershell-and-smo-to-script-sql-server-database-objects-3/[^]

在窗口8上安装SQL Server可能会遇到问题。在Windows 8上安装SQL Server时,.NET Framework 3.5不会自动安装。因此,在此之前您需要手动安装它。但是您无法使用脱机安装程序安装.NET framework 3.5(通过双击setup.exe)。按照以下链接安装离线模式: msdn.microsoft/en-us/library/hh506443.aspx [ ^ ] You may facing issue on installing SQL Server on window 8. While installing SQL Server on Windows 8 .NET framework 3.5 is not installing automatically. So before that you need to install it manually.But you can not install .NET framework 3.5 with an offline installer (by double clicking the setup.exe). Follow the link below to install offline mode: msdn.microsoft/en-us/library/hh506443.aspx[^]

更多推荐

从.mdf生成.sql文件

本文发布于:2023-10-27 23:11:43,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1534811.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:文件   mdf   sql

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!