Retriving Oracle Date

I'm having hard time retrieving oracle date with the follwing sql statement using VBScript. MayDate Column is Date Type Code:

View Replies


ADVERTISEMENT

Problem Retriving Oracle Date

I get the following error message when I search for some fields stored in oracle database.

Microsoft OLE DB Provider for ODBC Drivers (0x80020009)
[Microsoft][ODBC driver for Oracle][Oracle]ORA-01861: literal does not match format string
/documenttracking_v3/ReportMain.asp

The script functions correctly using MSAccess and MS sql, when I moved to Oracle I keep getting Date format error messages eventhough The script includes a function that forces the date format I need. Code:

View Replies View Related

Retriving Date Information

A database has been developed to allow IT to track fault requests. However when you list the faults in question it doesn't display the issuedate.I have checked the code in relation to the other ASP requests, apart from the field name everything else is identical.

View Replies View Related

Date From An Asp Into Oracle

I'm calling an update procedure from Oracle using ASP..

<pre>
With objCommand
.CommandText = "{call cust_Update(?, ?, ?)}"
.CommandType = adCmdText
.Parameters(0).Value = varCus_id
.Parameters(1).Value = varf_Name
.Parameters(2).Value = varbirthdate
.Execute() ............
</pre>
the problem I'm having is when entering the birthdate. This is the error I get...
Microsoft OLE DB Provider for Oracle error '80040e14' I believe it has something to do with the delimiter in the date string("/"), but not sure? The Oracle procedure birth_date column is in "mm/dd/yy" format:
birth_date=to_char(i_birth_date,'mm/dd/yy')....
When I pass this in the textbox from the asp in this format I get the error? How can I resolve the ASP to take in the right characters for the birthdate?

View Replies View Related

Date Formatting In Oracle/ASP

I'm returning a date (5th Jan 2004) from Oracle using the
following query:

select TO_CHAR(invoice_date,'DD/MM/YYYY') from...

This should return my date in the UK format, and it
certainly appears to be doing just that in Toad. And it
also looks correct in my form as it shows as:

05/01/2004

However when I submit my form I am having to convert the
date to an Oracle format using this function: Code:

View Replies View Related

Retrieving Oracle Date

I'm having hard time retrieving oracle date with the follwing sql statement:

Select * From Document Where Mydate= #" & RS("Mydate") & "#"

I get ORA-0091 invalid character error. Then I used the TO_Date function as follow:

Select * From Document Where Mydate= To_Date(RS("MyDate"),'mm/dd/yyyy')"

I get the error expected end of statement: Now When I inser an explicite date it works

Select * From Document Where Mydate= To_Date('03/28/2005'mm/dd/yyyy')"

How do I bind Mydate into a variale and use it in the TO_Date Function .

View Replies View Related

Oracle System Date

I am trying to enter date into oracle databalse & using oraoledb since im taking system date but the value inserted is this "20-JUL-18".

I used date()

How to format the date as to include the year in date.

View Replies View Related

Posting Date To Oracle

I'm trying to post a date value into an oracle 9i database, using classic asp, as that's the language existing app was written in, using the following code:

to_date('"&date()&"','DD-MMM-YYYY')

that's included in the insert statement, i keep getting the following error on the page:

Microsoft OLE DB Provider for ODBC Drivers error '80004005'

[Oracle][ODBC][Ora]ORA-01821: date format not recognized

any ideas? i checked the database type in the table, it's set to Date.

View Replies View Related

Change Oracle Date Format

I need to update an oracle database however, i must have the format
22 FEB 2004

Unfortunately i use a date picker(javascript) which returns 22/02/2004.
(this happens in client side)

How do i change the format to "22 feb 2004" in the server before inserting into the database ?

I already have
strdate1 = Request.Form("date1")

how do i change this date format ?

View Replies View Related

Problem With Date Format When Compared With Oracle

In oracle, I have a column which store date (with DAT type). The content will be like 11/08/2005 12:00:00. How can I get the exact date format in ASP?

View Replies View Related

Date Format From Asp Form To Oracle Database?

my database, sqlplus oracle, has a column ccexpiry, whch is set to date. In my form in asp, there will always be an error whenever i pass in a date that is not in the DD MMM YYYY which is the standard for oracle. My qn is how can i pass in a date that is in DD/MM/YYYY format? Code:

View Replies View Related

Retriving Data

I am retrivig data from MS Access and displaying data in the form of table. First time it sidplays properly, but if user goes back and agin tries to access same page. It gives following

Error Type:
Provider (0x80004005)
Unspecified error
/DevWebInfo/Leave_status.asp, line 20

line 20 is as below

con.Open "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & server.MapPath("database/Leave/Members_Leave.mdb")

View Replies View Related

Retriving From Form Collection

I have an asp page in which i have a combo,in change of selected index of combo i am putting the combo value to a hidden variable then submitting the form like this

form.hid.value=1
form.target;
form.submit

and again while loading the form i am checking for the value like this .request.form("hid") but i am not getting the value .what could be the problem.the method of my form is post only.

View Replies View Related

Retriving Images From D/B And Displaying On Webpage

How do i retrieve images[.gif/.jpg] from database and displaying it on a webpage?

View Replies View Related

Retriving Image Attributes Dynamically

I am writing WYSIWYG editior using javascript and asp.. i need a good solution for image placement, right now i am having one.. but is there is any way to retrive the attributes of the images (height, width) of the image while uploading itself.

I am using Binary read for saving the image. Or is there is any way i can place the images in a better way with out asking our end users to do much work.. Using ASP.

View Replies View Related

Retriving Email Adrress And Users Fro Active Directory

Does anyone have a script ASP 3.0 that will return the email address and display name for the current user in Active Directory.

Not be using Anonymous access and will be using Integrated Windows Authentication.

View Replies View Related

Retriving Rows From Stored Procedure That Uses Temp Tables.

I want to retrieve row from a stored procedure that uses temp table.

Stored procedure works well in SQL Query Analyzer, but if run it from ASP thru Command object, i am getting an error stating that,

Error Type:
ADODB.Recordset (0x800A0E78)
Operation is not allowed when the object is closed.

code used: .....

View Replies View Related

How To Check The Date Difference Between The Current Date And The Booking Date?

I am developing a simple booking system where I had a booking date. The problem is I want to make sure that the user must book 3 days in advanced for certain room.

I have tried to use DateDiff but it seems doesn't work. Actually i just 1 to make sure that the user must book 3 days in advanced from the current date. I am wondering whether there is anything goes wrong in my datediff function. Code:

View Replies View Related

ASP And Oracle

I'm building a website using the oracle database engine. i'm conneting
to the database using the odbc. the database is created on a webserver.
when i'm using the odbc on my local workstation the connection works.
but when i'm trying to publish the site i receive the following error:
Microsoft OLE DB Provider for ODBC Drivers error '80004005'

Specified driver could not be loaded due to system error 5 (Oracle in
OraHome92).

/arabic/news_index.asp, line 46

line 46 is when i'm opening the connection.

Note: what i mean with "my local workstation" is when i call the
website using the localhost. and i mean by "publish the site" is by
giving the website a dns name.

View Replies View Related

ASP And Oracle

When I place a record set on an asp page designed in dreamweaver. I get the following error when i try to run d page.

Microsoft OLE DB Provider for ODBC Drivers (0x80004005)

Specified driver could not be loaded due to system error 127

I am connected to the database i can see my tables i was able to make a record set but when i place it on the pace and try to prview the page in internet explorer i get the above error. I have used oracle 10g to create the database.

View Replies View Related

Asp With Oracle

i would like to ask what is the best and easiest way to connect an ASP application to an ORacle database? i will be accessing the database server from our network. do i still need to install anything in my local pc?

View Replies View Related

Asp With Oracle

I know how to connect with Access.How can we connect ASP with oracle without mentioning the Data Source Name?

View Replies View Related

Oracle

I written a procedure in oracle which returns a value. What all I want to do is to hold the value in a ASP vairable. The Oracle procedure,

create or replace procedure tat
(j out number,i in nnumber,k in number)
is
begin
j:=i+1;
end tat;

I need to get the value of j in a variable & how to pass more parameters. i need this to be handled in asp i will pass through request form and call the procedure, and the procedure will return a value that also has to be hold.

View Replies View Related

Connect To Oracle From ASP

My asp application is connect to oracle database. However, when i try to open the default page, an error occurs and i receive this message:

- Error Type:
Microsoft VBScript runtime (0x800A01B6)
Object doesn't support this property or method: 'MoveFirst'

The code that is causing this error is following:

Code:

<%
Dim objConn
Dim rsForums
Set objConn = Server.CreateObject("ADODB.Connection")
objConn.Open "dsn=ORCL9; uid=toy; pwd=yes;"
Set rsForums = Server.CreateObject("ADODB.Recordset")
rsForums = objConn.Execute ("SELECT * FROM Forums ORDER BY Forum ASC")
rsForums.MoveFirst
%>
<table width="100%" align="center" cellspacing="0" cellpadding="6" border="1">
<tr>
<td width="60%">
<p><b>Forums</b>
</tr>
<%
While Not rsForums.EOF
%>
<tr>
<td><a href="forum.asp?ForumID=<%= rsForums("ForumID") %>"><B><%= rsForums("Forum") %></B></a>
<BR>
<BLOCKQUOTE>
<%= rsForums ("Description")%><BR>
<SMALL>[Total Posts: <%= rsForums("Posts") %>] [Last Post on <%= rsForums("LastPost") %>]</SMALL>
</BLOCKQUOTE>
</tr>
<%
rsForums.MoveNext
Wend
rsForums.Close

The forums table in the oracle database has 2 lines of records, and it should not occur this error. Do you have any idea what is happenning?

View Replies View Related

Connection With Oracle

Can I connect oracle using asp?Is it possible?I have done it with msaccess and sql server 2000 before. Can you guide me to create a connection with rdbms oracle with asp.(with dsn or without dsn)

View Replies View Related

Sysdate In Oracle

I am trying to write a simple SQL statement which will take a string
(startdate) in the format DDMMYYYY and compare it to a date stored in
an Oracle database. My SQL is as follows:

<%

"select * from tblhistory where datechanged = '" & startdate & "'"

%>

The field datechanged in the Oracle database is set up using the
Sysdate variable, on a previous occasion.

View Replies View Related

Oracle Package

I have a big problem here ....i have an oracle pakage and i need to call this package in ASP , when i use "microsoft odbc for oracle" it work fine .
But now we need to change the odbc to "Oracle in OraHome92" ...so evrything in the package call must be change. any one can help me ?? how can i call this package via this odbc driver and how i can retrun a record set from the package?.

View Replies View Related

8i Oracle Database

i searched the web for a code to connect an 8i oracle database with the ASP and i didn't find anything useful untill now . So if any one can help me in this i will be so greatful , also i wanna know if it is possible for the PWS or is it only working with the IIS

View Replies View Related

Shutting Down Oracle

On User Logout,I Close my Asp Application Browser Window,
and attempt to shut down oracle database.
The window closes, but Oracle Shutdown displays
"Stop Active Connections".

Can i avoid this window ? I am not using global.asa.

The following is my logout code :
<%Session.Abandon()%>
<script language="JavaScript">
parent.window.close();
</script><%dim Executor
Set Executor = Server.CreateObject("ASPExec.Execute")
Executor.Application = """E:ORAWIN95BINOSTOP73.EXE""/screen"
Executor.ShowWindow = false
Executor.ExecuteWinApp
set Executor=nothing%>

View Replies View Related

ASP Oracle 9i Connection

I am trying to connect to Oracle 9i Database Installed on Win 2000 Server using a DSN and i am getting the foll error :

Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC driver for Oracle][Oracle]
/test/includes/openconn.asp, line 7

No error description

The line 7 is where I am opening the connection using
objConn.open "Dsn=test;uid=xxx;pwd=xxx;"

I am able to connect to the Oracle 9i Database using my SQL Plus and also thru Oracle Management Server

View Replies View Related

ASP Oracle Package

Does anyone know how to return data from an Oracle pakage using Oracle driver?

View Replies View Related

Oracle Paging And Asp

Anyone have any good links on accessing the paging methods in the Microsoft ADO when dealing with Oracle? I've tried just about everything I know, and I can't get those methods to work worth a diddly. Code:

View Replies View Related

ASP > Mysql, Oracle

I am currently drawing up a sample server architecture for a windows environment,

from ASP is there any limitation on which Database one can work with, ie are MYSQL and Oracle supported ...

View Replies View Related







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