Print Page | Close Window

Access to SQL Server - Step by Step

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=12975
Printed Date: 29 March 2026 at 3:40pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Access to SQL Server - Step by Step
Posted By: netmasterjohn
Subject: Access to SQL Server - Step by Step
Date Posted: 13 December 2004 at 8:25pm
There seems to have been a lot of request for a step by step guide on how to migrate the Access version to SQL Server, so here is my attempt at giving you one.

1. Open Enterprise Manager for the SQL Server

2. Create a blank (empty) database on the SQL Server

3. Go to Tools, Data Transformation Services, Import Data

4. Use the Import wizard to get the info from the Access .mdb file:

    - Choose a datasource: Use DropDown menu and scroll up until you see Microsoft Access
    - Select Microsoft Access from the dropdown list, this will change the options on the tab
    - In the FileName section, browse to where you have the WebWiz database stored and select the file
    - Add a username and or password if necessary (by default it isn't)

    Click Next and this brings you to the Destination tab
    - Leave the default Destination value of "Microsoft OLEDB Provider for SQL Server"
    - Fill in your server information on this tab
    - Don't forget to select your new empty database from the dropdown list at the bottom
   
    Click Next and this brings you to the "Specify Table Copy or Query" tab
    - Select the first option "Copy Tables and Views from the Source Database"
   
    Click Next to see a list of all the tables that you can copy to the new database
    - Select All

    Click Next and let it go.

After all the data is imported (this should be error free, if it wasn't, maybe you already had some data
in your destination database, delete it all and try again)

Then modify the SQL_server_connection.asp file in the Forum/Admin folder

Lines 59, 60, 61 and 62 are the important ones... Just fill in the name of your SQL Server, User
name, password and the name of the empty database that you just populated.

Save your changes and then run the msSQL_server_setup.asp file in the main Forum folder.

This will create all the necessary stored procedures to run the SQL Server version of WebWiz.

It will generate some errors, this is simply because it is trying to create the tables that you've already
imported from the access file. Don't worry about them. The important thing to get out of running this script
are all the stored procedures.

Once the msSQL_server_setup.asp script is finished, you are done.

Check your tables in the SQL Server via Enterprise Manager if you want to make sure the data is there, but
you should be able to log into the forum and use it right away.

This process worked perfectly for me and hopefully it will help you as well but I do not guarantee anything. :-)




Replies:
Posted By: ukakht
Date Posted: 14 December 2004 at 6:20am
I've tried all,  but no luck,
 
I can't post nor can send pm
 


Posted By: ukakht
Date Posted: 14 December 2004 at 6:27am
I get this error when sending pm or posting posts

ADODB.Recordset error '800a0cb3'

Current Recordset does not support updating. This may be a limitation of the provider, or of the selected locktype.

/webwiz/pm_post_message.asp, line 306

Please help me
 


Posted By: netmasterjohn
Date Posted: 14 December 2004 at 10:15am
Sorry about that, it seems my initial post was premature.

Here is an updated answer on how to do the conversion from Access to SQL Server.

Step 1. Create the empty database on SQL Server
Step 2. Modify the SQL_server_connection.asp file in the Forum/Admin folder (Lines 59, 60, 61 and 62) to enter your SQL Server info.
Step 3. Run the msSQL_server_setup.asp file in the main Forum folder.
(By running this script now, it avoids the problem that was created before that would not let you post)
Step 4. Do the Tools, Data Transformation Services, Import Data thing in Enterprise manager as described above except for 2 changes.
 - Do the import in 2 stages. First import All tables from the access database EXCEPT the Group, Thread and BuddyList tables.
After all the rest are imported, then go back and import the Thread and BuddyList tables. Leave the Group table alone because it is already in the SQL Server version (created by the Setup script)

- When you are importing the tables in the Enterprise Manager wizard, in the "Select Source Tables and Views" window, click on the ... under the Transform column for each table that you are importing and in the "Column Mappings and Transformations" window that opens, click "Delete Rows in Destination Table" and make sure the "Enable Identity Insert" option is checked.
Do this for each table that you import and you should be fine. I have done these steps and have full functionality.


Posted By: Corey Bryant
Date Posted: 14 December 2004 at 10:25am
Originally posted by ukakht ukakht wrote:

I get this error when sending pm or posting posts

ADODB.Recordset error '800a0cb3'

Current Recordset does not support updating. This may be a limitation of the provider, or of the selected locktype.

/webwiz/pm_post_message.asp, line 306

Please help me
 
I get the same thing.  I was told it had to to with the locktype: To be updateable, the locktype must be at least optimistic.  But I am at a loss on that part.  No problems converting or anything.


-------------
Corey
http://www.loudcommerce.com - Merchant Accounts


Posted By: netmasterjohn
Date Posted: 14 December 2004 at 11:27am
Follow my second post, ignore the first step by step. The stuff that causes the "ADODB.Recordset error '800a0cb3'" is eliminated by following the steps in my second post. It is simply a matter of how the tables and stored procedures are created, doing things the way I did it the first time tries to do too many things at once and the Recordset can't handle it.

Doing things the second way works great.

Check out my site for proof.

http://www.epcmedic.com


Posted By: persepherone
Date Posted: 15 December 2004 at 6:21am
how many members is good enough for moving on to SQL server.......
wat i want to know is that though it is well known that access supports small database sizes with fewer DB calls but exactly how much members & how many daily/simultaneoul hits R  gud enough to move onto SQL ????


Posted By: dj air
Date Posted: 15 December 2004 at 8:49am
i use SQL for all my databases. what ever they are for.

but if you know your site is going to get bigger then i advise to use SQL if available to you, or you find its getting a bit slugish.

there are exact figures as it can depend on the load and state of the server.

for a couple of friends its more wearth while staying with access.

the main thing that good with SQL is that it can search faster and better performance.




Posted By: xeerex
Date Posted: 15 December 2004 at 8:53am
Originally posted by wrote:

how many members is good enough for moving on to SQL server.......
wat i want to know is that though it is well known that access supports small database sizes with fewer DB calls but exactly how much members & how many daily/simultaneoul hits R  gud enough to move onto SQL ????


This has been discussed to no end here. In general with 15 or more concurrent connections, you should move to Access. Number of members nor database size is as important as the concurrent connections. Now, the larger the database size, the slower it will run as Access is not as fast in indexing as SQL Server.

There are exceptions to the rules. Here are the stats from my largest forum, which runs on Access.

We have 14143 Forum Members
Avg New Members per day: 45.02 (excluding today)
New Members today (so far): 6 | Yesterday: 12
# of Members Visiting Site Today: 96 (excluding new members)
Launch Date of Site: February 4th, 2004 (314 days of operation)
We have 4173 Posts in 748 Topics in 21 Forum(s)

At peak times, I will have between 80-200 active users. Most of the time, I average around 15-20.


-------------
http://webspacegeeks.com - Need Hosting, Domains, Dedicated Servers?
http://www.smartergeek.com - web design | pc support | training | podcasts | video production


