ASP & SQL Server

Author
Discussion

xsaravtr

Original Poster:

801 posts

264 months

Friday 6th June 2003
quotequote all
Very off topic I know but...

Got a website running on Access at the moment via ASP. Keep having problems with the site going down and the message "Service Unavailable" appearing when trying to access the site.

I've been advised by the techies of the hosting company we use that porting it to SQL Server should solve the problem.

Apparently Access can't handle the number of people that are using the site, hence it keeps dying.

Is this a straightforward job to do or should I just start sleeping in the office for the next 4 months.

Any tips/advice would be most welcome.

VTR

futie

653 posts

278 months

Friday 6th June 2003
quotequote all
Depends on how many Access-specific features you're using - if it's just used for tables, relationships and some views (does Access have views?) then there's an upsizing wizard which Microsoft were pushing a while ago - I think it has a fair old stab at automatically doing it for you.

SQL Server is much, much better. But be sure that this is the problem first - 'site unavailable' doesn't necessarily equate to Access having problems. Of course it depends on the number of hits, but i'd expect Access to suffer performance-wise rather than error. But it could be timeout errors I suppose.

Hope that made sense!

ATG

20,733 posts

274 months

Friday 6th June 2003
quotequote all
You get a wizard shipped with SQL Server to help you upgrade Access databases to SQL Server. It is a pretty easy thing to do, but certainly doesn't leave you with the most beautiful database (almost always benefits from being tweaked by hand).

I assume your ASP usese ADODB objects to get at the existing Access DB? If so, all you'll have to do is point your connection object at the SQL Server, instead of Jet.

Again, you may want to rewrite some bits of your ASP in order to improve performance, but you ought to be able to get something up and running on SQL Server pretty quickly.

dontlift

9,396 posts

260 months

Friday 6th June 2003
quotequote all
SQL Server is often alot more cash to host aswell

naetype

889 posts

252 months

Friday 6th June 2003
quotequote all
Access + SQL + Migration / WebSite = Sleeping Bags 'r' Us.
and coz it's not me who's doing it.

Did a SQL Server course (5 glorious days) a few years back. Put me off IT courses for life.


>> Edited by naetype on Friday 6th June 18:11

PetrolTed

34,432 posts

305 months

Friday 6th June 2003
quotequote all
I had this problem last year. Access can actually cope with a huge number more concurrent users than people think.

I was running PH on several Access databases until about a year ago.

The natural migration plan would have been to go to SQL Server but I didn't have the cash to buy the licences. It's bloody expensive.

After much investigation I went for MYSQL. Commercial licences are only about $200 from what I recall.

Migration is never simple. I've still got bits and pieces of PH running from Access databases because they are still coping.

Don't expect the migration to be easy. The subtlely different flavours of SQL can cause much grief!

dontlift

9,396 posts

260 months

Friday 6th June 2003
quotequote all

PetrolTed said: I had this problem last year. Access can actually cope with a huge number more concurrent users than people think.

I was running PH on several Access databases until about a year ago.

The natural migration plan would have been to go to SQL Server but I didn't have the cash to buy the licences. It's bloody expensive.

After much investigation I went for MYSQL. Commercial licences are only about $200 from what I recall.

Migration is never simple. I've still got bits and pieces of PH running from Access databases because they are still coping.

Don't expect the migration to be easy. The subtlely different flavours of SQL can cause much grief!





I can recommend MySQL we use it for everything web based these days www.mysql.com/ mainly we use PHP and MySQL is native to it, but there is an ODBC driver available from there website

xsaravtr

Original Poster:

801 posts

264 months

Saturday 7th June 2003
quotequote all
Thanks for the advice guys...

MySQL is not an option. That would mean recoding the site in PHP wouldn't it? can do it but havn't got the time or inclination.

We've got SQL Server support as part of our hosting package anyway so we don't have to shell out anymore in that department...

Thanks again...

PS: Watch this space if I have any problems

dontlift

9,396 posts

260 months

Saturday 7th June 2003
quotequote all

xsaravtr said: MySQL is not an option. That would mean recoding the site in PHP wouldn't it?


No it wouldnt MySQL does not rely on PHP it is standalone and can be used just as easily from ASP via the ODBC driver

gopher

5,160 posts

261 months

Saturday 7th June 2003
quotequote all
One thing I've found is that your querys (if you have any) are converted to views not stored procs which is a bit of pain with inserts and updates, so set some time aside to convert these.

Cheers

Paul

Mark.S

473 posts

279 months

Tuesday 10th June 2003
quotequote all
As Ted mentioned, Access can cope with huge numbers of users so long as the majority of work is read only. Throw in updates (at a guess I'd say it was Gassing Station for Ted) and it flakes.

If you've managed to code a site using ASP+Access you should be able to do the port to SQL comfortably. Be aware that you'll come across a thousand weird errors and nuances in syntax that will bug you for weeks.

Alternatively you could pay one of the thousands of web developers (myself included) that linger on PH all day, to take the pain away

fatsteve

1,143 posts

279 months

Tuesday 10th June 2003
quotequote all
You could look at caching stuff. The Northants TVRCC website (www.tvrcc-northants.co.uk) is ASP / Access based but the since the data is 99% read only, it all gets cached into XML objects rather than hitting the db each time a page is loaded.

This obviously involves a bit of work though..

Steve

PetrolTed

34,432 posts

305 months

Tuesday 10th June 2003
quotequote all
Remember when PH was crashing a couple of times an hour... that was during my migration process

MySQL and ASP mix fine btw.

wimdows

108 posts

254 months

Tuesday 10th June 2003
quotequote all

fatsteve said: You could look at caching stuff. The Northants TVRCC website (www.tvrcc-northants.co.uk) is ASP / Access based but the since the data is 99% read only, it all gets cached into XML objects rather than hitting the db each time a page is loaded.

This obviously involves a bit of work though..

Steve



Now with ASP.NET, all this caching comes out of the box. You can even introduce Cache Dependencies.

And ofcourse it works with Access, using OLEDB. But SQL Server is recommended for any serious website.

Cheers,
Wim

fatsteve

1,143 posts

279 months

Tuesday 10th June 2003
quotequote all

wimdows said:

fatsteve said: You could look at caching stuff. The Northants TVRCC website (www.tvrcc-northants.co.uk) is ASP / Access based but the since the data is 99% read only, it all gets cached into XML objects rather than hitting the db each time a page is loaded.

This obviously involves a bit of work though..

Steve



Now with ASP.NET, all this caching comes out of the box. You can even introduce Cache Dependencies.

And ofcourse it works with Access, using OLEDB. But SQL Server is recommended for any serious website.

Cheers,
Wim



Hmm nice touch, tend to run away from MS (particularly .NOT stuff) - J2EE/Oracle man myself). But ASP/Access is cracking for knocking up stuff on the cheap.

Having said that I know that our site is IIS5 so I would asume some of the .NOT stuff is built in as standard.

Steve

wimdows

108 posts

254 months

Tuesday 10th June 2003
quotequote all


Now with ASP.NET, all this caching comes out of the box. You can even introduce Cache Dependencies.

And ofcourse it works with Access, using OLEDB. But SQL Server is recommended for any serious website.

Cheers,
Wim



Hmm nice touch, tend to run away from MS (particularly .NOT stuff) - J2EE/Oracle man myself). But ASP/Access is cracking for knocking up stuff on the cheap.

Having said that I know that our site is IIS5 so I would asume some of the .NOT stuff is built in as standard.

Steve


If your site is IIS5, it doesn't necessarily mean the box can run ASP.NET pages. All you need though is the .NET framework (redistributable), which is around 20MB, and you can run ASP.NET.

And - there are native ADO.NET drivers for Oracle or MySQL too.
Wim