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.0Dumb SQL question...Dumb SQL question...
Previous
 
Next
New Post
11/13/2006 11:21 PM
 

Hi everyone,

I'm in the process of attempting to create my first "real" DNN4 module after following Michael Washington's brilliant tutorials and have run into an error I can't quite figure out.

I am trying to create my SQLDataprovider file (the one that creates the tables and stored procs, not the .vb one) and I keep coming up with an error when I try to run the script telling me that there is an error in the parameters to create the insert procedure.  I've copied the way other developers have done it, but just can't spot the error that is preventing this procedure to create.

Here is the SQL that I have written.  Any help / suggestions would be appreciated...

******* BEGIN CODE BLOCK ******

create procedure {databaseOwner}{objectQualifier}NSG_AddService

@ModuleId int,

@PortalID int,

@ClientName varchar,

@MonCode varchar,

@PanelType varchar,

@CustAddress varchar,

@CustSuburb varchar,

@CustPostCode varchar,

@ContactPhone varchar,

@JobDesc ntext,

@PreferredDate datetime,

@ServiceComplete datetime,

@UserID int,

as

insert into {objectQualifier}NSG_Service (

ModuleId,

PortalID,

ClientName,

MonCode,

PanelType,

CustAddress,

CustSuburb,

CustPostCode,

ContactPhone,

JobDesc,

PreferredDate,

ServiceComplete,

CreatedByUser,

CreatedDate

)

values (

@ModuleId,

@PortalID,

@ClientName,

@MonCode,

@PanelType,

@CustAddress,

@CustSuburb,

@CustPostCode,

@ContactPhone,

@JobDesc,

@PreferredDate,

@ServiceComplete,

@UserID,

getdate()

)

GO

 

 
New Post
11/15/2006 8:58 PM
 
@UserID int,
 
There shouldn't be a comma after the last parameter declaration.
 
 
New Post
11/16/2006 6:09 PM
 

I can't believe I missed that!  I guess that's what 4 days of no sleep and not enough coffee does to you!

 

Thanks Professor...

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Dumb SQL question...Dumb SQL question...


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