Posted By: ukakht
Date Posted: 16 December 2004 at 8:14am
Hey GUYSS :(

I can't give check mark to the "Delete rows"  its just disabled,
 
ANY IDEAS??

I am using a shared database on other server
 


Posted By: dimoss
Date Posted: 08 January 2005 at 2:13pm
Originally posted by netmasterjohn netmasterjohn wrote:

Follow my second post, ignore the first step by step. The stuff that causes the "ADODB.Recordset error '800a0cb3'" is eliminated by following the steps in my second post. It is simply a matter of how the tables and stored procedures are created, doing things the way I did it the first time tries to do too many things at once and the Recordset can't handle it.

Doing things the second way works great.

Check out my site for proof.

http://www.epcmedic.com
 
Good job!!!
I did locally and works great..No problems with post or pm...(..I don't know for the rest features because i haven't checked yet)
 
Just for your info...Migration from 7.01 Access to 7.9 SQL
 
However .... how I will put this online to my web SQL Server????
 


Posted By: Ozoyo2
Date Posted: 27 January 2005 at 1:59pm

Well, this is my third day on this and it is getting very frustrating.

I've tried both method described on this thread. The first imports all the data correctly but then, there is this recordset error and it is impossible to post on the new forum.

With the other method I get errors all over the place while importing the tables, this is one example :




Posted By: WebWiz-Bruce
Date Posted: 28 January 2005 at 4:31am
The simplest way I have found, but requires MS SQL Server and Access installed on your local machine and a second SQL Server at your web host, is:-
  1. Create the database a blank SQL Server database at your web host
  2. Run the 'msSQL_server_setup.asp' file to create the database tables, Stored Procedure's etc. on your SQL Server database at your web host
  3. Use Enterprise Manager to delete ALL the newly created tables on the SQL Server database created at your web host, just leaving the Stored Procedures.
  4. Now on your local machine open your original Access database in Access
    1. From the Tools menu in Access, select the 'Upsize Wizard'
    2. Choose the Upsize option to 'Create a new database'
    3. Choose 'local as your SQL Server and 'Use Trusted Connection'
    4. Next select ALL the tables to upsize
    5. Leave all other options as default
  5. Once your database tables have been upsized using this method, use the 'Export Tool' in Enterprise Manager to upload the tables to the SQL Server database at your web host which you created the Stored Procedures in earlier
  6. That should be it
This is the only method that I have found so far that works for me.

I did look into witting an ASP application that could transfer files across, but the problem is that the primary key for many tables is an Auto number, which means if there are any deleted posts, topics, members, etc. it would screw up the transfer process.


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: Ozoyo2
Date Posted: 28 January 2005 at 4:43am
Thanks Borg, I will try that straight away. I will install the SQL server trial and do that locally.

I was thinking as well that the deleted topics, members etc might be part of the problem.
I was about to try cleaning up the table and resync the whole forum but that would mean loosing post stats and getting stoned to death by my forum members.Dead

Thanks for everything Borg, I'll keep you informed!


Posted By: Ozoyo2
Date Posted: 28 January 2005 at 10:05am
Darn !

It was looking good but the posts are not here ...
http://82.195.144.38/forum/default.asp - http://82.195.144.38/forum/default.asp

I think the Thread table is not copied correctly.

Can the fact of copying a locked forum be a problem?
At this stage all suggestions are welcome.Cry


Posted By: Ozoyo2
Date Posted: 08 February 2005 at 3:22am
Right, I have been strugling for more than two weeks with that conversion...

Borg, it still does not work with the local upsize method. I get the usual Recordset error :

ADODB.Recordset error '800a0cb3'

Current Recordset does not support updating. This may be a limitation of the provider, or of the selected locktype.

/forum/post_message.asp, line 746

The only lead I have now is to try to check and repair keys and relashionship manually.

As matter of fact, I have created two databases a blank database (as it is once it is created ith the mssql setup ASP file) and the one with the imported data. When I compare, I can see that the one with the imported data does not have all the keys and relationship the blank one has.
 
Should I try to recreate those manually after the data is imported or is it a waste of time ?
 
I am upgrading from 7.01 Access to 7.9 Sql. Are the two versions of DB different, should I try to upgrade from 7.01 Access to 7.9 Access first ?
 
Thank you
 
 


Posted By: polecat
Date Posted: 09 February 2005 at 4:38pm
We got no errors, but the posts don't show!!!
I mean...I can see the forums, the topics, but when I enter to a thread, it says "There's no forum posts in this topic" or something like that.

Anyone know what's happening???


-------------
أˢT

http://www.rataforo.com.ar - Rataforo - Rata Blanca forums
http://www.jmbosi.com.ar - Mi personal website


Posted By: dj air
Date Posted: 09 February 2005 at 4:43pm
sounds like the threds table didn't sync the Topic ID's


Posted By: Ozoyo2
Date Posted: 09 February 2005 at 4:56pm
Well, after more than two weeks of total nightmare I think I managed Wacko.

I used the method described by Borg but had to recreate all relationships and keys manually. On top of that some fields had been modified by Access' upsizing wizzard and had to be changed back (default values missing, Identity insert, etc.)
 
Originally posted by polecat polecat wrote:

We got no errors, but the posts don't show!!!
I mean...I can see the forums, the topics, but when I enter to a thread, it says "There's no forum posts in this topic" or something like that.

Anyone know what's happening???
 
Polecat, if you upsized from access your tblThread might be too big for the upsizing wizzard to convert it properly (it happened to me). If you look at you imported table, you will see that it is empty.

The only thing I found was to upsize from Access and then import the Thread table from Access with SQL enterprise manager.


Posted By: polecat
Date Posted: 09 February 2005 at 5:00pm
And there's any solution?

-------------
أˢT

http://www.rataforo.com.ar - Rataforo - Rata Blanca forums
http://www.jmbosi.com.ar - Mi personal website


Posted By: sfd19
Date Posted: 09 February 2005 at 8:42pm
Originally posted by -boRg- -boRg- wrote:

I did look into witting an ASP application that could transfer files across, but the problem is that the primary key for many tables is an Auto number, which means if there are any deleted posts, topics, members, etc. it would screw up the transfer process.
 
I am not really firm with SQL but would it not be possible to import the Access auto-number fields as simple integers into SQL and then change these fields back to 'auto-number' (identity property that would be in SQL)?
 
But maybe I am missing something.


-------------
Politics, economy & social issues: http://www.studentsfordemocracy.net - StudentsforDemocracy.net


Posted By: Ozoyo2
Date Posted: 10 February 2005 at 2:26am
Originally posted by polecat polecat wrote:

And there's any solution?
 

I did not find any solution with the Access upsize wizzard. The size is the issue. My tblThread had around 100 000 rows, I have tried with an older DB with a 1000 tblThread rows table and it worked. 

What I have done (and I can't be sure it is the best solution) is to use Access to export all the tables and then use MSSQL enterprise manager to erase and import the rows in the tblThread table.
 


Posted By: polecat
Date Posted: 10 February 2005 at 2:33pm
I found the solution....

Now....my question is....in my Access forums I've added some mods...(like the Top 10 posters, or the Member Tittle, or the birthday mod).

Is there too much difference between the coding of the default.asp or the register.asp of the Access version, than the SQL version???
I mean...what could happen if I upload my modified "default.asp" o "register.asp" from the access version, to my SQL version in the server?

Could colapsate something? I'm gonna try, but if it happens, i really appreciate some explanations LOLLOL

Thanx for reading!! Byeeeee WinkWink


-------------
أˢT

http://www.rataforo.com.ar - Rataforo - Rata Blanca forums
http://www.jmbosi.com.ar - Mi personal website


Posted By: emiduran
Date Posted: 11 February 2005 at 4:08pm
Well, the solution for my:

1-Open the mdb file with Access.

2-Export the data to SQL using the "Upsize Wizard" to a new SQL Server Database (located in your computer).

3-From the local SQL-Server Export the Database to the websever SQL-Server using the third method option for the list named like "copy objects and data between ths sql server databases" (or similar, sorry but i have the spanish version).

4-Finally run the msSQL_server_setup.asp fila.

And ENJOY !!!!


PD: If your conection is too slow,  the option 3 possible fail.  Then you will try  to use a  backup  file copied to the web-server and restore into a new database on the same server.

PD: I'm sorry about my bad english Confused

-------------
Emiliano.
Forum: www.rataforo.com.ar


Posted By: skyusb
Date Posted: 24 February 2005 at 10:35am

Step by Step by SKYUSB
1) Open your mdb file whit Access
2) Us upsizing Wizard from tools Menu.
3) Upsize Wizard will create your MS SQL data to your Web server.
4) Then Open Query Analyzer and run this script. This Script will create indexs and SPs.

 
 CREATE  INDEX [Author_ID] ON [dbo].[tblAuthor]([Author_ID]) ON [PRIMARY]
GO

 CREATE  INDEX [Group_ID] ON [dbo].[tblAuthor]([Group_ID]) ON [PRIMARY]
