2012-04-10 106 views
0

我有.sdf爲羅斯文的SQL Server Compact Edition數據庫,我試圖附加該LLBLGEN親,但它拒絕連接,在「數據庫驅動程序」下拉下來我選擇的SQL Server 2000 /等等,等等(還有在下拉沒有的SQL Server CE),並在「服務器名稱」我已經把完整路徑數據庫:無法連接的SQL Server CE 3.5數據庫LLBLGEN臨

C:\Program Files (x86)\Microsoft SQL Server Compact Edition\v3.5\Samples\Northwind.sdf

錯誤我得到當我嘗試測試連接是:

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)

LLBLGen Pro version 3.5. Build March 23rd, 2012 -----[Core exception]-------------------- at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) at System.Data.SqlClient.TdsParser.Connect(ServerInfo serverInfo, SqlInternalConnectionTds connHandler, Boolean ignoreSniOpenTimeout, Int64 timerExpire, Boolean encrypt, Boolean trustServerCert, Boolean integratedSecurity, SqlConnection owningObject) at System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, Boolean ignoreSniOpenTimeout, Int64 timerExpire, SqlConnection owningObject) at System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(String host, String newPassword, Boolean redirectedUserInstance, SqlConnection owningObject, SqlConnectionString connectionOptions, Int64 timerStart) at System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection owningObject, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance) at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance) at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection) at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnection owningConnection, DbConnectionPool pool, DbConnectionOptions options) at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject) at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject) at System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) at System.Data.SqlClient.SqlConnection.Open() at SD.LLBLGen.Pro.Gui.Controls.WizardPages.MetaDataRetrievalWizard_Step_ConnectionData.TestConnectionData(Boolean showSuccess)

我也嘗試添加sdf到s QL Server Management Studio中,然後添加它來LLBLGEN但仍沒有運氣...

+0

SQL Server CE的** NOT **與「常規」SQL Server相同。如果下拉菜單中沒有任何「SQL Server CE」條目,則無法連接。 – 2012-04-10 04:57:40

+0

我怎樣才能得到SQL CE在下拉? – tweetypi 2012-04-10 04:59:20

+0

當我谷歌「LLBLGEN的SQL Server CE」,[這是出現的第一個鏈接](http://www.llblgen.com/documentation/2.6/compactframeworksupport.htm) - 有你有看嗎? ?如果不幫助 - >問LLBLGEN支持... – 2012-04-10 05:15:09

回答

0

原來臨我正在使用不支持.NET精簡框架(如V3.0的停止支持它)的LLBLGEN的版本。