VS2010设置无法在其他电脑上运行 [英] VS2010 setup is not working in other pc

查看:90
本文介绍了VS2010设置无法在其他电脑上运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我正在使用vs2010,vb.net和带有窗口表单应用程序的sql server 2008 R2。



i已生成来自我们的sql server 2008 R2 db中的sql server 2005脚本的db。



i在我们的bebug路径中创建了setup和attachdbfile。我的设置成功运行

在本地电脑。安装程序不能在其他电脑上工作。



安装完设置后,我会收到这种类型的错误,如下所述。



Hi All,
I am using vs2010,vb.net and sql server 2008 R2 with window form application.

i have generated db from sql server 2005 script in our sql server 2008 R2 db.

i have created setup and attachdbfile in our bebug path. my setup is working successfully
in local pc. setup isn''t woking in other pc.

after installed setup, i am getting this type of error that''s mention below.

the database .mdf cannot be opened because it is verison 655. this server support version 612 and earlier. A downgrade path is not supported.

A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.





如何在其他电脑上成功运行设置。



帮助将不胜感激..... ....



问候

Mukesh



how to run setup successfully in other pc.

help will be appreciated .........

Regards
Mukesh

推荐答案

它''很容易解释,但修复它可能会遇到更多问题...

版本655文件由SQL Server 2008创建,但服务器最多只支持版本612,即SQL 2005。



您无法在早期版本的SQL Server中打开SQL 2008(或SQL 2008 R2)文件。您必须使用要部署的相同或早期版本的SQL来开发软件。



在实践中,他们可能做的最好的事情就是单独安装SQL 2005 Express版本,用于使用软件在2008和2005版本之间进行开发和复制数据。我强烈建议您不要在开发PC上安装它 - 我已经安装了完全由SQL服务器安装的Visual Studio安装,特别是降级。使用不同的备用机器或首先备份整个PC!
It''s quite simple to explain, but you may have more problems fixing it...
Version 655 files are created by SQL server 2008, but the server supports only up to version 612, which is SQL 2005.

You cannot open SQL 2008 (or SQL 2008 R2) files in earlier versions of SQL server. You must develop your software using the same or earlier version of SQL that you intend to deploy to.

In practice, they best thing you can probably do is install a separate SQL 2005 Express edition for development and copy the data between the 2008 and 2005 versions using software. I would STRONGLY recommend that this is not installed on your development PC - I have have had Visual Studio installations completely bolloxed by SQL server installations, particularly downgrades. Use a different, spare machine or backup the whole PC first!


这篇关于VS2010设置无法在其他电脑上运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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