We got a sql server solution.
The customer has an Access database for all old news from a prior website.
If i setup search variables in Dynamicweb Developer, DW generates an error. The error:
<!--@Search failed for 'GetCustomDatabase'
System.Data.SqlClient.SqlException: Invalid object name 'articles'.
The DW Developer searches only in default database, here sql server.
Is there a workround ? i want the DW Developer to search in my Access database.
Full error message:
<!--@Search failed for 'GetCustomDatabase'
System.Data.SqlClient.SqlException: Invalid object name 'articles'.
at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
at System.Data.SqlClient.SqlDataReader.ConsumeMetaData()
at System.Data.SqlClient.SqlDataReader.get_MetaData()
at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)
at System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
at System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior)
at Dynamicweb.Database.getDataReader(String SQL, String Database, Int32 timeout)
at Dynamicweb.Frontend.SearchV1Frontend.Searchv1_SearchCustomModules(String q, String[,]& arrSearchResult, ModuleSettings ms)
at Dynamicweb.Frontend.SearchV1Frontend.Searchv1_Search(String q)-->