CDOSYS Executes But Takes TOO TOO Long?
running w2k3/iis6 and trying to shorten the length of time that a simple 10
field ASP form takes to execute using CDOSYS. it takes about 50 seconds each
time...and I've no idea why?
any pointers here lads? on other servers the exact same script does it's job
in 3 seconds...but not this one?
View Replies
ADVERTISEMENT
Uploading from browser to server using Msxml2.XMLHTTP takes a long time about 15 minutes for a 1.5MB file at 37.2Kbps, although it does get there. Is there anyway to speed things up?
Here's the code ...
View Replies
View Related
Let me paint the picture: A large MS SQL database (in 7.0) on a Win2K box (not that the Server O/S matters here really) and an ASP page that grabs data from it to present, of course, to the client browser. For the sake of conversation (since I have tested this oversimplified version of the problem) the code pulls a select * from blah (where blah is my BIG table - right now about 25,000 rows).
The problem/question is the time it takes to present the HTML to the client. The big question is...
Why would it take significantly longer to present the final (parsed) HTML on a remote client computer than right on the server? Note: I would normally consider the time it takes to "download" the HTML to the client, but in this case the actual "presented (parsed) HTML" is so small (it's only one integer inside the body tags), that could never account for the difference in time...and I mean significant..on the server...seconds...on a random client computer...many minutes...on my customer's machine...over an hour (which is, of course, my particular problem).
I obviously have to look at their ISP, but a)Again, the end-product HTML is very VERY small and b)the page does eventually present itself (so it's not timing out). I have the scripttimeout set ridicously high so that potential problem doesn't come up, but that's not the problem.
I just want to know what could be causing the significant time difference? Everything I know about the ASP "process" tells me this scenario should never happen (unless the HTML being sent is significant, of course, like a huge list, or something).
View Replies
View Related
Is there a way to count the number of times a while/wend loop executes. I'm using a while loop to display database records on a page, and I need to get a count of exactly how many loops occurred in a variable for use in a function.
View Replies
View Related
If I create the following ASP script:Code:
<script language="VBScript" runat="Server">
Response.Write("Hello from VB<br/>")
</script>
<script language="JavaScript" runat="Server">
Response.Write('Hello from JS<br/>');
</script>
and run it, I get the following output:
Quote:
Hello from JS
Hello from VB
As you can see, despite appearing later in the file, the JS is being executed before the VBS. How can I stop this happening? (I want to include a VBS file...)
View Replies
View Related
I've got a mailing list script which loops through up to 20,000 database records, and fires a customised email out to each via the bulk mail queing function of JMail Pro (email component).
Never having tested this with anything other than 100 records, I'm very wary about executing the script in case it times out or starts to misfire.Is there anything anyone can recommend to make sure this process goes smoothly, perhaps even giving the user feedback whilst it's executing e.g. "sending messages 1-1000", "1001-2000" etc?
View Replies
View Related
VBScript that executes using the cscript.exe. It needs to download the home page for each domain that has subscribed to the Hacker Protector service and compare the number of bytes to the previous days and if there is a change, notify the contact person via email that there has been a change.
View Replies
View Related
Code like this
=======================
Select case q
Case "a"
Dim arr(5)
Case "b"
Dim arr(2)
end select
=====================
returns an error saying variable arr redefined.
Should it be like that or an I using Select incorrectly? Perhaps something
similar to break needs to be used?
View Replies
View Related
I want to insert a new row in my db but it says that the "identifier is too long"...
ORA-00972: identifier is too long
to be more precised... I googled it but I can't seem to pinpoint how to work around this
View Replies
View Related
When sending long emails a mysterious space-character is added after a
certain number of characters. Any idea why that happens?
I am using a Dundas Mailer control (if that matters) called from an asp
script.
View Replies
View Related
I have a database-driven site and it is possible for users to leave comments, which get written to the database. How do I make it so large comments can be added?I am getting this error message:
Microsoft JET Database Engine error'80040e21'
The field is too small to accept the amount of data you attempted to add. Try inserting or pasting less data.
/wall2.asp, line 37
I have set the default field type in the database to be 'memo'and set the default text field size to 255 (the maximum allowed)
View Replies
View Related
How do i make this number shorter?like 65.3846153846154%.how to make it like.let's say 65.39?
View Replies
View Related
Is anyone aware of any sort of asp coding to deal with long URLs? I have a few asp that pull URLs from fields within a MS db, which then display on a width-limited table. Is there any way to wrap these long URLs such that my table doesn't get widened? e.g. wrapping at "/" or something similar?
View Replies
View Related
ok I have a page that displays all of the 3000+ records of people, phone numbers, and email addresses. on this page I have added a link that combines all of the e-mail addresses into one mailto: link so that we can mass notify these people of upcoming projects. the problem is that i think the link is too big for the browser to handle. the view source shows that everything is there but i cannot click the link. i have tried both IE and FireFox to no avail. The code is below just in case i have a typo or something...
sql = "Select * from people WHERE (IsNull(m_idstatus) OR m_idstatus <> 'id2') AND (m_email Like '%@%')"
...
y = 0
do while not rs.eof
If (rs("m_email") = "" OR IsNull(rs("m_email"))) Then
e_email = e_email
Else
e_email = e_email & rs("m_first_name") & " " & rs("m_last_name") & "(" & rs("m_email") & "); "
y = y + 1
End If
rs.movenext
loop
...
<a href="mailto:?bcc=<%= e_email %>">E-MAIL ALL</a> |
I have also tried changing the format of the link by adding test@test.com before the ?bcc= but get the same results on both browsers. Like I said in the beginning I assume that the link is just too big for the browser; does anyone have any ideas besides making a mail form in the page? I would prefer to stick with a mailto link so that we can keep internal Outlook features.
View Replies
View Related
I'm currently working on an ASP site that connects to a MySQL database I've built a form that allows users to insert press releases. They add the date and title and then the text of the release.
The problem that I'm having is that every so often when the user submits the form they get an error message saying "Command text too long" The record isn't added to the database after this
I use a longtext field for holding the main text of the press release Code:
View Replies
View Related
I'm trying to use ServerXMLHTTP on an ASP (not ASP.NET) page to retrieve
large binary data from a remote server. When the request is large (more than
a few megabytes), the ServerXMLHTTP page jumps to nearly 100% CPU utilization
for an unusually long time. The remote server needs a few seconds to prepare
the request, during which time the CPU seems OK. It seems that as soon as
the data is ready to retrieve, the CPU usage jumps and remains that way until
the data has all been copied to the requesting server. That takes way too
long - about 35 seconds when requesting a 12 MB file over a gigabit Ethernet.
I use ServerXMLHTTP hundreds of thousands of times daily on this same system
on the same network, with absolutely no problem - but for smaller requests.
There's something about the size of the request that makes it blow up.
I saw some reports of older systems with this problem (Windows 2000), but
I'm running IIS 6 on Windows Server 2003, SP1.
View Replies
View Related
I am trying to simply print to screen all the data in a colum from a .mdb file. Later I will do more advanced things but for now this would be good.
What I have WORKS, but takes a LONG time to retrieve the first record, if I tell it to retrieve more than one row it will time out. I was hoping to connect to the file directly and not have to create an ODBC connection. The code seems simple enough and the server is no dud (p4 2.4ghz) so do I need to setup a DSN and connect to it that way? Code:
View Replies
View Related
give me a sample code to display a "please wait"
message while retrieving results from the database in ASP.
View Replies
View Related
I have a sql statement that contains many fields. I am having problems with the way I am writing the sql statement. Here is an example:Code:
filePath = server.MapPath("directory/dbName.mdb")
Set conn = Sever.CreateObject("ADPDB./Connection")
conn.Provider = "Microsoft.Jet.OLEDB.4.0"
conn.Open filePath
mysql = "SELECT field1,
field2,
field3,
I get an error at the comma on the line "SELECT field1,
What is the proper syntax for line continuation?
View Replies
View Related
I am trying to return a recordset of data. The problem is my SQL query does not fit on 1 row. What do I need to do to start a new row. I tested the asp when I trimmed my query down to 1 row and it worked.
View Replies
View Related
I'm developing an intranet application using W2k server and IE5.5 - 6.x
clients. I've got one particular function that calls a stored procedure to
update a number of records, depending on user input. The problem we have
run into is that this procedure can take a few minutes to complete in
certain circumstances, and of course IIS times out.
I've been doing some searching for a solution, but most of the answers I've
found relate to showing a 'Please wait' message while processing the page,
which doesn't help in this situation. The others I've found relate to using
MSMQ, which would probably help, but leads to a load of testing issues that
I'm not prepared to deal with at the moment.
Are there any other 'common' ways to handle this at the ASP level?
View Replies
View Related
I am using some code like the one below to work with a text file, modifying
its lines one by one:
Set objFS = Server.CreateObject("Scripting.FileSystemObject")
Set objF = objFS.OpenTextFile("MyText.txt", 1)
Do While objF.Line <= 26 ' --- I am reading only certain lines
'--- get entire line
strTemp = objF.ReadLine
'--- do some other stuff here
Code:
View Replies
View Related
I have a very long string statement that needs spltting down into smaller sections and segments. I know how to use the split() function, and it splits the string down into smaller sections, however when I try and split one of these smaller sections into segments it throws an error out. Firstly is it possible to keep splitting the same string again and again to break it down? If not does anybody know how I would go about breaking down the string?
View Replies
View Related
I want to divide long HTML page (paging) into smaller pages.I know how to do it if I use recordset but in my project, I dont need to read from a Database, I'm reading a file system wich is a folder and list all files insid it.
View Replies
View Related
I was performing some testing on my forms and in the comments section of the form, I copied and pasted a large amount of text. All of the text appeared on my confirmation page that I have that shows all of the submitted information. Once I hit submit on the confirm page so that the INSERT will occur, only about 1/4 of the text that was entered shows up on my "Submission Confirmation" page.
The text insert appears in the database, but only the 1/4 of the text that was entered. I'm using the "text" datatype and the length is set to 16. Can anyone think of why only a portion of my text is being displayed and then inserted into the table?
View Replies
View Related
I'm trying to put a long hyperlink into my database table which works fine. I used longtext as the field type. My records insert just fine. But when I try to retrieve the records on the asp page all the other data shows up but the hyperlink data. Here's an example of my link.
INSERT INTO products
(manufaturer, prod_category, prod_link)
VALUES ('Xtra','Irons','<a href="http://www.kqzyfj.com/click-1692223-10304326?url=http%3A%2F%2Fwww.golfsmith.com%2Fppage.php%3Fstynum%3DCL1480%26tcode%3Dcj" target="_top" >CG1 Irons w/ Steel - 3-PW Iron Set<br>$799.99</a><img src="http://www.afcyhf.com/image-1692223-10304326" height="1" width="1" border="0">');
What am I doing wrong.
View Replies
View Related
anyone got an idea on how to cut the output of a number? coz i made a computation and the output was this
81.5740740740741
and i want to make it 81.57
anyone got an idea?
View Replies
View Related
I'd like to get a number, and every third character from the right add a comma (aka 10000 becomes 10,000). How can this be done in ASP please?
View Replies
View Related
I have an Oracle database which has a field LONG RAW type to store text files. I'm trying to display the output of this field in ASP but I'm having problems. I've gone through many different approaches but they either do nothing or do the following;
I've tried doing response.binarywrite(rs("data_object")) and I get
somethinglike below ....
View Replies
View Related
If the content of a db field is too long, (like when the web page ends up being 3 A4 page lengths due to alot of content in the db field), is there a way of say, creating a 'next page', thus splitting the data content over 2 pages?
View Replies
View Related
I have a recordset that has 12 records in it, and about 25 columns. Unfortunately, I have to write the records out as columns in an ASP page, and the columns as rows. So, what I have done is a Do Until myRS.EOF and write all the records in <td></td> tags. I then do a myRS.MoveFirst before going to the next line.
I have one page that is identical in code, just using a different recordset, that is taking about 7 seconds to write per line. The other 2 pages are taking less than a second per line. Has anyone seen anything like this before? Anyone have any suggestions? Below is an example of a loop that is taking so long to run.
do until myRS.EO
Response.Write("<td bgcolor=#eeeeee>" & myRS("OutstandingInCompliance") & "</td>" & vbcrlf
iTotal = iTotal + cdbl(myRS("OutstandingInCompliance")
myRS.MoveNex
loo
View Replies
View Related
Whenever an ASP.NET server-side control is processed, the client form is repainted from the top forcing users to scroll back to where they were on long forms. How can I work around this issue?
View Replies
View Related
I don't excactly know whether this is an ASP, webserver or SQL-Server problem:
I have an ASP with a search form. By clicking the submit button it redirects to my result.asp page which initiates a database query that takes pretty long (up to 4 minutes).
Now if I push the cancel button in my browser because it takes too long and want to open another ASP page in that browser window I just get the "page loading" bar until, it seems, the query I initiated before has finished, and then shows up the wished page.
What I think is, that the webserver is waiting for the the command:
set rs = db.Execute(sql_search_string)
to be finished by the SQL-server and does'nt respond to other page requests (but only in the same browser window) until the recordset is filled with the information from the SQL-server. Code:
View Replies
View Related