Problem With Error Reporting When Executing Multiple Sql Staments In Asp

I have a problem with running multiple sql statements using asp.
Basically if there is an error with any of the statements inside the
query a rollback is done. the sql and rollback work fine, But on the
actual asp page no error is detected unless it occurs in the first
statement in the query. heres an example

<%
Sql= " BEGIN TRAN INSERT INTO Users VALUES ('BLAH', 'BLAH') INSERT INTO
TESTING VALUES ('SOMETHING','SOMETHING') IF @@error <> 0 ROLLBACK TRAN
ELSE COMMIT TRAN "
If Err <> 0 Then

Response.Write "error"

Else
Response.Write "<p>Data has been added!<p>"
End If

%>
in that example if theres an error inserting into Testing the page will
display 'Data has been added' even though it hasnt.

View Replies


ADVERTISEMENT

Error Reporting

is there a way to turn on error messages from the server without having access to the server? When I get an error on my webserver all I get is a page that says "HTTP 500 - Internal Server Error" without giving me any details about the snafu.

View Replies View Related

Error Reporting In Intranet

I am trying to setup an error reporting system for our Intranet. We have a
Windows 2000 Server with SQL Server and we have an Exchange Server 5.5. I
need to set it up so I can use CDO mail. I have used CDO before, but have
never set it up to work. I built a small little page with some CDO code on
it, but I get an error when I try to run it. How can I set this up to send
mail from the webserver to people in our facility?

View Replies View Related

Configure Error Reporting

Reading te article about sql injections and sanitizing I found that one of great recommendations is to "Configure error reporting" to do not allow public to read the entire sql statement. How can I do this? Can I do this if I keep my websites on hosting company server?

View Replies View Related

Reporting

I have recently developed a web application across my clients intranet. We used ASP with Interdev 6.0 and SQL server as the backend.

They have now come to me asking me to develop some reports that can be accessed via a drill down within the app. They don't have Crystal Reports so this is not an option. Can anyone suggest an alternative to using crystal reports to publish dynamic reports via the web and ASP?

View Replies View Related

Reporting In ASP

What is the best option for report in classical asp.

View Replies View Related

Reporting Options

I need suggestions to allow my users the ability to print reports from my ASP application that will be quick and easy setup. I need them to choose an option such as

Print all checks for the current week

and receive an output of 1 page per employee . Currently I have the page so someone can view 1 employee on the screen and manually print. But I am looking for some web based report delivery method that will be quick to implement so the user can preview the batch of reports and then print. Similiar to if you were running a report in access.

View Replies View Related

ASP Reporting Application

I have a need to develop a reporting application that has static and
parameterized reports that I want my users to be able to access and retrieve
through a web interface.

I'm trying to find out the standard/preferred way of displaying reports. My
original thought process pointed me towards generating xml files for the
static reports and having standard xsl files to display them.

How should I build the form-submitted report requests using asp? Should I
generate xml from asp and have standard xsls for displaying them? Or should
I iterate through the result recordsets and just build html with
response.write?

Essentially I'm just looking for a high level summary of how ASP reporting
applications should be developed, and I feel confident that I could go from
there.

View Replies View Related

Crytsal Reporting

i want to use crystal reports in asp application
how to do it
and can anybody tell me resources on this

View Replies View Related

Using Sql Reporting Services In Asp

Can i make us of the sql reporting services in asp? If so then how do i make
a call since what i know is that sql reporting services are available as web
services?

View Replies View Related

Reporting From ASP Pages

I am looking for a way to create reports using ASP pages or some third party component. I am taking a look at crystal enterprise 8, but I am not sure about the licencing etc. I have used this to create a web report, but the 5 user licence seems to restrict you for just having 5 explorer windows open.

I.e. it doesn't seem to be 5 concurrent users and to have more would get very expensive. Has anyone done any reporting with ASP pages? Ideally, using barcharts, pie charts etc.etc.

View Replies View Related

Reporting Services

Has anyone constructed a SOAP request with Classic ASP and sent it to SQL Server Reporting Services to render a report formatted as PDF to a browser and dealt with the SOAP response?

I'm not talking about URL access, but accessing the SSRS web service directly with SOAP passing credentials, parameters, format, etc. There seems to be nothing out there for ASP 3.0 - it's ALL .NET.

View Replies View Related

Classic And SQL Reporting

i am working on a project and client just decided to use SQL Reporting Services 2000 for reporting but his application is developed in Classic ASP and SQL Server 2000.