GO

 CREATE  INDEX [tblGrouptblAuthor] ON [dbo].[tblAuthor]([Group_ID]) ON [PRIMARY]
GO

 CREATE  UNIQUE  INDEX [User_code] ON [dbo].[tblAuthor]([User_code]) ON [PRIMARY]
GO

 CREATE  UNIQUE  INDEX [Username] ON [dbo].[tblAuthor]([Username]) ON [PRIMARY]
GO

 CREATE  INDEX [Ban_ID] ON [dbo].[tblBanList]([Ban_ID]) ON [PRIMARY]
GO

 CREATE  INDEX [Address_ID] ON [dbo].[tblBuddyList]([Address_ID]) ON [PRIMARY]
GO

 CREATE  INDEX [Author_ID] ON [dbo].[tblBuddyList]([Buddy_ID]) ON [PRIMARY]
GO

 CREATE  INDEX [Buddy_ID] ON [dbo].[tblBuddyList]([Author_ID]) ON [PRIMARY]
GO

 CREATE  INDEX [tblAuthortblBuddyList] ON [dbo].[tblBuddyList]([Buddy_ID]) ON [PRIMARY]
GO

 CREATE  UNIQUE  INDEX [Cat_ID] ON [dbo].[tblCategory]([Cat_ID]) ON [PRIMARY]
GO

 CREATE  INDEX [Author_ID] ON [dbo].[tblEmailNotify]([Author_ID]) ON [PRIMARY]
GO

 CREATE  INDEX [Forum_ID] ON [dbo].[tblEmailNotify]([Forum_ID]) ON [PRIMARY]
GO

 CREATE  INDEX [tblAuthortblTopicWatch] ON [dbo].[tblEmailNotify]([Author_ID]) ON [PRIMARY]
GO

 CREATE  INDEX [Toipc_ID] ON [dbo].[tblEmailNotify]([Topic_ID]) ON [PRIMARY]
GO

 CREATE  INDEX [Watch_ID] ON [dbo].[tblEmailNotify]([Watch_ID]) ON [PRIMARY]
GO

 CREATE  INDEX [Cat_ID] ON [dbo].[tblForum]([Cat_ID]) ON [PRIMARY]
GO

 CREATE  INDEX [Forum_code] ON [dbo].[tblForum]([Forum_code]) ON [PRIMARY]
GO

 CREATE  INDEX [tblCategoriestblForum] ON [dbo].[tblForum]([Cat_ID]) ON [PRIMARY]
GO

 CREATE  INDEX [tblGroup_ID] ON [dbo].[tblGroup]([Group_ID]) ON [PRIMARY]
GO

 CREATE  INDEX [Guest_ID] ON [dbo].[tblGuestName]([Guest_ID]) ON [PRIMARY]
GO

 CREATE  INDEX [tblThreadtblGuestName] ON [dbo].[tblGuestName]([Thread_ID]) ON [PRIMARY]
GO

 CREATE  INDEX [Thread_ID] ON [dbo].[tblGuestName]([Thread_ID]) ON [PRIMARY]
GO

 CREATE  INDEX [Auhor_ID] ON [dbo].[tblPMMessage]([Author_ID]) ON [PRIMARY]
GO

 CREATE  INDEX [From_ID] ON [dbo].[tblPMMessage]([From_ID]) ON [PRIMARY]
GO

 CREATE  INDEX [Message_ID] ON [dbo].[tblPMMessage]([PM_ID]) ON [PRIMARY]
GO

 CREATE  INDEX [tblAuthortblPMMessage] ON [dbo].[tblPMMessage]([From_ID]) ON [PRIMARY]
GO

 CREATE  INDEX [tblForum_ID] ON [dbo].[tblPermissions]([Forum_ID]) ON [PRIMARY]
GO

 CREATE  INDEX [tblForumtblPermissions] ON [dbo].[tblPermissions]([Forum_ID]) ON [PRIMARY]
GO

 CREATE  INDEX [tblGroup_ID] ON [dbo].[tblPermissions]([Group_ID]) ON [PRIMARY]
GO

 CREATE  INDEX [Poll_ID] ON [dbo].[tblPoll]([Poll_ID]) ON [PRIMARY]
GO

 CREATE  INDEX [Choice_ID] ON [dbo].[tblPollChoice]([Choice_ID]) ON [PRIMARY]
GO

 CREATE  INDEX [Poll_ID] ON [dbo].[tblPollChoice]([Poll_ID]) ON [PRIMARY]
GO

 CREATE  INDEX [tblPollstblPollChoice] ON [dbo].[tblPollChoice]([Poll_ID]) ON [PRIMARY]
GO

 CREATE  INDEX [Message_date] ON [dbo].[tblThread]([Message_date]) ON [PRIMARY]
GO

 CREATE  INDEX [Message_ID] ON [dbo].[tblThread]([Thread_ID]) ON [PRIMARY]
GO

 CREATE  INDEX [tblAuthortblThread] ON [dbo].[tblThread]([Author_ID]) ON [PRIMARY]
GO

 CREATE  INDEX [tblTopictblThread] ON [dbo].[tblThread]([Topic_ID]) ON [PRIMARY]
GO

 CREATE  INDEX [Topic_ID] ON [dbo].[tblThread]([Topic_ID]) ON [PRIMARY]
GO

 CREATE  INDEX [Forum_ID] ON [dbo].[tblTopic]([Forum_ID]) ON [PRIMARY]
GO

 CREATE  INDEX [Poll_ID] ON [dbo].[tblTopic]([Poll_ID]) ON [PRIMARY]
GO

 CREATE  INDEX [tblForumtblTopic] ON [dbo].[tblTopic]([Forum_ID]) ON [PRIMARY]
GO

 CREATE  INDEX [Topic_ID] ON [dbo].[tblTopic]([Topic_ID]) ON [PRIMARY]
GO

SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS ON
GO

CREATE PROCEDURE [dbo].[wwfSpActiveTopics]
(
@AuthorID int,
@GroupID int,
@GroupPerm int,
@dblActiveFrom datetime
)
 AS
SELECT tblForum.Forum_name, tblForum.Password, tblForum.Forum_code, tblTopic.*
FROM tblCategory, tblForum, tblTopic
WHERE ((tblCategory.Cat_ID = tblForum.Cat_ID AND tblForum.Forum_ID = tblTopic.Forum_ID) AND (tblTopic.Last_entry_date > GetDate() - @dblActiveFrom))
AND (tblForum.[Read] <= @GroupPerm OR (tblTopic.Forum_ID IN (
 SELECT tblPermissions.Forum_ID
 FROM tblPermissions
 WHERE tblPermissions.Author_ID = @AuthorID OR tblPermissions.Group_ID = @GroupID AND tblPermissions.[Read]=1))
 )
ORDER BY tblCategory.Cat_order ASC, tblForum.Forum_Order ASC, tblTopic.Last_entry_date DESC;
GO
SET QUOTED_IDENTIFIER OFF
GO
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS ON
GO

CREATE PROCEDURE [dbo].[wwfSpAuthorDesc] AS SELECT tblAuthor.Username, tblAuthor.Author_ID FROM tblAuthor ORDER BY tblAuthor.Author_ID DESC;
GO
SET QUOTED_IDENTIFIER OFF
GO
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS ON
GO

CREATE PROCEDURE [dbo].[wwfSpAuthorDetails]
(
@lngUserID int
)
As
SELECT tblAuthor.* FROM tblAuthor WHERE tblAuthor.Author_ID = @lngUserID;
GO
SET QUOTED_IDENTIFIER OFF
GO
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS ON
GO

CREATE PROCEDURE [dbo].[wwfSpAuthorLastPostDate]
(
@lngUserID int
)
As
SELECT TOP 1 tblThread.Message_date, tblThread.Author_ID FROM tblThread  WHERE tblThread.Author_ID = @lngUserID ORDER BY tblThread.Message_date DESC;
GO
SET QUOTED_IDENTIFIER OFF
GO
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS ON
GO

