Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Pb when interogate DB

Status
Not open for further replies.

17mounir

Programmer
Jul 25, 2005
2
FR
hi,
I'm novice in WinRunner, I'm trying to make a small database test, I'm connected to the DB, I can create table, add lines, but I can't interogate it with :
- db_get_row ( )
- db_get_field_value ( )

db_connect(DSN,"DSN="&DSN&";UID="&UID&";PWD="&PWD) ->ok
db_execute_query(DSN,sql,Nbr_Enreg) -> ok
compare_text("23/06/1983",db_get_field_value(DSN,"#0","Date_N")) -> KOOO

I don't know exactly what's the 2nd argument of db_connect() baut I think that I'm correctly connected if I can create tables
 
I found my mistake, it's too stupid :
- I forgot de SELECT querry before
- the name of field must be in capital letter
 
Happens to us all, it's all a learning experience...

Cheers,
Dave

Probably the only Test Analyst Manager on Tek-Tips...therefore whatever it was that went wrong, I'm to blame...

animadverto vos in Abyssus!

Take a look at Forum1393!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top