I had a similar problem when installing both the 3.2.2 and the 4.02 DotNetNuke framework on two different machines. This is the log I got:
===========================================================================
System.Data.SqlClient.SqlException: The column prefix 'Banners' does not match with a table name or alias
name used in the query.
The column prefix 'Banners' does not match with a table name or alias name used in the query.
The column prefix 'Files' does not match with a table name or alias name used in the query.
The column prefix 'Files' does not match with a table name or alias name used in the query.
The column prefix 'Files' does not match with a table name or alias name used in the query.
The column prefix 'Banners' does not match with a table name or alias name used in the query.
The column prefix 'Banners' does not match with a table name or alias name used in the query.
The column prefix 'Banners' does not match with a table name or alias name used in the query.
The column prefix 'Banners' does not match with a table name or alias name used in the query.
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 [MyDBUser].Prefix_FindBanners
@PortalId int,
@BannerTypeId int,
@GroupName nvarchar(100)
AS
SELECT BannerId,
Banners.VendorId,
BannerName,
URL,
'ImageFile' = case when Files.FileName is null then Banners.ImageFile else Files.Folder +
Files.FileName end,
Impressions,
CPM,
Banners.Views,
Banners.ClickThroughs,
StartDate,
EndDate,
BannerTypeId,
Description,
GroupName,
Criteria,
Banners.Width,
Banners.Height
FROM Prefix_Banners
INNER JOIN Prefix_Vendors ON Prefix_Banners.VendorId = Prefix_Vendors.VendorId
LEFT OUTER JOIN Prefix_Files ON Prefix_Banners.ImageFile = 'fileid=' + convert
(varchar,Prefix_Files.FileID)
WHERE (Prefix_Banners.BannerTypeId = @BannerTypeId or @BannerTypeId is null)
AND (Prefix_Banners.GroupName = @GroupName or @GroupName is null)
AND ((Prefix_Vendors.PortalId = @PortalId) or (@PortalId is null and Prefix_Vendors.PortalId is
null))
AND Prefix_Vendors.Authorized = 1
ORDER BY BannerId
===========================================================================
I solved the problem by creating the SP manually. Also note, that the user does not realize that the SP is missing until a banner mode is selected from the host menu.
Cheers,
Ivan