CREATE PROCEDURE [dbo].[wwfSpBannedIPs] AS SELECT tblBanList.IP FROM tblBanList WHERE tblBanList.IP Is Not Null;
GO
SET QUOTED_IDENTIFIER OFF
GO
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS ON
GO

CREATE PROCEDURE [dbo].[wwfSpCategoryAll] AS SELECT tblCategory.Cat_name, tblCategory.Cat_ID FROM tblCategory ORDER BY tblCategory.Cat_order ASC;
GO
SET QUOTED_IDENTIFIER OFF
GO
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS ON
GO

CREATE PROCEDURE [dbo].[wwfSpChkUserID]
(
@strUserID VarChar(50)
)
 AS
SELECT tblAuthor.Username, tblAuthor.Author_ID, tblAuthor.Group_ID, tblAuthor.Active, tblAuthor.Signature, tblAuthor.Author_email, tblAuthor.Date_format, tblAuthor.Time_offset, tblAuthor.Time_offset_hours, tblAuthor.Reply_notify, tblAuthor.Attach_signature, tblAuthor.Rich_editor, tblAuthor.Last_visit
FROM tblAuthor
WHERE tblAuthor.User_code = @strUserID;
GO
SET QUOTED_IDENTIFIER OFF
GO
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS ON
GO

CREATE PROCEDURE [dbo].[wwfSpCountOfPMs]
(
@lngLoggedInUserID int
)
  AS
SELECT Count(tblPMMessage.PM_ID) AS CountOfPM FROM tblPMMessage


-------------
SKYUSB SOFTWARE & GRAPHICS
www.skyusb.com
www.papaganim.net



Posted By: Paul Lush
Date Posted: 25 February 2005 at 7:39am
Next week, I'll release a version of my Windows authencation integrated build thats got some real SQL optiimisations via stored procedures including security, loop reduction, database hit reduction.  Im sure that when I get more time, I'll get a lot more speed out of it with more T-SQL coding.


Posted By: SERDARTAYLAN
Date Posted: 28 February 2005 at 3:59pm
download webside Enterprise Manager


Posted By: rob_andy
Date Posted: 04 March 2005 at 6:20am
Microsoft OLE DB Provider for SQL Server error '80040e37'

Invalid object name 'tblAuthor'.

/forumsql/common.asp, line 499

I tried to follow the Mk2 instructions but I use a host that doesn't allow the use of enterprise manager on the account.  So I have to use an access import function and sql web manager.  I ran the setup script, imported the first lot of tables then the second.  Checked all the data in the tables and everything is there.  But when I try and open the forum I get the above error.  Anybody got any ideas?


Posted By: rob_andy
Date Posted: 04 March 2005 at 9:51am
I really don't understand this, I have written a test page to pull some info from tblAuthor and tblThread in a join statement and it works fine.  I have checked the connection details and everything is fine.  I have even run the setup script again without the table creation statements and this states that everything have already been created.


Posted By: rob_andy
Date Posted: 23 March 2005 at 2:50am
SOLUTION - After a load of stabbing in the dark (fairly new to sql) I realised that the problem looked like something to do with permissions to use the sp.  I also realised that these sp were being created using the dbo.  I didn't actually login to my sql using dbo, I had dbo2354324534 so I replaced it as below.  I re-ran the stored procedures creation script with the dbo being replaced with my un and volia.  Evrything worked perfectly.
 
CREATE PROCEDURE [dbo].[wwfSpCategoryAll] AS SELECT tblCategory.Cat_name, tblCategory.Cat_ID FROM tblCategory ORDER BY tblCategory.Cat_order ASC;...
 
CREATE PROCEDURE [dbo2354324534].[wwfSpCategoryAll] AS SELECT tblCategory.Cat_name, tblCategory.Cat_ID FROM tblCategory ORDER BY tblCategory.Cat_order ASC;...
 
The second problem I came across was that when I imported tables using the provided import wizard (not allowed enterprise manager) certain field characteristics were being changed.  To get around this I had to import the tables under different names and then use sql statements to copy the data from table to table.  Hope this help everybody.


Posted By: faca5
Date Posted: 30 April 2005 at 5:20pm
Good topic!!! I will try! Smile

-------------
http://www.studiofaca.com/" rel="nofollow - StudioFACA Portal :: http://www.renes.si/" rel="nofollow - Nepremičnine


Posted By: dj air
Date Posted: 30 April 2005 at 5:28pm
i did it the way borg said on page 2 i think..
worked a treat .. i did it the other day.

i upsized to local server then transferred to online server.

also i have done one where ive taken a back up from local SQL server and installed on the remote server


Posted By: faca5
Date Posted: 30 April 2005 at 5:34pm
Ok.
 
P.S. I suggestion to write these instruction to the offical "how to" of the forum. Because Many of users who know, see the forums is very good and it's to slow to use on Access go to SQL Server. Smile


-------------
http://www.studiofaca.com/" rel="nofollow - StudioFACA Portal :: http://www.renes.si/" rel="nofollow - Nepremičnine


Posted By: faca5
Date Posted: 02 May 2005 at 5:43am

I tryed but instruction is not very excelent or SQL server is not 100% compatible with Access.

Meybe Have someone "msSQL_server_setup.asp" for "Web Wiz Forums v7.01", thank you!

-------------
http://www.studiofaca.com/" rel="nofollow - StudioFACA Portal :: http://www.renes.si/" rel="nofollow - Nepremičnine


Posted By: faca5
Date Posted: 02 May 2005 at 9:54am
Originally posted by -boRg- -boRg- wrote:

The simplest way I have found, but requires MS SQL Server and Access installed on your local machine and a second SQL Server at your web host, is:-
  1. Create the database a blank SQL Server database at your web host
  2. Run the 'msSQL_server_setup.asp' file to create the database tables, Stored Procedure's etc. on your SQL Server database at your web host
  3. Use Enterprise Manager to delete ALL the newly created tables on the SQL Server database created at your web host, just leaving the Stored Procedures.
  4. Now on your local machine open your original Access database in Access
    1. From the Tools menu in Access, select the 'Upsize Wizard'
    2. Choose the Upsize option to 'Create a new database'
    3. Choose 'local as your SQL Server and 'Use Trusted Connection'
    4. Next select ALL the tables to upsize
    5. Leave all other options as default
  5. Once your database tables have been upsized using this method, use the 'Export Tool' in Enterprise Manager to upload the tables to the SQL Server database at your web host which you created the Stored Procedures in earlier
  6. That should be it
This is the only method that I have found so far that works for me.

I did look into witting an ASP application that could transfer files across, but the problem is that the primary key for many tables is an Auto number, which means if there are any deleted posts, topics, members, etc. it would screw up the transfer process.
 
I get this error.
 

 
ADODB.Recordset error '800a0cb3'

Current Recordset does not support updating. This may be a limitation of the provider, or of the selected locktype.

/webwiz/post_message.asp, line 599



-------------
http://www.studiofaca.com/" rel="nofollow - StudioFACA Portal :: http://www.renes.si/" rel="nofollow - Nepremičnine


Posted By: faca5
Date Posted: 02 May 2005 at 9:58am
Originally posted by netmasterjohn netmasterjohn wrote:

Follow my second post, ignore the first step by step. The stuff that causes the "ADODB.Recordset error '800a0cb3'" is eliminated by following the steps in my second post. It is simply a matter of how the tables and stored procedures are created, doing things the way I did it the first time tries to do too many things at once and the Recordset can't handle it.

Doing things the second way works great.

Check out my site for proof.

http://www.epcmedic.com
 
I have the some error but I don't get with your instruction. If I go with your instruction QUERY and AutoNumbers is not correct entered... Smile
 
P.S. All the data is not correct importet. Smile But I can't give new post,...
 
How I can resolve the error with this database? I give permision to all table for the user but It don't work.


-------------
http://www.studiofaca.com/" rel="nofollow - StudioFACA Portal :: http://www.renes.si/" rel="nofollow - Nepremičnine


Posted By: dj air
Date Posted: 02 May 2005 at 6:46pm
hi,

not sure about why those errors are happening.

here is a list of what i did for a client , which is simular to boRg's

  1. download Access file
  2. Use Access 2003 Upsize wizard to my local machine
  3. logged into my local machine though Enterprise manager and created a .bak file (back up file)
  4. then uplaoded to web space and restored as my orginal on my SQL Server.
another way i tried  that was 99% successful part from moving 18,000 + posts

above 1 and 2 then

used DTS to move all objects last one in the choice of three .. and clicked next , next, finsh then it sends it.... all options between the fiest thing and last where left to default values.




Posted By: faca5
Date Posted: 05 May 2005 at 7:20am
Hello.
 
Witch minimum permission do you suggest to use on the user for the database of this forum!?
 
For create the database and for use, suggestion!
 
 
 
Server Roles:
System Administrators
Security Administrators
Server Administrators
Setup Administrator
Process Administrators
Disk Administrators
Database Creators
Bulk Inser Administrators

Database Access:
public
db_owner
db_accessadmin
db_securityadmin
db_ddladmin
db_backupoperator
db_datareader
db_datawriter
db_denydatareader
db_danydatawriter


-------------
http://www.studiofaca.com/" rel="nofollow - StudioFACA Portal :: http://www.renes.si/" rel="nofollow - Nepremičnine


Posted By: faca5
Date Posted: 05 May 2005 at 7:21am
Now, It work about Upsize the database. When I try all other instruction, the QUERY (relationship) was not correct set. With Upsize work perfectly. Smile

-------------
http://www.studiofaca.com/" rel="nofollow - StudioFACA Portal :: http://www.renes.si/" rel="nofollow - Nepremičnine


Posted By: imhotep
Date Posted: 21 May 2005 at 4:08pm
I am having an issue, as seems to be every one else on this board, upgrading from an Access database to SQL Server. I went through the method of going through the "Upsize Wizard" to a local version of SQL Server, then Importing from the Host Server's SQL Server. The problem is the 'tblThreads' information/data is not uploading. You can view the results here http://www.mochasuite.com/forum2/forum/default.asp - http://www.mochasuite.com/forum2/forum/default.asp
 
It seems like all of the relationships and tables and other information is there, just there is no data in the actual forums. When I "Open Table" and "View All Rows" in SQL Server, there is no information within the rows: on my local machine, nor my web server's machine.
 
The 'tblThreads' table has 51365 rows of information. Could the sheer size of that be the problem? It is not transferring the data from Access to SQL. Anyone have any input?


-------------
Man Know Thyself


Posted By: imhotep
Date Posted: 21 May 2005 at 8:34pm
Ok, I finally got the messages to show up. Now the only problem is trying to add records or update records. This is the message, and I know it's been mentioned on this thread, however, no difinitive answer has been solidified:
 
 

ADODB.Recordset error '800a0cb3'

Current Recordset does not support updating. This may be a limitation of the provider, or of the selected locktype.

/forum2/forum/post_message.asp, line 746

Can ANYONE help?
http://www.mochasuite.com/forum2/forum/default.asp - http://www.mochasuite.com/forum2/forum/default.asp


-------------
Man Know Thyself


Posted By: imhotep
Date Posted: 21 May 2005 at 8:51pm
I don't know if this will help. I am not that savvy with ASP or SQL Server, but searching the Microsoft website gave me this information. However, I don't know how to deal with this information. Maybe one of the more experienced programmers can help us out here.
 
http://support.microsoft.com/default.aspx?scid=kb;en-us;174640 - http://support.microsoft.com/default.aspx?scid=kb;en-us;174640
 

PRB: ASP Error "The Query Is Not Updateable" When You Update Table Record

http://support.microsoft.com/default.aspx?scid=kb;en-us;174640#appliesto - View products that this article applies to.
Article ID : 174640
Last Review : March 2, 2005
Revision : 4.1
This article was previously published under Q174640
On this page
http://support.microsoft.com/default.aspx?scid=kb;en-us;174640#kb1">SYMPTOMS http://support.microsoft.com/default.aspx?scid=kb;en-us;174640#kb1 - SYMPTOMS
http://support.microsoft.com/default.aspx?scid=kb;en-us;174640#kb2">CAUSE http://support.microsoft.com/default.aspx?scid=kb;en-us;174640#kb2 - CAUSE
http://support.microsoft.com/default.aspx?scid=kb;en-us;174640#kb3">RESOLUTION http://support.microsoft.com/default.aspx?scid=kb;en-us;174640#kb3 - RESOLUTION
http://support.microsoft.com/default.aspx?scid=kb;en-us;174640#kb4">STATUS http://support.microsoft.com/default.aspx?scid=kb;en-us;174640#kb4 - STATUS
http://support.microsoft.com/default.aspx?scid=kb;en-us;174640#kb5">REFERENCES http://support.microsoft.com/default.aspx?scid=kb;en-us;174640#kb5 - REFERENCES
http://support.microsoft.com/default.aspx?scid=kb;en-us;174640#appliesto">APPLIES TO http://support.microsoft.com/default.aspx?scid=kb;en-us;174640#appliesto - APPLIES TO

SYMPTOMS

One of the following errors occurs when you update a table record from an Active Server Pages (ASP) page through ADO's Recordset.update method:
Source: Microsoft OLE DB Provider for ODBC Drivers
Error Number: -2147467259
Description: The query is not updateable because the from clause is
not a single simple table name. This may be caused by an attempt to
update a non-primary table in a view.
-OR-
Microsoft OLE DB Provider for ODBC Drivers error '80004005'
[Microsoft][ODBC SQL Server Driver][SQL Server]Invalid column name
'<a column from your table>'.
/<your asp file>.asp, line xxx
-OR-
Microsoft OLE DB Provider for SQL Server '80004005' Cannot insert or update columns from multiple tables.
-OR-
Current Recordset does not support updating. This may be a limitation of the provider, or of the selected locktype.
http://support.microsoft.com/default.aspx?scid=kb;en-us;174640#toc">Back to the top http://support.microsoft.com/default.aspx?scid=kb;en-us;174640#toc - Back to the top

CAUSE

The following conditions cause this error to occur:
1. You have created a query that contains more than one table.
2. You are updating the records returned by this query and the update affects fields in more than one table.
Basically, if the query involves tables that have a one-to-many relationship, the query -as a whole- is not updateable.
http://support.microsoft.com/default.aspx?scid=kb;en-us;174640#toc">Back to the top http://support.microsoft.com/default.aspx?scid=kb;en-us;174640#toc - Back to the top

RESOLUTION

Process one table's fields independently from another. Issue an Update after each table's fields have been modified. For example, in the code sample below, the "cmdTemp.CommandText" property holds the one-to-many query and the fields of parent table are updated independently of the child table.
   <Object creation code removed for clarity>
                 .
                 .
                 .
   cmdTemp.CommandText = "SELECT stores.state, sales.qty FROM sales INNER
   JOIN stores ON sales.stor_id = stores.stor_id"
                 .
                 .
                 .
   'update parent table first
   Datacommand1("state")="WA"
   Datacommand1.update

   'now update child table
   Datacommand1("qty")=4
   Datacommand1.update
				
http://support.microsoft.com/default.aspx?scid=kb;en-us;174640#toc">Back to the top http://support.microsoft.com/default.aspx?scid=kb;en-us;174640#toc - Back to the top

STATUS

This behavior is by design.


-------------
Man Know Thyself


Posted By: LePaul
Date Posted: 15 June 2005 at 9:33pm
Ok, I was hoping there was a defined process to do this.
 
I have a very busy WebWizForum that's using the Access database (2k) and since my site is getting hammered, I am seeing a lot of server errors since the database is just scrambling to keep up with all the connections.
 
