|
 | |
 | ferdz | Asp.Net User |
| DB error: Invalid object name 'dbo.Events' | 5/9/2005 9:07:24 PM |
0 |   |
|
Hi, I am getting the error posted down below. I used the script ClubAdd.exe from MSDN to add the club tables to my SQL2000 database. I noticed in the error it is looking for dbo.Events and dbo.Locations. These tables exists in my database. However, the tables the owner is not dbo but instead my database login name. Is that the reason for the error? I don't think that that matters, but any way I would appreciate your input to this.
Thanks
Server Error in '/' Application.
Invalid object name 'dbo.Events'. Invalid object name 'dbo.Locations'. 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 object name 'dbo.Events'. Invalid object name 'dbo.Locations'.
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 object name 'dbo.Events'.
Invalid object name 'dbo.Locations'.]
System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) +785922
System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +684534
System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +207
System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream,
BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +1751
System.Data.SqlClient.SqlDataReader.ConsumeMetaData() +37
System.Data.SqlClient.SqlDataReader.get_MetaData() +58
System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) +213
System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async) +570
System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) +134
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, String srcTable) +83
System.Web.UI.WebControls.SqlDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments) +1837
System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +17
System.Web.UI.WebControls.DataBoundControl.PerformSelect() +129
System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +70
System.Web.UI.WebControls.GridView.DataBind() +4
System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +82
System.Web.UI.WebControls.CompositeDataBoundControl.CreateChildControls() +69
System.Web.UI.Control.EnsureChildControls() +87
System.Web.UI.Control.PreRenderRecursiveInternal() +41
System.Web.UI.Control.PreRenderRecursiveInternal() +161
System.Web.UI.Control.PreRenderRecursiveInternal() +161
System.Web.UI.Control.PreRenderRecursiveInternal() +161
System.Web.UI.Control.PreRenderRecursiveInternal() +161
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1787
|
| |
 | ferdz | Asp.Net User |
| Re: DB error: Invalid object name 'dbo.Events' | 5/10/2005 10:00:20 PM |
0 |   |
| |
 | ferdz | Asp.Net User |
| Re: DB error: Invalid object name 'dbo.Events' | 5/13/2005 2:48:52 PM |
0 |   |
|
SOLVED!
I thought I would get answer from this forum. Obviously not. Perhaps my question was so stupid that no one bothers. Anyway, I'm happy that in the end I am contributing instead. So for those of you who wil encounter this error here is the solution.
Well, the solution would be to edit all queries with "dbo." in field names. This is easily done by search and replace. (I really feel stupid now ) |
 | btech_rohit | Asp.Net User |
| Re: DB error: Invalid object name 'dbo.Events' | 12/30/2005 6:05:53 PM |
0 |   |
|
These are the files where "dbo." is to be replaced with "" 1)Default.aspx 2)Events_edit.aspx 3)Events_view.aspx No other files need to be touched for the change. and "dbo." is case sensitive. Its not the same as "Dbo." and these change is to be applied at only those places, where you find "dbo.Events" or "dbo.Locations" If some one needs the changed files i can help. i am having the success full implementation of club starter kit on www.rohitjain.com ferdz wrote:Hi, I am getting the error posted down below. I used the script ClubAdd.exe from MSDN to add the club tables to my SQL2000 database. I noticed in the error it is looking for dbo.Events and dbo.Locations. These tables exists in my database. However, the tables the owner is not dbo but instead my database login name. Is that the reason for the error? I don't think that that matters, but any way I would appreciate your input to this.
Thanks
Server Error in '/' Application.
Invalid object name 'dbo.Events'. Invalid object name 'dbo.Locations'. 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 object name 'dbo.Events'. Invalid object name 'dbo.Locations'.
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 object name 'dbo.Events'.
Invalid object name 'dbo.Locations'.]
System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) +785922
System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +684534
System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +207
System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream,
BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +1751
System.Data.SqlClient.SqlDataReader.ConsumeMetaData() +37
System.Data.SqlClient.SqlDataReader.get_MetaData() +58
System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) +213
System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async) +570
System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) +134
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, String srcTable) +83
System.Web.UI.WebControls.SqlDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments) +1837
System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +17
System.Web.UI.WebControls.DataBoundControl.PerformSelect() +129
System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +70
System.Web.UI.WebControls.GridView.DataBind() +4
System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +82
System.Web.UI.WebControls.CompositeDataBoundControl.CreateChildControls() +69
System.Web.UI.Control.EnsureChildControls() +87
System.Web.UI.Control.PreRenderRecursiveInternal() +41
System.Web.UI.Control.PreRenderRecursiveInternal() +161
System.Web.UI.Control.PreRenderRecursiveInternal() +161
System.Web.UI.Control.PreRenderRecursiveInternal() +161
System.Web.UI.Control.PreRenderRecursiveInternal() +161
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1787
|
|
Club Site Starter Kit ASP.NET 2.0 http://www.rohitjain.com |
 | iperez_genius | Asp.Net User |
| Re: DB error: Invalid object name 'dbo.Events' | 5/9/2007 7:40:07 AM |
0 |   |
|
not working for me... when i replaced all the dbo. i foujnd they were all located in the xsd sheet. I didn't find them anywhere else expect in the stored procedures...which after i changed the procedure it wouldn't let me save... Does anyone have a solution for me? Ilan |
 | pooja.indulkar | Asp.Net User |
| System.Data.SqlClient.SqlException: Invalid object name 'frontpagedata' | 6/8/2007 1:41:34 PM |
0 |   |
|
Server Error in '/' Application.
Invalid object name 'frontpagedata'.
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 object name 'frontpagedata'.
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: Invalid object name 'frontpagedata'.]
System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream) +742
System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior) +45
TBZOnline.Components.Database.GetDataReadFromQry(String strQry) in c:\inetpub\wwwroot\DotNetCSharp\shaze_2\Components\Database.cs:311
TBZOnline.Components.frontpageData.GetFrontPageData() in c:\inetpub\wwwroot\DotNetCSharp\shaze_2\Components\Product.cs:525
tbzOnline.Default.Page_Load(Object sender, EventArgs e) in c:\inetpub\wwwroot\DotNetCSharp\shaze_2\Default.aspx.cs:85
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +750
|
Version Information: Microsoft .NET Framework Version:1.1.4322.2379; ASP.NET Version:1.1.4322.2379 |
|
| |
Free Download:
|
|