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 ForumsMediaMediaHow to modidy exsting media table?How to modidy exsting media table?
Previous
 
Next
New Post
8/6/2008 9:17 AM
 

Hi,

 

           I am modifing media module. For that I want to add mediatype field in the media table.

So that I changed 03.02.03.SqlDataProvider.sqldataprovider file. I alter the table with media type filed.

Modified add & update SP for media type. Modified GetMedia SP to get media type.

My getmedia SP is as follows

"CREATE PROCEDURE {databaseOwner}{objectQualifier}GetMedia
    @ModuleId    INT
AS

SELECT    m.ModuleID,
    --'Src' = CASE WHEN srcf.FileName IS NULL THEN m.Src ELSE srcf.Folder + srcf.FileName END,
    m.Alt,
    m.Width,
    m.Height,
  'NavigateUrl' = CASE WHEN navf.FileName IS NULL THEN m.NavigateUrl ELSE navf.Folder + navf.FileName END,
    {objectQualifier}UrlTracking.NewWindow,
    {objectQualifier}UrlTracking.TrackClicks,
    m.MediaAlignment,m.Type
FROM    {objectQualifier}Media AS m
    LEFT OUTER JOIN {objectQualifier}Files AS srcf ON m.Src = 'fileid=' + CONVERT(VARCHAR, srcf.FileID)
    LEFT OUTER JOIN {objectQualifier}Files AS navf ON m.NavigateUrl = 'fileid=' + CONVERT(VARCHAR, navf.FileID)
    LEFT OUTER JOIN {objectQualifier}UrlTracking ON m.NavigateUrl = {objectQualifier}UrlTracking.Url and {objectQualifier}UrlTracking.ModuleId = @ModuleID
WHERE    m.ModuleId = @ModuleId
GO"

Then I created new media module insatallation zip file & trried to upload file into DOTNETNUKE4.

I got sql exception ERROR .

Is it any other workaround to customize exsting sqlprovider file?

What is wrong in my case?

Thanks

Varsha

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsMediaMediaHow to modidy exsting media table?How to modidy exsting media table?


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