Asp and databases
I am a novice at asp and have been working with an
administrator to build an asp form that submits an order to a
database. For illustration purposes, this form is allows a user to
make a purchase based on a certain amount of "dollars". When the
user accesses the form, the database should be displaying how many
"dollars" the user has left, so they know how much they have to
spend. My form is successfully accessing the database and updating
it based on the purchase, but I do not know the code or script
required to display the "dollars" currently available. Can someone
help me with this? Thanks so much!
Right now I have it set up so it points to the same server.
Here are my settings:
Under the advanced tab-
Remote Info:
Access = FTP
FTP Host = xxxxxx
Host directory = xxxxxxx
Login = xxxxxx
Password = xxxxxx
Testing Server
Server Model = ASP VBScript
Access = FTP
FTP host = xxxxxx
host directory = xxxxxxx
Login = xxxxx
Password = xxxxxx
On both accounts the ftp host and the host directory are the
same.
I don't receive any errors when I finish. Alos everything
tests correctly to the server.
Similar Messages
-
Vertical Image Scroller with ASP and Database
A vertical image scroller where photos (thumbnails) can be
added or deleted with an app using asp and a database.
The scroller would be able to hold unlimited thumbnails. The
thumbnails
would also be buttons used to go to another frame or html
page.
The thumbnails start to scroll down when mouse rollovers top
half of
vertical thumbnail bar and scrolls up when mouse rollovers
bottom half of
bar. Slows and stops in the center of the bar.
Is this possible?Any idea on how to tackle this?
I have created a image scroller and I know how to create a
database and an
application to add records using asp.
But need help on creating a scroller that holds Unlimited
thumbnails in
Flash and adds the images to the thumbnail bar.
Thanks
"SMB" <[email protected]> wrote in message
news:ehc8kg$cud$[email protected]..
>
> "Joe T" <[email protected]> wrote in message
> news:ehankr$g5d$[email protected]..
>> Looking to create a vertical image scroller where
photos (thumbnails) can
>> be added or deleted with an app using asp and a
database.
>> The scroller would be able to hold unlimited
thumbnails. The thumbnails
>> would also be buttons used to go to another frame or
html page.
>> The thumbnails start to scroll down when mouse
rollovers top half of
>> vertical thumbnail bar and scrolls up when mouse
rollovers bottom half of
>> bar. Slows and stops in the center of the bar.
>>
>> Is this possible?
>>
>>
>
> Yes, definatly possible.
> -
Trouble with ASP and databases
Hi,
I am trying to create a form in Dreamweaver 8 so my customers
can enter their information and save it to a sql server database. I
am able to set up the connection to the database using ASP VB. I
can create the fields and which records it will update, but as soon
as I save it, I no longer have access to the database. I can't even
add a new one. In the database window the plus sign is greyed out.
It tells me "To preview pages containing server-side code, you need
a testing server. Would you like to specify one now?" The page is
located under the correct site. I can upload it but when I punch in
the info, it gives me a page not found.
Everything works fine until I save the file.
Plese help!Right now I have it set up so it points to the same server.
Here are my settings:
Under the advanced tab-
Remote Info:
Access = FTP
FTP Host = xxxxxx
Host directory = xxxxxxx
Login = xxxxxx
Password = xxxxxx
Testing Server
Server Model = ASP VBScript
Access = FTP
FTP host = xxxxxx
host directory = xxxxxxx
Login = xxxxx
Password = xxxxxx
On both accounts the ftp host and the host directory are the
same.
I don't receive any errors when I finish. Alos everything
tests correctly to the server. -
Trying to simply connect to Oracle with VBscript/ASP - and I cannot.
This is rather embarrassing. I am pretty fluent with ASP and VBscript, and I have written many a web application connecting to Microsoft SQL Server. Now I have a need to connect to an Oracle database, and I'm beating my head against the wall.
1) Web server is Windows Server 2003 SP1
2) Using ASP (not ASP.NET) & VBscript
3) I have installed the Oracle drivers on the server - it is version 10g
4) The administrator of the Oracle database to which I want to connect has created a username and password for me to use from within my code
5) Here is the code I am trying to run:
Set objConn = Server.CreateObject("ADODB.Connection")
objConn.Open "Provider=MSDAORA;Data Source=XXXXXXX;User Id=YYYYYYY;Password=ZZZZZZZ;"
That's it. 2 lines of code just trying to establish a connection. Using the user name and password provided to me by the administrator, and for Data Source I am using the IP address of the Oracle server (like I have done in the past when connecting to SQL Server). I receive the following error message when viewing this in a browser:
Microsoft OLE DB Provider for Oracle error '80004005'
ORA-12154: TNS:could not resolve the connect identifier specified
Evidently, the Data Source I am using is not correct, but I was provided no other information from the admin. This is the first time any of us have tried to connect to Oracle using ASP/VBScript, so the administrator isn't sure what I need to do ... any help would be so appreciated.Hello,
I got mine to work by setting up an ODBC System DSN and connecting to it. I think this bypasses the Microsoft driver, which might be what's causing the problem.
Set Db = Server.CreateObject("ADODB.Connection")
Db.Open "DSN=TEST;User ID=userid;Password=password;"
Good luck, I've found it requires a lot of persistence...
Al
Springfield, MO -
I would like to know if I, as a Mac-based "developer"
(designer really, but needing to stretch out), can use a Mac (and
the Mac version of DWCS3) to develop for an ASP-based site.jsteinmann wrote:
> well actually, intel chip macs can run windows xp and
vista so you can in fact
> have a local testing server and build sites for MS
technology web applications
> on a mac using bootcamp.
>
> However, if you want to remain in osx as you work, you
can try using something
> like fusion, and select the pc side as the remote host
(haven't tried this, but
> I guess it's possible in theory).
>
> Otherwise, as mentioned, simple setup any cheapo pc as a
remote testing server
> on your home network, or a remote server as a testing
server. It's not hard to
> do either way. The hosting provider you use for live
sites can easily be used
> as a testing server for the apps and database at the ip
address assigned, and
> just change the name servers when ready to go live.
It may not be good practice, but there is nothing stopping
you from
using the live server to test your ASP application, you just
have to
wait a little longer as you FTP each file as you work on it.
I worked
like this for 6 years without too much frustration.
Steve -
Vbscript / asp and DATEs in recordset query
I've been using dreamweaver for about 5 years now, and its all be mostly vbscript - classic asp based stuff.... mostly small scale stuff using MS Access db as backend datasource.
i've always had issues with using the recordset building dialogue window/box under server behaviors in terms of building a query using the 'advanced' tab/option and having a date field from my database (formatted like mm/dd/yyyy) used in the filtering of records... the text based queries are all a cinch and very easy to do, but for dates I always run into issues.
right now im simply trying to make sure all the returned records are AFTER the 'current date' - date() ...
and dw cs5 has this line added for the default value: RS_Events_cmd.Parameters.Append RS_Events_cmd.CreateParameter("param3", 135, 1, 1, RS_Events__MMColParam3) ' adDBTimeStamp
in my query im asking And EventDate > ? ---- basically, where the date of the record in the database is GREATER than or AFTER the current date or a user-defined variable for the date... the default is the current date though.
something tells me the problem is probably related to the 135,1,1 area of that string, but i dont know what to try... i've tried changing the last 1 to -1 and 0 but still same error "Application uses a value of the wrong type for the current operation." and it cites that same line of code i just mentioned.
i might add the database has the date field formatted correctly and im able to use hand-written code to query it just fine, but i know there has to be a way for dw to handle it so my code isnt 'tacked' on and making a mess of the dw routines.
anyone familiar with any of these issues as relates specifically to vbscript / asp and the use of date() in dw recordset queries?Hi,
<i>I need to use a date to calculate a key figure.</i>
Here you will use the formula variable with replacement path.
<i> Can I filter these null values at the query level.</i>
Yes, it is possible in query level.
For example, in the formula :
(0calday = '')* (do what ever you wan to do in case date is null) + (NOT (0calday = ''))* (do what ever you wan to do in case date is not null)
With rgds,
Anil Kumar Sharma .P -
Cannot preview ASP JavaScript database pages anymore
I've lost my ability to preview my ASP JavaScript database
pages on MX 2004. They upload fine, just can't preview them. Error
ASP 0129 - The scripting language 'JAVASCRIPT' is not found on the
server.
I recently installed a trial version of DW CS4 on an external
drive, but am now wondering if dll files were overwritten in the
process that affected MX 2004. I've since uninstalled CS4 and
cleaned up the registry, but the problem still exists.
My other computer previews fine with same IIS settings and AV
protection. So it’s something within DW on my computer that
has a glitch and the only thing I can think of is the installation
of CS4 jolted MX 2004 and now ASP JavaScript is not recognized.
Is there a repair tool for Dreamweaver? If not, and I
reinstall OVER the current installation of MX 2004, will I lose any
settings, and will I have to reinstall updates and extensions? Any
other suggestions are appreciated!I've lost my ability to preview my ASP JavaScript database
pages on MX 2004. They upload fine, just can't preview them. Error
ASP 0129 - The scripting language 'JAVASCRIPT' is not found on the
server.
I recently installed a trial version of DW CS4 on an external
drive, but am now wondering if dll files were overwritten in the
process that affected MX 2004. I've since uninstalled CS4 and
cleaned up the registry, but the problem still exists.
My other computer previews fine with same IIS settings and AV
protection. So it’s something within DW on my computer that
has a glitch and the only thing I can think of is the installation
of CS4 jolted MX 2004 and now ASP JavaScript is not recognized.
Is there a repair tool for Dreamweaver? If not, and I
reinstall OVER the current installation of MX 2004, will I lose any
settings, and will I have to reinstall updates and extensions? Any
other suggestions are appreciated! -
Training: ASP/Forms/Database
Where do I begin? I am a Dreamweaver user (approx 5 years). Now need to learn how to connect my site using DW to a SQL Database. Need an overall understanding/overview of asp/forms/database. The site I am working on has forms created in DW using ASP. How to get the data captured in the form to transfer to the database. Thanks much.
Was this a bump?
I also had to re-learn...I started using DW back when it was a Macromedia product (around 1998 and later) and the web standard was still static HTML and XHTML. Needless to say, those were the extent of my language repertoire (looked at ASP at the time but didn't feel it was necessary). I left the web design scene somewhere around the time MX2004 came out and had moved on to other things but stayed using the entire Macromedia design series to this date (I currently use CS5).
I had recently been asked to help out with a website and it was suggested that it be a dynamic site with php and a mysql database. I wanted to hold on to my geek badge so I started learning php and mysql (still learning). I found that the best way to learn these languages is W3Schools. That is an awesome reference and education site and they've been around for 10+ years. I used W3Schools and jumped from php/sql forum to php/sql forum for help with specific problems I ran into with coding. Forums are indispensable for getting the help you need but you should be looking at language-speciic forums (php,ASP,sql,CF...). Fortunately php and mysql are relatively easy languages to learn and if you have any web design background, you should be able to self-learn with little difficulty.
Good luck. -
I just bought a Mac. I am developing with asp. Is there any
server that can run the asp pages on the mac. If not what are my
alternatives. thanks for your helpRSXDriver wrote:
> is php easy to learn. I watched a bunch of tutorials on
asp and spent a lot of
> time on it. I know i could load windows on my mac, but I
really dont want to.
> what kind of database software is available for mac? I
guess SQL cannot be used
> because it is microsoft? what like access? Sorry for all
of the questions, its
> like I have to learn all over again. But the mac is
definitly worth it!
I think PHP is easy to learn. I started with ASP, but ran
into so many
problems that I switched to PHP after about a year and never
looked
back. The fundamental principles are the same: use of
variables,
functions, strings, arrays, conditional control structures
(if, if...
else, switch). So you should find the change quite
straightforward. Yes,
things are different, but the underlying principles are the
same.
The main database used with PHP is MySQL. The basic SQL
syntax is the
same - it's an international standard. The two big
differences are that
MySQL is a Ferrari in comparison to Access's Ford, but it
doesn't come
with a glossy interface like Access. However, there are
several useful
front-end interfaces to MySQL, such as the free phpMyAdmin,
which most
hosting companies provide as standard with a PHP/MySQL setup.
ASP is obsolescent - Microsoft stopped development in favour
of ASP.NET
several years ago. PHP and MySQL are in much wider use than
classic ASP.
I would say that the real competition is now between ASP.NET
and PHP.
You can't use ASP.NET on a Mac, so PHP seems the obvious
route to go
unless you're prepared to switch back to Windows.
David Powers, Adobe Community Expert
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/ -
Re: what is difference between sap locking and database locking
hi,
what is difference between sap locking and database locking. Iam locked the table mara by using lock objects.
But iam unable to unlock the mara table. I give u the coding. Please check it.
REPORT zlock .
CALL FUNCTION 'ENQUEUE_EZTEST3'
EXPORTING
MODE_MARA = 'S'
MANDT = SY-MANDT
MATNR = 'SOU-1'.
call transaction 'MM02'.
CALL FUNCTION 'DEQUEUE_EZTEST3'
EXPORTING
mode_mara = 'E'
mandt = sy-mandt
matnr = 'SOU-1'.
IF sy-subrc = 0.
WRITE: 'IT IS unlocked'.
ENDIF.Hi Paluri
Here is the difference between SAP locks and Database locks, i will try to find the solution to your code.
Regards
Ashish
Database Locks: The database system automatically sets database locks when it receives change statements (INSERT, UPDATE, MODIFY, DELETE) from a program. Database locks are physical locks on the database entries affected by these statements. You can only set a lock for an existing database entry, since the lock mechanism uses a lock flag in the entry. These flags are automatically deleted in each database commit. This means that database locks can never be set for longer than a single database LUW; in other words, a single dialog step in an R/3 application program.
Physical locks in the database system are therefore insufficient for the requirements of an R/3 transaction. Locks in the R/3 System must remain set for the duration of a whole SAP LUW, that is, over several dialog steps. They must also be capable of being handled by different work processes and even different application servers. Consequently, each lock must apply on all servers in that R/3 System.
SAP Locks:
To complement the SAP LUW concept, in which bundled database changes are made in a single database LUW, the R/3 System also contains a lock mechanism, fully independent of database locks, that allows you to set a lock that spans several dialog steps. These locks are known as SAP locks.
The SAP lock concept is based on lock objects. Lock objects allow you to set an SAP lock for an entire application object. An application object consists of one or more entries in a database table, or entries from more than one database table that are linked using foreign key relationships.
Before you can set an SAP lock in an ABAP program, you must first create a lock object in the ABAP Dictionary. -
Some error in cluster alertlog but the cluster and database is normal used.
hi.everybody
i used RAC+ASM,RAC have two nodes and ASM have 3 group(+DATA,+CRS,+FRA),database is 11gR2,ASM used ASMlib,not raw.
When i start cluster or auto start after reboot the OS,in the cluster alertlog have some error as follow:
ERROR: failed to establish dependency between database rac and diskgroup resource ora.DATA.dg
[ohasd(7964)]CRS-2302:Cannot get GPnP profile. Error CLSGPNP_NO_DAEMON (GPNPD daemon is not running).
I do not know what cause these error but the cluster and database can start normal and use normal.
I do not know whether these errors will affect the service.
thanks everybody!anyon has the same question?
-
Performance with MySQL and Database connectivity toolbox
Hi!
I'm having quite some problems with the performance of MySQL and Database connectivity toolbox. However, I'm very happy with the ease of using database connectivity toolbox. The background is:
I have 61 variables (ints and floats) which I would like to save in the MySQL-database. This is no problem, however, the loop time increases from 8ms to 50ms when using the database. I have concluded that it has to do with the DB Tools Insert Data.vi and I think that I have some kind of performance issue with this VI. The CPU never reach more the 15% of its maximum performance. I use a default setup and connect through ODBC.
My questions are:
1. I would like to save 61 variables each 8-10ms, is this impossible using this solution?
2. Is there any way of increasing the performance of the DB Tools Insert Data.vi or use any other VI?
3. Is there any way of adjusting the MySQL setup to achieve better performance?
Thank you very much for your time.
Regards,
MattiasFirst of all, thank you very much for your time. All of you have been really good support to me.
>> Is your database on a different computer? Does your loop execute 61 times?
Database is on the same computer as the MySQL server.
The loop saves 61 values at once to the database, in one SQL-statement.
I have now added the front panel and block diagram for my test-VI. I have implemented the queue system and separate loops for producer and consumer. However, since the queue is building up faster then the consumer loop consumes values, the queue is building up quite fast and the disc starts working.
The test database table that I add data to is created by a simple:
create table test(aa int, bb char(15));
...I'm sure that this can be improved in some way.
I always open and close the connection to the database "outside the loop". However, it still takes some 40-50 ms to save the data to the database table - so, unfortunatly no progress to far. I currently just want to save the data.
Any more advise will be gratefully accepted.
Regards,
Mattias
Message Edited by mattias@hv on 10-23-2007 07:50 AM
Attachments:
front panel 2.JPG 101 KB
block diagram.JPG 135 KB -
I just want itunes music and database to be on external HD not internal
What am I doing wrong. I have itunes music library on my external HD and my itunes preferences say that my itunes music folder location is just that. It's about 41 GB. Ok, but why on my system drive is there an itunes folder in the default user music folder and it is 7 GB and there are certain titles in there that did not make it to the external. The database files are in there as well. Shouldn't everything be located in the external itunes music folder including the database files ? How do I have itunes automatically update the external HD folder and put the database files in there as well and stop using the internal system drive for storage and database.
I did that a while ago. But now it seems there are 7 GB of stray files. Is there a sync feature that moves only the itunes files that are outside the designated itunes folder, in my case they are living on the system drive for some reason...
-
I receive REP-0501: Unable to connect to specified database. I run developer 6i application on windows 2008 r2. I have applied the nn60.dll and nnb60.dll files to the \BIN directory. The forms are working fine. The reports will only display after the correct user id (username, password and database connection string) is supplied. This is happening to all attempts to open already complied form. Pls, help.
If you are connecting to an Oracle 11g database, remember that by default the passwords are case sensitive. To disable that, run
ALTER SYSTEM SET SEC_CASE_SENSITIVE_LOGON = FALSE; -
ERROR: Exception occured while encrypting the configuration and database
I'm facing below issue/error during the OIM 11g R2 configuration (fresh install). Resolutions from other blog with same error (DOMAIN_HOME misconfigured) isn't helping in my case.
Thanks for your help
updateMLSLocale:ORACLE_HOME :/fmw/Oracle_IDM1
updateMLSLocale:LOCALE_PROPERTIES_FILE :/fmw/Oracle_IDM1/inventory/Scripts/ext/jlib/oim/OIMLocales.properties
java.lang.Exception: Exception occured while encrypting the configuration and database
at oracle.as.install.oim.config.util.EncryptConfigurationAndDB.encryptConfigurationAndDatbase(EncryptConfigurationAndDB.java:239)
at oracle.as.install.oim.config.OIMConfigManager.encryptDB(OIMConfigManager.java:1035)
at oracle.as.install.oim.config.OIMConfigManager.configureOIM(OIMConfigManager.java:891)
at oracle.as.install.oim.config.OIMConfigManager.doExecute(OIMConfigManager.java:583)
at oracle.as.install.engine.modules.configuration.client.ConfigAction.execute(ConfigAction.java:371)
at oracle.as.install.engine.modules.configuration.action.TaskPerformer.run(TaskPerformer.java:88)
at oracle.as.install.engine.modules.configuration.action.TaskPerformer.startConfigAction(TaskPerformer.java:105)
at oracle.as.install.engine.modules.configuration.action.ActionRequest.perform(ActionRequest.java:15)
at oracle.as.install.engine.modules.configuration.action.RequestQueue.perform(RequestQueue.java:64)
at oracle.as.install.engine.modules.configuration.standard.StandardConfigActionManager.start(StandardConfigActionManager.java:160)
at oracle.as.install.engine.modules.configuration.boot.ConfigurationExtension.kickstart(ConfigurationExtension.java:81)
at oracle.as.install.engine.modules.configuration.ConfigurationModule.run(ConfigurationModule.java:86)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.Exception: Exception occured while encrypting the database
at oracle.as.install.oim.config.util.EncryptDataBase.encryptDBContent(EncryptDataBase.java:159)
at oracle.as.install.oim.config.util.EncryptConfigurationAndDB.encryptConfigurationAndDatbase(EncryptConfigurationAndDB.java:230)
... 12 more
Caused by: java.lang.Exception: Exception occured in updateMLSLocale method while updating Locale to OIM DB
at oracle.as.install.oim.config.util.EncryptDataBase.updateMLSLocale(EncryptDataBase.java:318)
at oracle.as.install.oim.config.util.EncryptDataBase.encryptDBContent(EncryptDataBase.java:125)
... 13 more
Caused by: java.sql.SQLIntegrityConstraintViolationException: ORA-00001: unique constraint (DEV_OIM.UK_MLS_LOCALE_MLS_LOCALE_CODE) violated
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:462)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:405)
at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:931)
at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:481)
at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:205)
at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:548)
at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:217)
at oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:1115)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1488)
at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3769)
at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:3904)
at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeUpdate(OraclePreparedStatementWrapper.java:1512)
at oracle.as.install.oim.config.util.EncryptDataBase.updateMLSLocale(EncryptDataBase.java:310)
... 14 moreHi
I faced this issue before ,Reinstall is the option you have .Verify the version of RCU before you start creating schema .Set all Pre DB setting ,hostname and IP Address ,If DB and OIM are in ifferent machines check pinging from both the sides .
Please Drop all OLD schema ,Create a New "Prefix" for fresh installation , don't use old schema .
Let me know .
Thanks,
Ari
Maybe you are looking for
-
Error message when syncing movie to my classic 120gig
Hi There, Hoping someone can help me figure out why I get the error message "your computer is not authorized to play this movie" when trying to sync a purchased movie from itunes. The movie shows up in my purchased movies section on itunes and I have
-
Dear friends, we do have an issue that sometimes result in a random delay. We haven't thoroughly invesitigaded this, so there might be some bad conclusions made in the scenario described below We're using Tuxedo 11.1.1.2.0 and DB2 9.7 When we're doin
-
Dear CS, Currently, My iphone 4S is ESN Clean. But I move to live in Vietnam So i need to unlock my iphone. I know that i need to buy code service to upgrade to unlock factory. How to buy it? Please help me, i don't know where to buy them Thanks and
-
Error when trying to use this query in report region
Hi , I am getting "1 error has occurred Query cannot be parsed within the Builder. If you believe your query is syntactically correct, check the ''generic columns'' checkbox below the region source to proceed without parsing. ORA-00933: SQL command n
-
Do we need to install SAP Portal for implementation of ESS & MSS
Hi All, We are implementing SAP (ECC 6.0) for one of our client, Due to some contractual limitations, we do not want to implement SAP portal though it is a part of standard delivery, I want to know that is it absolutely necessary to install and imple