BugNET

Open source issue tracking & project management
Welcome to BugNET Register | Login |

BugNET Forums

 
  Forum  Development  General develop...  BugNet_Project_CreateNewProject store procedure missing a paramter
Previous Previous
 
Next Next
New Post 3/1/2007 5:14 AM
User is offline div
5 posts
No Ranking


BugNet_Project_CreateNewProject store procedure missing a paramter 

the sp should be modify like the following , the red text part are missing. int database of svn 221

ALTER PROCEDURE [dbo].[BugNet_Project_CreateNewProject]
 @Name nvarchar(50),
 @Code nvarchar(3),
 @Description  nvarchar(80),
 @ManagerUserName nvarchar(255),
 @UploadPath nvarchar(80),
 @Active int,
 @AccessType int,
 @CreatorUserName nvarchar(255),
 @AllowAttachments int
AS
IF NOT EXISTS( SELECT ProjectId,Code  FROM Project WHERE LOWER(Name) = LOWER(@Name) OR LOWER(Code) = LOWER(@Code) )
BEGIN
 DECLARE @ManagerUserId UNIQUEIDENTIFIER
 DECLARE @CreatorUserId UNIQUEIDENTIFIER
 SELECT @ManagerUserId = UserId FROM aspnet_users WHERE Username = @ManagerUserName
 SELECT @CreatorUserId = UserId FROM aspnet_users WHERE Username = @CreatorUserName
 
 INSERT Project
 (
  Name,
  Code,
  Description,
  UploadPath,
  ManagerUserId,
  CreateDate,
  CreatorUserId,
  AccessType,
  Active,
  AllowAttachments
 )
 VALUES
 (
  @Name,
  @Code,
  @Description,
  @UploadPath,
  @ManagerUserId ,
  GetDate(),
  @CreatorUserId,
  @AccessType,
  @Active,
  @AllowAttachments
 )
  RETURN @@IDENTITY
END
ELSE
  RETURN 0

 

 
New Post 3/1/2007 3:00 PM
User is offline admin
634 posts
bugnetproject.com
1st Level Poster




Re: BugNet_Project_CreateNewProject store procedure missing a paramter 
Thanks, fixed and committed to the repository

Davin Dubeau
BugNET - Core Developer

 
Previous Previous
 
Next Next
  Forum  Development  General develop...  BugNet_Project_CreateNewProject store procedure missing a paramter

Forum Policy

These Discussion Forums are dedicated to the discussion of the BugNET issue tracker.

For the benefit of the community and to protect the integrity of the project, please observe the following posting guidelines:
1. No Advertising.
2. No Flaming or Trolling.
3. No Profanity, Racism, or Prejudice.
4. Site Moderators have the final word on approving/removing a thread or post or comment.
5. English language posting only, please.