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

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsGalleryGalleryErrors when Start Sql execution: 02.00.00.SqlDataProvider fileErrors when Start Sql execution: 02.00.00.SqlDataProvider file
Previous
 
Next
New Post
1/7/2007 11:29 PM
 

hi

when i setup a new module: i have a issue:  

Can u help me? plz

 

StartJob Begin Sql execution
Info Executing 01.00.00.SqlDataProvider
StartJob Start Sql execution: 01.00.00.SqlDataProvider file
EndJob End Sql execution: 01.00.00.SqlDataProvider file
 
Info Executing 02.00.00.SqlDataProvider
StartJob Start Sql execution: 02.00.00.SqlDataProvider file
Failure SQL Execution resulted in following Exceptions: System.Data.SqlClient.SqlException: Line 7: Incorrect syntax near '[MaP],'. at System.Data.SqlClient.SqlCommand.ExecuteNonQuery() at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(SqlConnection connection, CommandType commandType, String commandText, SqlParameter[] commandParameters) at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(String connectionString, CommandType commandType, String commandText, SqlParameter[] commandParameters) at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(String connectionString, CommandType commandType, String commandText) at DotNetNuke.Data.SqlDataProvider.ExecuteScript(String Script, Boolean UseTransactions) CREATE PROCEDURE dbo.A_ictu_PhongbanSelect @strQuery nvarchar(500) AS DECLARE @sql nvarchar(1000) SELECT @sql = 'SELECT ' '[MaP],' '[ModuleId],' '[Tenphong] ' ' FROM A_ictu_Phongban ' @strQuery EXEC(@sql) System.Data.SqlClient.SqlException: Line 8: Incorrect syntax near '[test1],'. at System.Data.SqlClient.SqlCommand.ExecuteNonQuery() at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(SqlConnection connection, CommandType commandType, String commandText, SqlParameter[] commandParameters) at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(String connectionString, CommandType commandType, String commandText, SqlParameter[] commandParameters) at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(String connectionString, CommandType commandType, String commandText) at DotNetNuke.Data.SqlDataProvider.ExecuteScript(String Script, Boolean UseTransactions) CREATE PROCEDURE dbo.VinaStar_DNN_GetArticleByStrQuery @strQuery nvarchar(500) AS DECLARE @sql nvarchar(1000) SELECT @sql = 'SELECT ' '[test1],' '[test2] ' 'FROM Test ' @strQuery EXEC(@sql)
EndJob End Sql execution: 02.00.00.SqlDataProvider file
 
EndJob Finished Sql execution

 
StartJob Begin Sql execution
Info Executing 01.00.00.SqlDataProvider
StartJob Start Sql execution: 01.00.00.SqlDataProvider file
EndJob End Sql execution: 01.00.00.SqlDataProvider file
 
Info Executing 02.00.00.SqlDataProvider
StartJob Start Sql execution: 02.00.00.SqlDataProvider file
Failure SQL Execution resulted in following Exceptions: System.Data.SqlClient.SqlException: Line 7: Incorrect syntax near '[MaP],'. at System.Data.SqlClient.SqlCommand.ExecuteNonQuery() at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(SqlConnection connection, CommandType commandType, String commandText, SqlParameter[] commandParameters) at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(String connectionString, CommandType commandType, String commandText, SqlParameter[] commandParameters) at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(String connectionString, CommandType commandType, String commandText) at DotNetNuke.Data.SqlDataProvider.ExecuteScript(String Script, Boolean UseTransactions) CREATE PROCEDURE dbo.A_ictu_PhongbanSelect @strQuery nvarchar(500) AS DECLARE @sql nvarchar(1000) SELECT @sql = 'SELECT ' '[MaP],' '[ModuleId],' '[Tenphong] ' ' FROM A_ictu_Phongban ' @strQuery EXEC(@sql) System.Data.SqlClient.SqlException: Line 8: Incorrect syntax near '[test1],'. at System.Data.SqlClient.SqlCommand.ExecuteNonQuery() at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(SqlConnection connection, CommandType commandType, String commandText, SqlParameter[] commandParameters) at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(String connectionString, CommandType commandType, String commandText, SqlParameter[] commandParameters) at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(String connectionString, CommandType commandType, String commandText) at DotNetNuke.Data.SqlDataProvider.ExecuteScript(String Script, Boolean UseTransactions) CREATE PROCEDURE dbo.VinaStar_DNN_GetArticleByStrQuery @strQuery nvarchar(500) AS DECLARE @sql nvarchar(1000) SELECT @sql = 'SELECT ' '[test1],' '[test2] ' 'FROM Test ' @strQuery EXEC(@sql)
EndJob End Sql execution: 02.00.00.SqlDataProvider file
 
EndJob Finished Sql execution

thanks 4 responsing quickly

best wish to u

 

 

 
New Post
1/8/2007 12:49 PM
 

Sorry to hear about your issue, but this is the forum for the GALLERY module.  It appears that you are trying to load something for the  A_ictu_Phongban   module.  Which I am not familiar with.  You will need to contact the support people for that module.

But.. from the SQL debug you sent 'SELECT ' '[MaP],' '[ModuleId],' '[Tenphong] ' ' FROM A_ictu_Phongban 

It appears that you have quotes around your select parameters, but I'm assuming that the parameters are supposed to be fields/columns in the database (given you wrapped them in []) and fields/columns don't need quotes around them.

 
New Post
1/8/2007 8:21 PM
 
Thanks 4 responsing .
this is my proc
/-------------------------

SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS OFF
GO

CREATE PROCEDURE {databaseOwner}{objectQualifier}A_ictu_PhongbanSelect
    @strQuery nvarchar(500)
AS
DECLARE @sql nvarchar(1000)
SELECT @sql = 'SELECT '
    +'[MaP],'
    +'[ModuleId],'
    +'[Tenphong] '
    +' FROM {objectQualifier}A_ictu_Phongban '   
    + @strQuery   
    EXEC(@sql)
GO
/-------------------------

this is proc is repaired as u said:

SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS OFF
GO

CREATE PROCEDURE {databaseOwner}{objectQualifier}VinaStar_DNN_GetArticleByStrQuery2
@strQuery nvarchar(500)
AS

DECLARE @sql nvarchar(1000)
SELECT  @sql = 'SELECT [test1],[test2] FROM {objectQualifier}Test '+ @strQuery
EXEC(@sql)
GO
/----------------------------

i am trying delete qoutes but apear errors:

System.Data.SqlClient.SqlException: Line 7: Incorrect syntax near '@strQuery'. at System.Data.SqlClient.SqlCommand.ExecuteNonQuery() at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(SqlConnection connection, CommandType commandType, String commandText, SqlParameter[] commandParameters) at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(String connectionString, CommandType commandType, String commandText, SqlParameter[] commandParameters) at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(String connectionString, CommandType commandType, String commandText) at DotNetNuke.Data.SqlDataProvider.ExecuteScript(String Script, Boolean UseTransactions) CREATE PROCEDURE dbo.VinaStar_DNN_GetArticleByStrQuery2 @strQuery nvarchar(500) AS DECLARE @sql nvarchar(1000) SELECT @sql = 'SELECT [test1],[test2] FROM Test ' @strQuery EXEC(@sql)

thanks u very much

if can: Admin or Mod can answer me ? i need it very quickly

happiness to u

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsGalleryGalleryErrors when Start Sql execution: 02.00.00.SqlDataProvider fileErrors when Start Sql execution: 02.00.00.SqlDataProvider file


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