I am using WebHost4Life.Com for webhosting and they have SQL and MySQL database options.  I'd like to find out just what I need to do...a plan...to take my Access DB and move it into SQL so I can minimize downtime.
 
The first few posts in this thread looked promising...then I noted a lot of messages indicating problems.
 
Is there a definitive way to do this?  (Please?)  Smile
 
Paul


Posted By: dj air
Date Posted: 16 June 2005 at 6:37am
i have only successfulky upsized a database that was using MS Access 2003

that was to my local machione/sql saerver then imported that dat to the remote SQL server.

andnother way i have also done it is to create a dsn for the access database to the SQL server and used the access expoprt to the remote SQL server where i have a blank Web wiz forum. then import all the data.

make sure not to create indexs and relationships on the SQL server version, takle out the code from the set up file that does so.

you then run them after the uimport else you will get problems.

then you are able to uplaod table by table.. into the SQL table version.


Posted By: UnderWarrior
Date Posted: 16 July 2005 at 5:21am
I have used the access version and I want to switch to the sql one. I dont care about the posts - i want to start a blank forum. I only want to use the modified asp code i wrote for the access version.
Is the only change between the versions is the connection string?
Will everything work if i will replace it?

Thanks!


Posted By: dj air
Date Posted: 16 July 2005 at 6:23pm
it depends what changes you ave done, alsong as the true/false is 1/o within queryies you should be ok.

it should be only the connection string, also set the forum to se the SQL version within the common.asp file


Posted By: slappyJ
Date Posted: 15 August 2005 at 1:51pm

My forum runs off an Access database. It's current size is approximately 45meg. From time to time I have to use the Compact and Repair function for the forum to run at a decent speed.

I have asked my internet provider what is involved upgrading to an MSSQL server. I can probably handle the code changes myself. But, what do they have to do on their end? They want to charge me $135 per hr. at a minimum of 10 hrs. database programming. This seems ludicrous to me.
 
Can somebody please steer me in the right direction. Can't the database just be easily transfered to the new server plus make a couple code changes myself?
 
Thanks for your help.


Posted By: dj air
Date Posted: 15 August 2005 at 2:02pm
ive upsized a forum within 1 - 2 (3 tops if any problems).

you can almost run without any file changes apart from a couple pages.

all you need to do is make a dns to the SQL server and import table by table and then run the creation script to make the stored procedures and indexs.


Posted By: Imperator
Date Posted: 16 August 2005 at 8:45pm
I have a 200 MB forum on Access and it's doing great. The index loads in 2 seconds, but I don't know how much longer that can hold. lol


Posted By: urko
Date Posted: 19 August 2005 at 8:38am
I just got MSDE and I'm thinking of converting all my db in sql.

