Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Damage to Server
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Damage to Server

 Post Reply Post Reply
Author
Scotty32 View Drop Down
Moderator Group
Moderator Group


Joined: 30 November 2002
Location: Manchester, UK
Status: Offline
Points: 1682
Post Options Post Options   Thanks (0) Thanks(0)   Quote Scotty32 Quote  Post ReplyReply Direct Link To This Post Topic: Damage to Server
    Posted: 13 March 2003 at 7:11am

ok

ive kinda only recently become aware of the fact i could damage my server

i dont really know much ASP

so could people tell me wot i have to be aware of, when am writing ASP

is it only when connecting to a Database, or is there other ways i can damage the server?

and if there are, how can i aviod it?

any/all advice on how to Not damage the server will be great

thanks!

Back to Top
Gullanian View Drop Down
Senior Member
Senior Member
Avatar

Joined: 04 January 2002
Location: England
Status: Offline
Points: 4373
Post Options Post Options   Thanks (0) Thanks(0)   Quote Gullanian Quote  Post ReplyReply Direct Link To This Post Posted: 13 March 2003 at 7:25am
I dont think you can actualy physically damage a server with ASP, however to stop it slowing down always remeber to close your ado connections and recordsets
Back to Top
Scotty32 View Drop Down
Moderator Group
Moderator Group


Joined: 30 November 2002
Location: Manchester, UK
Status: Offline
Points: 1682
Post Options Post Options   Thanks (0) Thanks(0)   Quote Scotty32 Quote  Post ReplyReply Direct Link To This Post Posted: 13 March 2003 at 7:28am

well, am not tryin to damage it

just tryin to avoid it

 

so its only when i access the database it can effect the server?

not with like if i dont do a "Dim" for sumfin am using and i get the "undefined" error message?

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: 13 March 2003 at 7:50am

You can't really damage a server, unless you use the FSO object to delete all the files on the server, but you can effect performance in allot of ways.

Each time you create an object it uses resources, try to reuse things like recordset objects on a page as amuch as apoossible.

Also remember each time you use an object whether to connect to a database, or to send an email, etc. remeber to release the object after use, thuse freeing up server resources that may other wise slow down the ruuning.

Also things like session variables use allot of resouces, so try to avoid these on busy sites.

Things like the path to the databases could be stored in application level veriables, which saves on the amount of variables used within the site.

Each variable you create will use up resources, but these are quite mimimal so don't worry to much about this.

Back to Top
Scotty32 View Drop Down
Moderator Group
Moderator Group


Joined: 30 November 2002
Location: Manchester, UK
Status: Offline
Points: 1682
Post Options Post Options   Thanks (0) Thanks(0)   Quote Scotty32 Quote  Post ReplyReply Direct Link To This Post Posted: 13 March 2003 at 7:56am

wot do ya mean reuse recordset objects, like connect to a table, then close it, insted of using a diff name for connectin to a different table, use the same name as b4?

 

also, should i do stuff like close "request.querystrings()" for example

" string = request.querystring("string")

...

string.close
set string = nothing"



Edited by Scotty_32
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.