Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

ASP.NET Forum


You are currently viewing our ASP.NET Forum as a guest. Please register to participate.
Login



Reply
Check if data exists in database
Old 10-11-2005, 04:33 AM Check if data exists in database
tcb
Experienced Talker

Posts: 34
Trades: 0
Hello,

How can I check if data exists in database?

tcb.
tcb is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 10-11-2005, 07:31 PM
robsmith's Avatar
Skilled Talker

Posts: 50
Location: UK
Trades: 0
If you want to know if a record exists, go here:

http://www.aspfaqs.com/aspfaqs/ShowFAQ.asp?FAQID=106
robsmith is offline
Reply With Quote
View Public Profile
 
Old 10-12-2005, 04:35 AM
tcb
Experienced Talker

Posts: 34
Trades: 0
Hello Robsmith,

I tried the code from the site you've indicated, but an error occurs on the following line:

Set rs = db.Execute(sSQL)

Here is the error:

[Oracle][ODBC][Ora]ORA-00900: invalid SQL statement


tcb.
tcb is offline
Reply With Quote
View Public Profile
 
Old 10-17-2005, 11:32 PM
WebcyteDesign's Avatar
Registered User

Posts: 159
Location: Hamilton
Trades: 0
Have you changed the querystring and connection string to point to your database?
WebcyteDesign is offline
Reply With Quote
View Public Profile Visit WebcyteDesign's homepage!
 
Old 10-18-2005, 08:19 AM
tcb
Experienced Talker

Posts: 34
Trades: 0
Yes. But now I am using some IFs outside the SQL statement. And the problem with the "Set rs = db.Execute(sSQL)" line is not occuring anymore.
Thanks anyway.

tcb.
tcb is offline
Reply With Quote
View Public Profile
 
Old 10-21-2005, 01:48 PM
pjb007's Avatar
Super Talker

Posts: 104
Location: UK
Trades: 0
http://www.codefixer.com/ is an excellent website.

I think that this page may help with what you want to to.
http://www.codefixer.com/tutorials/n...s_returned.asp
__________________
pjb007
pjb007 is offline
Reply With Quote
View Public Profile Visit pjb007's homepage!
 
Reply     « Reply to Check if data exists in database
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.37789 seconds with 12 queries