how to view parametrized report in classic asp page and i want these paramters to be sent by URL not in report manually.

View Replies View Related

Need Reporting Capability

I am using ASP and I need the ability to make several dozen reports. I get the feeling that trying to produce somewhat attractive-looking reports in HTML and ASP code would not only be hair-splitting, but quite possibly could be impossible as well.

Does anyone know of any software/tool/package that would be compatible with ASP and allow me to retrieve reports from data that is stored in a database and called in the ASP page?

View Replies View Related

Which Reporting Tool Goes Well Is ASP

I am building a ASP financial reporting application. Here the user inputs
quarterly financial information. The data obtained is being used for
uploading a separate in-house application. The end-user should be in a
postion to run reports on their own based on the quarterly information they
furnish via the web applciation.

My question here is what is the best way to devleop reports in the asp
applications so that users can view their own report online? Somebody
suggested pure html reports. However, I believe there should be better ones
which would be web based.

View Replies View Related

Crystal Web Reporting ASP Issues

I'm having an issue with my Web application. It's deployed
using Crystal Reports 8.0 Developer edition.

I have an RPT file with a relatively large number of
formulas (30+). I did not create this RPT file and I
loathe to change it as I am not very well versed in the
field. I also did not create the ASP to generate reports,
but inherited it too, so I am really speaking from what I
have gathered at looking at the code.

The Report designer wanted a switch to determine if they
should show a certain field as an average or a total.
Instead of making this switch a parameter as I was
expecting them to, they made it a formula, which stumped
me for an hour or so. As the product shipped, this formula
is set equal to false, which means the user always
generates this field in Averages. If the formula is set to
true then the field will be set to Totals.

Now the problem has arisen that there are a large number
of formulas in the Report, and when you use Crystal 8.0
with ASP you must reference the formulas by their index
number as opposed to by the formula name or id. I have no
idea what this formula number would be. Code:

View Replies View Related

Reporting On Unclosed Connections...

Any one know if there is any way in asp to create a way to report information on any unclosed recordset instances or unclosed database connections etc...?

View Replies View Related

Generate PDF Reporting File With ASP From SQL Server Datas

I'm looking fo a solution to generate automaticaly a PDF file.

My aim is to use a template define by a user and to insert dynamicly
datas form SQL server in this document.

Can you tell me if it exist PDF template like .dot for word ?
If such file exist is it possible to generate list of information like
aacount report with datas coming for Database like Sql server.

View Replies View Related

Multiple Delete Of Files With FSO Error

I try to do a multiple delete of files through FileSystemObject, but after deleting the first file, ASP gives me a "Permission denied" error. Below you see my code:

Set fso = CreateObject("Scripting.FileSystemObject")
For Each Item in Request.Form("filename")
delFile = path2 & "files" & Item
fso.DeleteFile delFile
Next

View Replies View Related

Error In Passing Multiple Variables In A Href

I need to pass multple variables in a link in order to go to a asp page with
the two varables.

The following are the values of the variables using response.write:

<%'Response.Write Mypage & "<br>"%>
Exp

<%'Response.Write GrantID & "<br>"%>
4836

The link which I wrote is as follows:

<A HREF="mainreportagain1.asp?grantid=<%=GrantID%> & page=<%mypage%>">Report
Main Page</A>

However, when I am refreshing the page to click this link I am getting the
following error: Microsoft VBScript runtime (0x800A000D)
Type mismatch

View Replies View Related

Error Type:Active Server Pages, ASP 0138 --- Multiple Scriptblocks?

The problem occured when I used FP2002 to create a page to search a database. The purpose was to see how it worked and the code behind it so I could start learning how to work it myself.

But before I got that far, I get an error message:

HTTP 500.100 - Internal Server Error - ASP error

Error Type:

Active Server Pages, ASP 0138 (0x80004005)
A script block cannot be placed inside another script block.

Browser Type:

Mozilla/4.0 (compatible; MSIE 6.0; Windows 98) (Mozilla/5.0 came back with the same message)

But unless I'm mistaken (and I probably am), the only scriptting on the page is this: Code:

View Replies View Related

Error :: Multiple-step Operation Generated Errors. Check Each Status Value

I have come up against a very strange error, well one I havnt got before - and was wondering is there a way around this. In my mysql db i have a price field which is set as "decimal(10,2)" but when I try read from it through my asp page I get this error at the line where i do my recordset query:

Microsoft Cursor Engine (0x80040E21)
Multiple-step operation generated errors. Check each status value.

