MSSQL --> webCreateAcc can't insert?

Results 1 to 5 of 5
  1. #1
    Apprentice Audioslave is offline
    MemberRank
    Apr 2011 Join Date
    12Posts

    config MSSQL --> webCreateAcc can't insert?

    Hello people,

    Can someone help me ?
    Im using this script for my registerpage. ( See 2nd Script)
    But when I want to inset it in my db Ill get the error:

    PHP Code:
    Msg 208Level 16State 6Procedure webCreateAccLine 22
    Invalid object name 
    'dbo.webCreateAcc'
    Thx
    Audioslave

    PHP Code:
    USE [ACCOUNT_DBF]
    GO
    /****** Object:  StoredProcedure [dbo].[webCreateAcc]    Script Date: 11/14/2010 13:35:58 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO

    ALTER PROCEDURE 
    [dbo].[webCreateAcc
        @
    account     VARCHAR(15),
        @
    password     VARCHAR(36),
        @
    email        VARCHAR(120)

    AS

    SET NOCOUNT  ON

    DECLARE @DateActivated AS CHAR(8)

    IF 
    NOT EXISTS (SELECT account FROM ACCOUNT_TBL WHERE account = @accountBEGIN
        INSERT INTO ACCOUNT_TBL 
    (account, [password], id_no1id_no2isusememberrealnamecash
            
    VALUES (@account, @password, @password, @password'T''A''F''0')

        
    SET @DateActivated =  CONVERT(CHAR(8), GETDATE()-1112 ) --Is the date today 1
        
    --UPDATE ACCOUNT_TBL_DETAIL SET BlockTime = @DateYesterday WHERE account = @userid        
        
    --INSERT INTO ACCOUNT_TBL_DETAIL (accountgamecodetesterm_chLoginAuthorityregdateBlockTimeEndTimeWebTimeisuse)
        --    
    VALUES (@account'A000''2''F'GETDATE(), '20990101''20990101''20050101''O')

        
    INSERT INTO ACCOUNT_TBL_DETAIL (accountgamecodetesterm_chLoginAuthorityregdateBlockTimeEndTimeWebTimeisuseemail)
            
    VALUES (@account'A000''2''F'GETDATE(), @DateActivated'20990101''20050101''O', @email)

    END
    --ELSE BEGIN
    --print '->Account exists = ' 
    --print @account 
    --END 


  2. #2
    Apprentice Audioslave is offline
    MemberRank
    Apr 2011 Join Date
    12Posts

    Re: MSSQL --> webCreateAcc can't insert?

    Please help me!!
    #sorryfordoublepost

  3. #3
    Account Upgraded | Title Enabled! Hilroy is offline
    MemberRank
    Aug 2008 Join Date
    Canada, Quebec.Location
    226Posts

    Re: MSSQL --> webCreateAcc can't insert?

    Look like the stored procedure "webCreateAcc" as never been created.So try changing

    ALTER PROCEDURE [dbo].[webCreateAcc]

    for

    CREATE PROCEDURE [dbo].[webCreateAcc]


    Cause at the moment, by "Altering", you are trying to edit a none-existant Stored procedure.


    I'm not so sure about it tough, since the error is spotted on line 22.
    Last edited by Hilroy; 15-04-11 at 07:54 AM.

  4. #4
    Apprentice Audioslave is offline
    MemberRank
    Apr 2011 Join Date
    12Posts

    Re: MSSQL --> webCreateAcc can't insert?

    Thanks men ! Your the best :)

  5. #5
    Account Upgraded | Title Enabled! Hilroy is offline
    MemberRank
    Aug 2008 Join Date
    Canada, Quebec.Location
    226Posts

    Re: MSSQL --> webCreateAcc can't insert?

    Quote Originally Posted by Audioslave View Post
    Thanks men ! Your the best :)
    Your welcome buddy !



Advertisement