Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0How to debug a stored procedureHow to debug a stored procedure
Previous
 
Next
New Post
11/27/2007 3:11 AM
 

Hello everybody,

I'm creating a C# module. I've several stored procedure, and all  works fine. But I've a stored procedure which cause me some problems. When I call the controller method which calls this stored procedure, I've got this exception:

Incorrect syntax near ')'. 

I've tried to debug the stored procedure with a right click on the procedure and Step Into Stored Procedure, and all works fine. But I'm not able to step into the stored procedure from the code, while I'm debugging my application.

Anyone can help me please?

Thanks in advanced.

 
New Post
11/27/2007 3:33 AM
 

Here there are the error details:

System.Data.SqlClient.SqlException was unhandled by user code
  Message="Line 1: Incorrect syntax near ')'."
  Source=".Net SqlClient Data Provider"
  ErrorCode=-2146232060
  Class=15
  LineNumber=1
  Number=170
  Procedure=""
  Server="SRV-DATI\\SVILUPPO"
  State=1
  StackTrace:
       in System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
       in System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
       in System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
       in System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
       in System.Data.SqlClient.SqlDataReader.ConsumeMetaData()
       in System.Data.SqlClient.SqlDataReader.get_MetaData()
       in System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
       in System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)
       in System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)
       in System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
       in System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)
       in System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior)
       in Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteReader(SqlConnection connection, SqlTransaction transaction, CommandType commandType, String commandText, SqlParameter[] commandParameters, SqlConnectionOwnership connectionOwnership)
       in Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteReader(String connectionString, CommandType commandType, String commandText, SqlParameter[] commandParameters)
       in Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteReader(String connectionString, String spName, Object[] parameterValues)
       ................................

 
New Post
11/27/2007 10:55 AM
 

I've solved the problem, there was a braket en plus in my stored procedure. Now all works.

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0How to debug a stored procedureHow to debug a stored procedure


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out