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
Old 01-06-2006, 03:26 AM A little about db
waller's Avatar
Skilled Talker

Posts: 59
Location: North Borneo.
Trades: 0
I use Vbscript in asp file....

This is my code.
PHP Code:
Set conn=OpenConnection(MyDb(0)) 

Dim rs2

set rs2
=CreateObject("ADODB.Recordset")
sql2="select * from TV" 
rs2.Open sql2conn

Insert data into database
rs2
.AddNew 'This is line 102
rs2("Jobfile") = "File 12"
rs2.Update 
This error occured.
PHP Code:
Object required'rs2'
/somis/drafttitles/TvGenerate.aspline 102 
What does this mean?
__________________
$id ="waxxer";
$id = str_replace('x', 'l', $id);
echo $id;
echo " and Marj";
waller is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 01-06-2006, 09:11 AM
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
it means rs2 wasn't created / opened in the previous line
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 01-06-2006, 09:31 AM
waller's Avatar
Skilled Talker

Posts: 59
Location: North Borneo.
Trades: 0
Anything amiss in my code?
__________________
$id ="waxxer";
$id = str_replace('x', 'l', $id);
echo $id;
echo " and Marj";
waller is offline
Reply With Quote
View Public Profile
 
Old 01-06-2006, 09:52 AM
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
nothing obvious but not sure about the use of the OpenConnection method because I have no idea what MyDb(0) is

do some basic debugging and response.write out the various variables so you can see if they are created and valid.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 01-17-2006, 01:57 AM
Bullschmidt's Avatar
Average Talker

Posts: 24
Location: USA
Trades: 0
And for a good connection strings resource:

Connection String Home Page
http://www.carlprothman.net/Default.aspx?tabid=81
__________________
J. Paul Schmidt

Please login or register to view this content. Registration is FREE
- Freelance Web and Database Developer

Please login or register to view this content. Registration is FREE
- Classic ASP Design Tips
Bullschmidt is offline
Reply With Quote
View Public Profile Visit Bullschmidt's homepage!
 
Reply     « Reply to A little about db
 

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.20880 seconds with 12 queries