• subscribe
September 25, 2002 12:00 AM

Avoiding Pop-Up Window Error Messages

SQL Server Pro
InstantDoc ID #26240

In Jeffrey Yao's Reader to Reader tip "Refresh Database Objects," June 2002, InstantDoc ID 24600, the author describes the kinds of problems that can occur when objects in your database change over time. Yao suggests that a good way to solve these problems is to recompile the objects in the database that are associated with the problems.

Yao then presents the VBScript code that he uses to recompile objects. He includes three examples of syntax for refreshing objects, then warns readers that if you omit the cscript command in the syntax, error messages will appear in a pop-up window that you must close before the script can continue.

However, if you open a command window and run the command

cscript //H:CScript

cscript becomes the default script host. Then you can omit the cscript command from the syntax and avoid the pop-up window.



ARTICLE TOOLS

Comments
    There are no comments to display. Be the first one!
You must log on before posting a comment.

Are you a new visitor? Register Here
  • SP1?
    I know there is a SP1 for SQL 2008 R2 available....and there is a "feature pack" as well... ...
  • SQL database mirroring
    I have SQL Server 2008 R2 Enterprise 64bit on Windows 2008 R2 Enterprise 64bit.  Each SQL Server has...
  • Dell Compellent Disk Drive
    Does anybody has experience with Dell Compellent Disk Drive? Basically, this system manages all disk...
  • Sql server performance tuning
    I need to find a tool that help me to optimize sql server,queries,improve the performance and solve ...