I also use Search Engine app and cuz this should be my largest DB ( ok maybe forum will be but hey I can't tell that Wink)  I would like to know should I convert it into sql or leave it in access.
I have around 400 entries ( informationes ). For each ID,  users will have chance to post  comments etc, as I have change the code a little so it's not an internet search engine but it searches products which can be viewed, etc... So in generally it can grow if I will have enough visit.
So before this site will be done would like to know if I should leave it in access db or just convert it to SQL and if some1 has done that can they give me some tips how to do it??
( don't worry I have made 2 backups just in case LOLLOLLOL ).
I'm thinking to leave Weekly poll  in access or should I convert all access db into sql despite of the number of visits??

Would appreciate your advise.

Thanks,



-------------
Urko


Posted By: slappyJ
Date Posted: 19 August 2005 at 2:37pm
Ok I am assuming that my Access database (around 45 meg) just can't handle the traffic anymore. I have Compacted and Repaired and deleted all private messages. I can't even access the forum right now.
 
Question:
 
How long will it take my provider to upgrade to a SQL server? Does this take hours or minutes?
 
They still want to charge me for 1-3 hrs @ $135 per hr.
 
I need a solution quickly because of the amount of calls I am receiving regarding the forum being down.
 
Can you explain to me exactly what needs to be done (and I can relay this information) and get my provider to perform the upgrade?
 
Thank you


Posted By: dj air
Date Posted: 19 August 2005 at 4:45pm
i have said line by line and also borg has back in this thread.

you need ot upsize to your local server, then take a .bak and get your host to insert that into a new database on thre SQL server

 OR

use a dsn to connect from access to the SQL server , and import each table one by one, and then run the sql creation scrit to create the stored procedures.


Posted By: Swingmaster
Date Posted: 07 September 2005 at 8:04pm
Originally posted by netmasterjohn netmasterjohn wrote:

Sorry about that, it seems my initial post was premature.

Here is an updated answer on how to do the conversion from Access to SQL Server.

Step 1. Create the empty database on SQL Server
Step 2. Modify the SQL_server_connection.asp file in the Forum/Admin folder (Lines 59, 60, 61 and 62) to enter your SQL Server info.
Step 3. Run the msSQL_server_setup.asp file in the main Forum folder.
(By running this script now, it avoids the problem that was created before that would not let you post)
Step 4. Do the Tools, Data Transformation Services, Import Data thing in Enterprise manager as described above except for 2 changes.
 - Do the import in 2 stages. First import All tables from the access database EXCEPT the Group, Thread and BuddyList tables.
After all the rest are imported, then go back and import the Thread and BuddyList tables. Leave the Group table alone because it is already in the SQL Server version (created by the Setup script)

- When you are importing the tables in the Enterprise Manager wizard, in the "Select Source Tables and Views" window, click on the ... under the Transform column for each table that you are importing and in the "Column Mappings and Transformations" window that opens, click "Delete Rows in Destination Table" and make sure the "Enable Identity Insert" option is checked.
Do this for each table that you import and you should be fine. I have done these steps and have full functionality.
 
Tried this but with no luck.
 
However, I found that everything works fine if you do the following (well, worked for me, anyway):
  1. Install all of the files for the SQL version of WWF forums exactly as described in the setup file.
  2. Create the empty database on SQL Server
  3. Modify the SQL_server_connection.asp file in the Forum/Admin folder.
  4. Run the msSQL_server_setup.asp file in the main Forum folder.
  5. Create a copy of the wwforum.mdb file - (this is what I used for the data import to SQL) 
  6. Go to SQL Enterprise Manager and use the Import wizard to get the info from the wwforum.mdb file:
    1. Choose a datasource: Use DropDown menu and scroll up until you see Microsoft Access
    2. Select Microsoft Access from the dropdown list, this will change the options on the tab
    3. In the FileName section, browse to where you have the WebWiz database stored and select the file
    4. Add a username and or password if necessary (by default it isn't)
    5. Click Next and this brings you to the Destination tab
    6. Leave the default Destination value of "Microsoft OLEDB Provider for SQL Server"
    7. Fill in your server information on this tab
    8. Don't forget to select your new empty database from the dropdown list at the bottom
    9. Click Next and this brings you to the "Specify Table Copy or Query" tab
    10. Select the first option "Copy Tables and Views from the Source Database"
    11. Click Next to see a list of all the tables that you can copy to the new database
    12. Import ALL tables except for:
      1. Group
      2. Thread
      3. BuddyList
      4. Author
      5. Email_Notify
      6. Guest_Name
      7. PM_Message

(Make sure that "Delete Rows in Destination Table" and "Enable Identity Insert" option is checked for each table imported!)

  1. Now comes the fun part - Import the missing tables one at a time in the following order:
    1. Group
    2. Author
    3. BuddyList
    4. Email_Notify
    5. PM_Message
    6. Guest_Name 

(Again, make sure that "Delete Rows in Destination Table" and "Enable Identity Insert" option is checked for each table imported!)

That's it!
Every table was imported without problems, no data correction and the SQL is a perfect replica of the Access forum I was running.
 
You can check out my forum on http://www.newmarquee.co.za - http://www.newmarquee.co.za (its an adult swingers site, so be warned...)
 


Posted By: cbr600
Date Posted: 06 October 2005 at 9:07am
Hello:

Ive been using WWForum for quite a while now. Started with Access version and upsized later to MSSQL, no problems, the forum is working great (www.motonline.pt/left/clube_motonline/forum2/index.asp).

The problem is that i am changing hosting companies, so i tried to import the database from my current hosting provider to my new one.

All worked fine, and the forum works on new site, except for the 'currect recordset does not support updating' error.

I talked to the new hosting provider in order for they to upload theyr MDAC, but that was not the problem, so i figure it is something related to the upload order of the tables.

I tried to do like Borg said, run the mssql_server_setup.asp (all ok) but the problem right now is that i cant select 'Delete rows in destination Table' because its disabled.

Any ideas for this one? Has anyone ever tried to move a SQL forum to another SQL host?

Thanks in advance.


Posted By: dj air
Date Posted: 06 October 2005 at 9:19am
hi, the easiest way is to get your current host to create a .bak file of your SQL database.
place within your ftp space, and then download and upload to your new hosts space.

after that ask your host to restore that database into your allocatted SQL space.

that way its all as it should be.


on what page/url are you getting the error as that can help locating what part is the problem


Posted By: cbr600
Date Posted: 06 October 2005 at 9:41am
you mean that backing and restoring up is different from importing/exporting? Anyway, i do not have permissions to backup the database from my current hosting company.

What i can do, is import to my local MSSQL server, and back it up, and then upload to my webspace so the new hosting company can restore the backup.

THink that will work ? Since im importing, wont it stay with the same problems?

The error appears posting messages or topics.


Posted By: dj air
Date Posted: 06 October 2005 at 9:50am
yes they are different because of the creation again,

alot of hosts if asked will create a .bak file that you can then give your new host and they will restore the database for you





Posted By: cbr600
Date Posted: 09 October 2005 at 9:17pm
Hello dj air

I did that. But i have a problem now. My MSSQL DB username in the new sqlserver is motonli_motonline, and the username (and DBO) on my previous server was flesk_cbr600.

So i asked my previous hosting to create a backup and send to me, and then i sent it to my new hosting, and they restored the entire backup, and all worked well.

I have all tables in the new SQL server with all records. The problem is that the restored database's dbo is flesk_cbr600 and my current user for that server is motonli_motonline, so i get this error

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

Invalid object name 'tblConfiguration'.

/left/clube_motonline/forum2/common.asp, line 300




 



Posted By: LePaul
Date Posted: 13 October 2005 at 1:42am
This is the single biggest gripe i have with this software...upgrading seems like a huge, problematic task.  If your forums outgrow Access, there are a few methods *mentioned* but no definitive answer Cry
 
Im still hoping!
 
 


Posted By: cbr600
Date Posted: 14 October 2005 at 11:39pm
Im really in need to change hosting services, but this problem is stopping me from doing it.

I would pay for someone to get this fixed, because im desperate, and im paying two hosting services until i get this fixed.


Posted By: dpyers
Date Posted: 15 October 2005 at 2:46pm
Contact your current host. They'll have dbo access and can either add your old usename as an sa login or change the ownership of the tables and stored procs to your new username.

-------------

Lead me not into temptation... I know the short cut, follow me.


Posted By: greytricky
Date Posted: 20 October 2005 at 10:19am
Hello folks
My website is a medium/large community online (2400+) im running it on an access database and getting some jet database errors causing it to fail at random Cry
 
Microsoft OLE DB Provider for ODBC Drivers error '8007000e'
[Microsoft][ODBC Microsoft Access Driver]General error Unable to open registry key 'Temporary (volatile) Jet DSN for process 0x5b0 Thread 0x49c DBC 0xe67a024 Jet'.
  • would upgrading the database from access to mysql be the best move ?
  • would one of you members be interested in doing the conversion for me perfect & smooth and update the related files (common.asp etc)
  • payment/donations will be offered Smile

not getting the conversion done means I need to fix this error instead

thanks folks!


Posted By: WebWiz-Bruce
Date Posted: 20 October 2005 at 10:35am
This is an error with the Access JET database driver and usually to do with a permissions problem.

However, with that many users you should upgrade to MS SQL Server.


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: chicken
Date Posted: 22 October 2005 at 9:47am
ADODB.Recordset (0x800A0CB3)
Current Recordset does not support updating. This may be a limitation of the provider, or of the selected locktype.
/test/post_message.asp, line 752
 
Cryif anyone else has seen this error i would like some help with it thanks


Posted By: miladanimator
Date Posted: 09 November 2005 at 2:30am

hi -borg- !

 

I use Your method and import all tables in to the ms sql database .

 

but my forum didnt work and show some error  like this :

 

------------------------------------------------------------------------

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

Invalid object name 'tblPermissions'.

/a/functions/functions_common.asp, line 781

------------------------------------------------------------------------

and like this one:

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

Invalid object name 'tblConfiguration'.

/a/common.asp, line 284

------------------------------------------------------------------------

 

anyone can help me too migrate from access to sql server ????

please give me an idea . it is verry important for me .

 
please take me a way that you test it !!! 


Posted By: dj air
Date Posted: 09 November 2005 at 5:08am
make sure you have set the table right and that the tables are in the correct place.

it maybe that you have to be logged in and the tables have to be created by the logged in user else it will not allow it for security reasons.

this depends on your hosts set up.




Posted By: miladanimator
Date Posted: 09 November 2005 at 5:34am
any one can migrate from ms access to ms sql server correctly with out any error ???
 
please tell me your way . Cry
 
 


Posted By: miladanimator
Date Posted: 09 November 2005 at 6:32am
Smile hey guys !!!!  Smile
 
I was succeed !!!  i migrate from access to sql :D
 
http://nimroo.com/a - http://nimroo.com/a
 
 
I found my problem :
when I run mssql_server_setup.asp  all tables an stored pre..s  create by DBO owner . but other tables import by myusername owner .
 
then I edit mssql_server_setup.asp  and replase all [Dbo]  with   [my username]  ant run it again .
 
now all tables and stored pre...s  was created by myusername owner and i import other tables successfuuly Wink
 
With best tanks from -borg-  & dj air & ....   Clap
 
 


Posted By: miladanimator
Date Posted: 09 November 2005 at 7:32am
Excuse me !
there is just some Errors :
 
when user want post topic or pm :
--------------------
ADODB.Recordset error '800a0cb3'

Current Recordset does not support updating. This may be a limitation of the provider, or of the selected locktype.

--------------------
how I can make this updatable ???
 
 
& and when new users want to register :
------------------------

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

Cannot insert the value NULL into column 'Author_ID', table 'nimroo.sqlmiladsql.tblAuthor'; column does not allow nulls. INSERT fails.

---------------------------------
in access fo Author_ID we select Autonumber
but in sql  I dont now select wich one ???
 
int   or   currency  or   numberic  or  bit or  ......
for make this column autonumber which one should be selected ???
 
Embarrassed
 


Posted By: dj air
Date Posted: 09 November 2005 at 7:38am
you need to add all the default valuyes etc and collumn structuers like

default values, primary keys, and field types

the autor id is an int field with incrementing set with a seed on 1




Posted By: ramone_johnny
Date Posted: 21 November 2005 at 10:28pm
dj air,
I have a few quick questions that Id like to put forward on this topic as I plan to carry out the conversion tonight. (time permitting)
 
At this point my forum is running on access, without any issues, everything is rosey. The content is only DUMMY DATA and can be blown away. Im currently running mssql server enterprise edition 7 and have quickly played around with carrying out the upgrade from access to sql. The upgrade goes through fine, however I havent spent any detailed time on it for testing, so I cant be certain on any errors yet.
 
I am familiar with the upgrade process, however the forum I am using has been substantially modified. (mainly aesthetically)
 
You can take a look here...
 
http://www.longlostfriends.com.au/index.asp - http://www.longlostfriends.com.au/index.asp
 
and use these credentials if you wish to login.
 
username - kuttie_squem
password - 345345
 
(I think thats right - just let me know if you have any probs)
 
Now where Im concerned is obviously the forum folder. Im not going to just "dump it over" the existing one as this will overwrite all my modifications.
 
However, from what Ive read on these forums - the upgrade can be carried out by simply changing a few files.
 
These being msql_setup_asp.asp (or whatever it was)
and the other being having to run the sql_server_setup.asp file. Sorry if I have the names of the files wrong - but you get my drift.
 
Can I just copy the msql_setup_asp.asp file into the main forum directory? What are the differences between the access and sql version? Do I have to change anything in the common file - apart from specifiying the db type?
 
Any feedback on this would surely save me some time and prove very helpful.
 
Thanks in advance,
John


Posted By: dj air
Date Posted: 22 November 2005 at 4:35am
if you are ok with the upsiz, all you need to do is

  • upload and run the MSSQL_server_setup.asp file (ignore the table creation errors etc this is just to add the Stored Procedures, you will have to remove the section that adds the default values from the file.

  • in both common.asp files (admin and main forum), change strDatabaseType to MSSQL , just uncomment the SQL server one.
  • make sure the table and stored procedure prefix's are corrtect
the only real difference between versions is the use of Stored Procedures and true and false being 1 and 0


hope that helps


Posted By: ramone_johnny
Date Posted: 22 November 2005 at 7:56am
Yep. Done. No problems. As you can imagine I had a number of other tables that I had created so a bit of messing around was carried out, but got it sorted.
 
Its amazing just how much faster it runs.
 
I now have to figure out how best to sort my sql queries, as I'm using 'true' statements.
 
Can i just edit them to '0' and '1'?
 
Ahh, another late night! LOL
 
Thanks for your help on this.
 
John


Posted By: dj air
Date Posted: 22 November 2005 at 8:48am
if you change the database type verinble in the common.asp all the built in will be set correctly.

with regards to any custom queries you need to just change true and false for 1 and 0

thats it,


Posted By: miladanimator
Date Posted: 24 November 2005 at 8:02am
hi
 
I want to run sql version of forum on my computer (local host |)
 
 I Install sql server enterprise edition on my computer , but I didn't know  what is sqlservername , sql username , sql password  on local host .
 
plesa say me that when I want run sql forum on my local machine , how we should done ????
 
--------------------------
my english isn't good
excuse me if my post is incorrect
--------------------------


Posted By: dj air
Date Posted: 24 November 2005 at 8:11am
i think you can use localhost as the server name or use your http://computername

and its username sa password blank i belive is default but cant be sure i though you can specify a username and password when its installed but try that


Posted By: dpyers
Date Posted: 24 November 2005 at 10:07am
You need to use the sa (server administrator) login to
create an empty/blank data base,
create another user id and assign them a password,
assign the new user id to the empty db.

Once that's done, you run the wwf set-up script using the newly created db, user, and password.


-------------

Lead me not into temptation... I know the short cut, follow me.


Posted By: ramone_johnny
Date Posted: 27 November 2005 at 7:16pm
click on start > run > cmd > type 'hostname' at the command prompt. This will give you your correct machine name.
 


Posted By: clownfire
Date Posted: 24 December 2005 at 10:11am
Hey sports fans,
 
Sorry to be a pest but:
 
1. This thread offers many ways to do this.  Can we recap the best way?
 
2. Does anyone know how I can import using the godaddy db manager?


Posted By: cctran
Date Posted: 24 December 2005 at 11:12pm
localhost (127.0.0.1) or run ipconfig on the command prompt and see the info

-------------
--
Charles
http://www.lunchspark.com/places.home - local restaurants


Posted By: RadioActiveLamb
Date Posted: 10 February 2006 at 11:07pm
Pulling my hair out on this one, and there isn't much hair left...  I successfully migrated my Access data to SQL 2000.  The forum software is reading the data just fine.  when I try to post a new thread/reply or anything else that requires a write, I get this error.  I know that someone else had a similar error, but the response wasn't clear.  I'm not sure what to do to fix this.  I'm using the sa account for authentication to troubleshoot the problem to eliminate any rights problems.  Once it works, I'll change the authentication to a more restricted user:
 
ADODB.Recordset error '800a0cb3'

Current Recordset does not support updating. This may be a limitation of the provider, or of the selected locktype.

/forum/post_message.asp, line 608



Posted By: RadioActiveLamb
Date Posted: 11 February 2006 at 12:19am
Disregard my issue.  Using Borg's procedure, I got it to work.  I ran the export directly on the server, so I omitted step 5, and I sent the data to an existing database on the local server.  Thanks Borg!  I can keep my hair now...
 
Originally posted by -boRg- -boRg- wrote:

  1. Create the database a blank SQL Server database at your web host
  2. Run the 'msSQL_server_setup.asp' file to create the database tables, Stored Procedure's etc. on your SQL Server database at your web host
  3. Use Enterprise Manager to delete ALL the newly created tables on the SQL Server database created at your web host, just leaving the Stored Procedures.
  4. Now on your local machine open your original Access database in Access
    1. From the Tools menu in Access, select the 'Upsize Wizard'
    2. Choose the Upsize option to 'Create a new database'
    3. Choose 'local as your SQL Server and 'Use Trusted Connection'
    4. Next select ALL the tables to upsize
    5. Leave all other options as default
  5. Once your database tables have been upsized using this method, use the 'Export Tool' in Enterprise Manager to upload the tables to the SQL Server database at your web host which you created the Stored Procedures in earlier
  6. That should be it


Posted By: Necronom
Date Posted: 11 April 2006 at 5:04pm
I just wanted to put my 2 cents in real quick. I'm currently in the middle of upgradding from Access to SQL, and I'm using the Upsizing Wizard technique as listed above. So far so good. But, for about the last 2 hours I've been going nuts because it kept failing on two of my tables (PMMessages and Authors) and I couldn't figure out why for the life of me. Then I ran Compact and Repair and then tried again, bingo. Everything went smoothly. So if you're doing this, I'd run the Compact/Repair before doing this.

Later!

. necronom .

-------------
http://www.BodyMod.org - Body Modification Organization


Posted By: Necronom
Date Posted: 11 April 2006 at 6:51pm
Ok... now, I'm at the same point where RadioActiveLamb was. I'm getting the
"Current Recordset does not support updating. This may be a limitation of the provider, or of the selected locktype." error for the same reasons. The problem is that I used b0rg's method exactly. Arg. RAL: can you tell me what you did for the pick a DSN part when using the upsizing wizard to a current DB? My access db and SQL are on the same server as well.

Thanks!

. necronom .

-------------
http://www.BodyMod.org - Body Modification Organization


Posted By: cinemanet
Date Posted: 18 April 2006 at 6:09am
Hello, Friends.

I migrate the Access version to SQL Server, but I have some errors:

Microsoft VBScript runtime error '800a005e'
Invalid use of Null: 'CLng'
/forum/forum_posts.asp, line 310

Somebody help!


Posted By: WebWiz-Bruce
Date Posted: 18 April 2006 at 8:50am
It looks like the default value database fields are not being given their default value in your SQL Server database.

Check that all default values are carried across to the SQL Database


Posted By: cinemanet
Date Posted: 19 April 2006 at 2:29am
Originally posted by -boRg- -boRg- wrote:

It looks like the default value database fields are not being given their default value in your SQL Server database.Check that all default values are carried across to the SQL Database

    
The default values are those that are in tblconfiguration and tbldatetimeformat?

In my data base the default values are correctly registered in these tables.

Which are the other tables that are the values standard?


Posted By: kingjoop
Date Posted: 27 April 2006 at 8:31am
Originally posted by cinemanet cinemanet wrote:

Hello, Friends.

I migrate the Access version to SQL Server, but I have some errors:

Microsoft VBScript runtime error '800a005e'
Invalid use of Null: 'CLng'
/forum/forum_posts.asp, line 310

Somebody help!
 
Seems like i have the same problem after my access to mql migrate.


Posted By: kkimber
Date Posted: 21 December 2006 at 9:17am
checkout;
http://forums.webwiz.net/forum_posts.asp?TID=22087



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net