Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Object Required error

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,63066
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Object Required error
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Object Required error - 8/3/2008 2:03:47 PM   
  BikeBoy

 

Posts: 10
Score: 0
Joined: 1/4/2006
Status: offline
Hi all,
I am just a beginer with VBS, and am trying a few things. This is a very short script to echo the db size. "MyServer" and "MyDB" are names of sql server and a database.
I am getting an error Line 4, Char 1 Object Required. What other object do I need?


      

 
 
Post #: 1
 
 RE: Object Required error - 8/4/2008 5:17:49 PM   
  ehvbs

 

Posts: 2201
Score: 50
Joined: 6/22/2005
From: Germany
Status: offline
Hi BikeBoy,

you Dim'ed SQLServer, but used SQServer in the function call. Thus blunders would
be caught, if you'd start your scripts with "Option Explicit"

Good luck

ehvbs

(in reply to BikeBoy)
 
 
Post #: 2
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Object Required error Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts