Re: Update an SQL database
- From: "Bob Barrows [MVP]" <reb01501@xxxxxxxxxxxxxxx>
- Date: Wed, 25 Jun 2008 09:42:51 -0400
Meat wrote:
Hello Bob,Hmm, I've just taken another look at your code and I'm not sure now what
The vbscrit isn't run by an asp page,
made me think it was. Sorry
I run it manually on a serverInsert here:
to see if my connection and querie to the SQL database is working
well. That's why I put those WScript.Echo. I watch it live and I
click OK when needed.
The problem I got is with this line :
Wscript.Echo Recordset contains '" & objRecordSet.Fields("Server") & "'"
Wscript.Echo Variable contains '" & strServerName & "'"
**********************************************************I will better be able to answer after you have done the above.
If objRecordSet.Fields("Server") = strServerName Then
**********************************************************
It seems that this line isn't working, because I do not see the
WScript.Echo lines after, even if I know that this condition is true.
Do I need to convert both variables into text or any other kind of
data to be able to compare them?
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
.
- Follow-Ups:
- Re: Update an SQL database
- From: Meat
- Re: Update an SQL database
- From: Daniel Crichton
- Re: Update an SQL database
- References:
- Re: Update an SQL database
- From: Bob Barrows [MVP]
- Re: Update an SQL database
- From: Meat
- Re: Update an SQL database
- Prev by Date: Re: Update an SQL database
- Next by Date: Re: Update an SQL database
- Previous by thread: Re: Update an SQL database
- Next by thread: Re: Update an SQL database
- Index(es):
Relevant Pages
|
Loading