Thursday, November 20, 2008 ..:: 討論區 ::.. Register  Login
 
All time, we have 195 new thread(s) and 685 new post(s)
The most popular thread has been 模組設定的問題?
The most active thread has been 模組設定的問題?
綜合討論區
 
  綜合討論區  一般討論區  Dotnetnuke 綜合討論...  转到另一台电脑
Previous Previous
 
Next Next
New Post 5/30/2008 1:31 AM
Unresolved
User is offline pkh198504
3 posts
小班


转到另一台电脑 
Modified By pkh198504  on 6/7/2008 7:22:16 PM)

我用的是SQL2000,SQL2000的数据库我用detach和attach转到另一电脑的(也是SQL2000),dotnetnuke的源文件是全部COPY过去的,但是报错When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections.”

我知道是下面连接SQL2000的代码注释掉了!当然,我在原电脑(SQL2000数据库)上不会报错

<!-- Connection String for SQL Server 2005 Express -->
    <add name="SiteSqlServer" connectionString="Data Source=.\SQLExpress;AttachDbFilename=|DataDirectory|Database.mdf;Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient" />
    <!-- Connection String for SQL Server 2000/2005
    <add
      name="SiteSqlServer"
      connectionString="Server=(local);Database=DotNetNuke;uid=sa;pwd=sa;"
      providerName="System.Data.SqlClient" />
   -->
  </connectionStrings>
  <appSettings>
    <!-- Connection String for SQL Server 2005 Express - kept for backwards compatability - legacy modules   -->
    <add key="SiteSqlServer" value="Data Source=.\SQLExpress;AttachDbFilename=|DataDirectory|Database.mdf;Integrated Security=True;User Instance=True" />
    <!-- Connection String for SQL Server 2000/2005 - kept for backwards compatability - legacy modules
    <add key="SiteSqlServer" value="Server=(local);Database=DotNetNuke;uid=sa;pwd=sa;"/>
    -->

上面是我在原电脑上的WEB。CONFIG的配置,可以用。但是转到另一台就不行了,为什么?

别外,我用的是SQL2000,那下面的代码为什么会注释掉,而且可以有我那原电脑上可用?(我是按‘DotNetNuke高级编’程‘那书安装配置的)

  <!-- Connection String for SQL Server 2000/2005
    <add
      name="SiteSqlServer"
      connectionString="Server=(local);Database=DotNetNuke;uid=sa;pwd=sa;"
      providerName="System.Data.SqlClient" />
   -->

谁装把dotnetnuke在SQL2000数据库上的?问题有点长,请帮我看看吧!

 
New Post 6/1/2008 8:20 PM
User is offline Eric Peng
278 posts
coolcoolgame.com
碩士


Re: 转到另一台电脑 

根據你提供的設定, 你使用的是SQL 2005 Express的connection stream, 所以你應該是在你的電腦上有安裝SQL Express 2005, 而且DNN安裝時建立的是2005的資料庫. 但是2005的資料庫, 基本上是無法轉到2000的資料庫的, 若你想要轉到2000的資料庫, 在一開始就必須使用2000來安裝DNN才辦得到.


Dotnetnuke 教學, 討論
 
New Post 6/8/2008 9:18 AM
User is offline pkh198504
3 posts
小班


Re: 转到另一台电脑 
Modified By pkh198504  on 6/7/2008 7:21:42 PM)

       在我电脑上的确没有安装SQL2005 EXPRESS,装的是SQL2000,但确确实实装上去了,所有在SQL2000上没有表,只的存储过程.所以我之前发了个贴叫"SQL2000与SQL2005如何传数据?"

后来我下了个DNN4.8.3的版本,WEB.CONFIG里的

<Connection String for SQL Server 2005 Express>  下面的几句话 注释了.

改为引用<Connection String for SQL Server 2000/2005>里面的那段话,   这样很容易的就装上了DNN.  而我那SQL2000数据库里面也有N多表和N多存储过程.   

 

 
Previous Previous
 
Next Next
  綜合討論區  一般討論區  Dotnetnuke 綜合討論...  转到另一台电脑
合作伙伴及贊助商
DNN 相關資源
DNN 參考網站 (若有變更請通知站長)
Copyright 2008 by CoolCoolGame   ::  Privacy Statement  ::  Terms Of Use