Developer forum

Forum » Development » Access -> SQL Server

Access -> SQL Server


Reply

I couldn't find the description for how to switch from running solution on Access to SQL Server so I just tried...


 


I've made a SQL login [username = dw_usr, password = dw_pwd].


Database has the default name of the empty SQL package [DefaultEmptyData].


The server name is [vmserver].


 


I did the following changes (some values may be incorrect or even missing):




      dw_pwd

      ms_sql

      dw_usr

      DefaultEmptyData

      vmserver

     

     


     

     


     

     


     

     


     

     



 


I'm not even sure 'ms_sql' is the correct word but either way, I get the following error when I try to simply launch the solution with http://localhost/


 


-------------------------------------


Invalid column name 'True'.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.


Exception Details: System.Data.SqlClient.SqlException: Invalid column name 'True'.


Source Error:


An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. 


Stack Trace:




[SqlException (0x80131904): Invalid column name 'True'.]

   System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) +862234

   System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +739110

   System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +188

   System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +1956

   System.Data.SqlClient.SqlDataReader.ConsumeMetaData() +31

   System.Data.SqlClient.SqlDataReader.get_MetaData() +62

   System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) +297

   System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async) +903

   System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) +132

   System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) +32

   System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) +122

   System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior) +12

   System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior) +7

   System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +141

   System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +137

   System.Data.Common.DbDataAdapter.Fill(DataSet dataSet) +86

   Dynamicweb.Database.getDataSet(String SQL, String Database, Boolean WithSchema) +305

   Dynamicweb.ParagraphTemplateCollectionClass..ctor(String strSQL, Boolean boolPreview) +85

   Dynamicweb.Frontend.Content.setData(Int32 PageID) +311

   Dynamicweb.Frontend.Content.CreateContent(Int32 PageID) +106

   Dynamicweb.Frontend.Content.getContent(Int32 PageID) +1348

   Dynamicweb.Frontend.PageView.SetPageTemplateValues() +4823

   Dynamicweb.Frontend.PageView.Output() +186

   CustomModules.Default1.Page_Load(Object sender, EventArgs e) +216

   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +15

   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +34

   System.Web.UI.Control.OnLoad(EventArgs e) +99

   System.Web.UI.Control.LoadRecursive() +47

   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061


 


--------------------------------------------------------------------------------

Version Information: Microsoft .NET Framework Version:2.0.50727.832; ASP.NET Version:2.0.50727.832


-------------------------------------


Any suggestions?


Replies

 
Reply

make sure that, the database version fitts the Application, seems like thats your problem.

 
Reply
jed@dkis.dk wrote:


make sure that, the database version fitts the Application, seems like thats your problem.





Both are latest downloaded releases.


Server is SQL Server 2005.

 
Nicolai Høeg Pedersen
Reply

It seems like Dynamicweb has a minor error here.


 


Because you changed Database/Type in Globalsettings.aspx to ms_sql (which is wrong) Dynamicweb thinks that you are running SQL, except in the methods Database.sqlBool and Database.SqlDate  which formats date and boolean expresssions based on the database type.


 


So change the setting to ms_sqlserver which is correct.


 


Information on setting up Dynamicweb for SQL-Server can be found in installation guide found here: http://documentation.dynamicweb.dk/Installation-23324.aspx.


 


I've added a fix for the error for the next Service Release.

 
Reply
NP wrote:


It seems like Dynamicweb has a minor error here.




 




Because you changed Database/Type in Globalsettings.aspx to ms_sql (which is wrong) Dynamicweb thinks that you are running SQL, except in the methods Database.sqlBool and Database.SqlDate  which formats date and boolean expresssions based on the database type.




 




So change the setting to ms_sqlserver which is correct.




 




Information on setting up Dynamicweb for SQL-Server can be found in installation guide found here: http://documentation.dynamicweb.dk/Installation-23324.aspx.




 




I've added a fix for the error for the next Service Release.




Hehe yeah I assumed 'ms_sql' was wrong but had nothing better. I'll have a look at the description you linked.
 
Reply
pl@xtendit.dk wrote:

NP wrote:





It seems like Dynamicweb has a minor error here.








 








Because you changed Database/Type in Globalsettings.aspx to ms_sql (which is wrong) Dynamicweb thinks that you are running SQL, except in the methods Database.sqlBool and Database.SqlDate  which formats date and boolean expresssions based on the database type.








 








So change the setting to ms_sqlserver which is correct.








 








Information on setting up Dynamicweb for SQL-Server can be found in installation guide found here: http://documentation.dynamicweb.dk/Installation-23324.aspx.








 








I've added a fix for the error for the next Service Release.








Hehe yeah I assumed 'ms_sql' was wrong but had nothing better. I'll have a look at the description you linked.


ms_sql -> ms_sqlserver did the job.

 

You must be logged in to post in the forum