Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - error on install
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

error on install

 Post Reply Post Reply
Author
Bill View Drop Down
Newbie
Newbie


Joined: 16 February 2004
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote Bill Quote  Post ReplyReply Direct Link To This Post Topic: error on install
    Posted: 16 February 2004 at 12:03pm

Have just completed the install procedure, first changing the constants:

Const strDbTable = "bds"
Const strDbProc = "bds"

in common.asp and msSQL_server_setup.asp

Then ran the msSQL_server_setup.asp file and it said installation successful. But then, when I went to the forum/index.asp page to have a look for the first time, I got the error message:

Microsoft OLE DB Provider for SQL Server error '80040e14'

Could not find stored procedure 'wwfSpSelectConfiguration'.

/forum/common.asp, line 283

It would appear to be looking for a SP with the old 'wwf' name prefix. Can someone give me a steer on this? Is it a page that's corrupted, or am I going to have to do a complete reinstall? If so, I presume I am going to have to go through and drop all the tables and SPs first?

(Unfortunately I can't use enterprise manager on the site I'm trying to install the forum on, so I cannot 'see' what SPs are there etc.

Thanks

Bill

Back to Top
Semikolon View Drop Down
Senior Member
Senior Member


Joined: 09 September 2003
Location: Norway
Status: Offline
Points: 1718
Post Options Post Options   Thanks (0) Thanks(0)   Quote Semikolon Quote  Post ReplyReply Direct Link To This Post Posted: 16 February 2004 at 12:22pm

if the SPs and tables where installed before you changed the prefix, you will need to drop everything and reinstall, or rename everything..

you also have to change the prefixes in both common.asp files and the sql setup file

Back to Top
Bill View Drop Down
Newbie
Newbie


Joined: 16 February 2004
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote Bill Quote  Post ReplyReply Direct Link To This Post Posted: 16 February 2004 at 12:27pm

No! As explained, I changed the prefixes in common.asp and the sql set up file, and only THEN did the installation of the SPs and tables.

But the index.asp  page is still looking for the old wwf... SP!

Back to Top
thekiwi View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 23 November 2003
Location: New Zealand
Status: Offline
Points: 392
Post Options Post Options   Thanks (0) Thanks(0)   Quote thekiwi Quote  Post ReplyReply Direct Link To This Post Posted: 16 February 2004 at 12:45pm
Originally posted by Bill Bill wrote:

No! As explained, I changed the prefixes in common.asp and the sql set up file, and only THEN did the installation of the SPs and tables.

But the index.asp  page is still looking for the old wwf... SP!

Just to make sure we have all bases covered:

  • THere is no index.asp, its default.asp?

The error you are getting is because of this line:

If strDatabaseType = "SQLServer" Then
 strSQL = "EXECUTE " & strDbProc & "SelectConfiguration"

As you can see, the prefix is a variable set a few lines above, and therefore to get the error you have, the variable must be set as wwfSP.

Back to Top
thekiwi View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 23 November 2003
Location: New Zealand
Status: Offline
Points: 392
Post Options Post Options   Thanks (0) Thanks(0)   Quote thekiwi Quote  Post ReplyReply Direct Link To This Post Posted: 16 February 2004 at 12:47pm
Originally posted by Bill Bill wrote:

(Unfortunately I can't use enterprise manager on the site I'm trying to install the forum on, so I cannot 'see' what SPs are there etc.

Thanks

Bill

Use this:


CREATE PROCEDURE dbo.listProcedures 
AS 
BEGIN 
    SET NOCOUNT ON 
    SELECT 
        ROUTINE_NAME 
    FROM 
        INFORMATION_SCHEMA.ROUTINES 
    WHERE 
        ROUTINE_TYPE='PROCEDURE' 
        AND OBJECTPROPERTY 
        ( 
            OBJECT_ID(ROUTINE_NAME), 
            'IsMsShipped' 
        ) = 0 
    ORDER BY 
        ROUTINE_NAME 
END 
GO

then in ASP


<% 
    set conn = CreateObject("ADODB.Connection") 
    conn.open "<connection string>" 
    set rs = conn.execute("EXEC dbo.listProcedures") 
    do while not rs.eof 
        response.write rs(0) & "<br>" 
        rs.movenext 
    loop 
    rs.close: set rs = nothing 
    conn.close: set conn = nothing 
%>

Back to Top
thekiwi View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 23 November 2003
Location: New Zealand
Status: Offline
Points: 392
Post Options Post Options   Thanks (0) Thanks(0)   Quote thekiwi Quote  Post ReplyReply Direct Link To This Post Posted: 16 February 2004 at 12:49pm

PS you can do the same for showing the tables:

SELECT name 
    FROM sysobjects 
    WHERE xtype='U' 
    ORDER BY name 
 
-- or 
 
SELECT TABLE_NAME 
    FROM INFORMATION_SCHEMA.TABLES 
    WHERE TABLE_TYPE='BASE TABLE' 
    ORDER BY TABLE_NAME 

Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 16 February 2004 at 1:04pm
There are two common.asp files make sure that the prefix for the tables and stored procedures are changed in both.

At the moment becuase you have changed the prefix for the stored procedures and tables it is still looking for the old prefix name because you have not updated all the contents for the sp's and table prefixes.
Back to Top
Bill View Drop Down
Newbie
Newbie


Joined: 16 February 2004
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote Bill Quote  Post ReplyReply Direct Link To This Post Posted: 16 February 2004 at 1:20pm

Thanks for all your help. I had been blind - I had not seen the second common.asp file.

Really appreciate all your assistance!

Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.