If I change the field type to "Integer(10)" its fine, it just doesnt like the decimal for some reason . And the thing thats really throwing me off is when I write the sql string doing the query out to the page and copy it into my mysql browser and run it, it comes back fine with all the data and no error.

View Replies View Related

Executing .EXE

What is the preferred method of executing .bat or .exe via ASPs

View Replies View Related

Executing ASP

Is it possible to make an ASP script that continues to run after the browser window is closed? I have a script that is going to run continuously for multiple days, and don't want to leave the browser window open. Maybe this can be achieved by executing a command for the system to run it?

View Replies View Related

Executing A Command Using Asp

I am using the below command to restart a service on one of my web
boxes, this runs fine from the command prompt and also through a *.bat
file.

"Server1Applist$BOBJCentralMSpsservice.exe" Server2 -u
eutee-ww02pUsername -p password restart BOBJCentralMS

I found this asp code in this forum but can not get it to work with my
command

<%
Dim oShell, sCommand
sCommand = "MyCommand"
Set oShell = CreateObject("WScript.Shell")
oShell.Run sCommand, , True
Set oShell = Nothing
%>

I replace "MYCommand" with the command i wish to execute but the page
just hangs with the blue status bar halfway complete at the bottom,
when checking the services on the box it is not restarted.

View Replies View Related

Executing Query

If I execute the following:
Code:

qSQL3="insert into eli_encomenda_linha (eli_enc_codigo, eli_codigo, eli_pro_codigo, eli_pro_designacao, eli_quantidade, eli_preco_unitario, eli_desconto, eli_imposto, eli_emb_codigo, eli_men_codigo) values (" & codigoEncomenda & ", " & lCiclo & ", '" & Session("idProduto" & lCiclo) & "', '" & Session("Descr" & lCiclo) & "', " & Session("qtdProduto" & lCiclo) & ", " & Session("preco" & lCiclo) & ", " & Session("Desconto" & lCiclo) & ", " & imposto & ", " & embCodigo & ", " & menCodigo & ")"

oConn2.Execute(qSQL3)


Everything is OK but, if i put the same in an do while, loop then, the following error appears:

-2147217900 - [Microsoft][ODBC Microsoft Access Driver] Syntax error in INSERT INTO statement.

View Replies View Related

Executing VBS File From ASP

I've tried instantiating the Windows Script Host shell object in ASP,
and I'm trying to run this command: "cscript.exe myvbs.vbs parameter1
parameter2"; however, the server runs cscript.exe very briefly, and the
task ends. Note, it runs fine from a command prompt. Do I need to give
the anonymous user any special permissions in order to do this?

View Replies View Related

Getting The Results From Executing An Exe

Is there any sample about getting the results from executing an exe using
asp?

View Replies View Related

Executing ASP Page

I have a file called Audit.asp that I want to execute via command line from a batch file (bulk.bat)How can I do this?

View Replies View Related

Executing WSH Scripts

I have a WSH script that I usually run using the server scheduler but want to be able to execute it from an ASP page to generate reports spontaneously. The WSH Script performs correctly from the server system and the scheduler but when I try it from my ASP (please see below) nothing happens, no errors, no reports, no nothing.Code:

<%
Dim objWSH : Set objWSH = Server.CreateObject("WScript.Shell")

objWSH.Run("d:scriptsmailreport.vbs weekly")

Set objWSH = Nothing
%>

View Replies View Related

Executing An API Call

I have a VB DLL which I've created that I call from an ASP page I also created. The DLL makes a call to the API (FindWindow), but always returns 0 instead of an HWND. I'm guessing that IIS is designed to disallow its own processes from discerning any information about outside (non-IIS) processes (for security reasons).

i read into low, medium, and high "security" settings (ie. being created as an IIS process, pooled, or an outside process), but that didn't seem to help. Any suggestions as to how I can make this API call succeed (and/or any similar API calls?

View Replies View Related

Executing A Db Command

when i want to do an action to the database i am using the command

Set myConn = Server.CreateObject("ADODB.Connection")
myConn.Open = "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" &
Server.MapPath("photoalbum.mdb") & ""
Set RS1 = myConn.Execute(SQL1)

is there something else i can use if it is only an INSERT statement in the sql because i dont actually need to create a recordset ?

View Replies View Related

Executing A VBS File

I used to be able to Execute '.VBS' files from ASP pages. I think the facility stopped in IIS6. Security feature I guess - any work arounds available ?

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved