LightSwitch Beta 1 寻找 SQL Express 而不是完整的 SQL 实例

在解决 RIA 安装问题后这里,我仍然收到以下错误.没什么特别的 - 我尝试基于完整 SQL 2005 实例中现有数据库的数据源创建一个新屏幕

After resolving issues with RIA installation here, I'm still getting this following error. Not much special - I tried to create a new screen based off of data sources from an existing database in a full SQL 2005 instance

建立一个错误连接到 SQL Server 实例'.\SQLEXPRESS'.与网络相关的或特定于实例的错误发生时建立到 SQL 的连接服务器.未找到服务器或无法访问.验证实例名称正确且该 SQL服务器配置为允许远程连接.(提供者:SQL 网络接口,错误:26 - 错误定位服务器/实例指定)

An error occurred while establishing a connection to SQL Server instance '.\SQLEXPRESS'. A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)

我想更正自动生成的配置文件中的连接字符串.尽管 Visual Studio 似乎不认为该文件在重建时被覆盖,但错误仍会继续出现.

I've tried to correct the connection string in the, I guess, autogen'd config file. Even though Visual Studio doesn't seem to think that the file is overwritten on rebuild, the error continues to appear.

如何将 LightSwitch 与完整的 SQL 2005 而不是 SQL Express 一起使用?

How can I use LightSwitch with full SQL 2005 rather than SQL Express?

推荐答案

似乎在本地工作时,LightSwitch 使用 SQL Server Express.它将成员身份、角色和其他身份验证信息放在这里.我不知道有什么方法可以在本地解决这个问题,但是当您发布"您的项目时,您可以使用不同的数据库/服务器.您也可以使用任何您喜欢的服务器/数据库作为您的数据源.

It seems when working Locally, LightSwitch uses SQL Server Express. It puts it's Membership, Roles, and other authentication information here. I don't know any way to get around this locally, but when you go to "Publish" your project, you're given the ability to use a different database/server. You can also use whatever server/database you'd like for your data sources as well.

希望在 V1 之前,他们将允许您更改它.但是我还没有找到方法,不会不断覆盖配置.

Hopefully, before V1, they'll allow you to change that. But I haven't found a way yet, without the config being overwritten constantly.

相关文章