Results 1 to 4 of 4

Thread: confused about definition of scripts.

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jul 2005
    Posts
    1,168

    confused about definition of scripts.

    What's the difference between writing scripts and creating an actual program? or are they the same thing? Are scripts basically short lines of codes?

  2. #2
    MS SQL Powerposter szlamany's Avatar
    Join Date
    Mar 2004
    Location
    Connecticut
    Posts
    18,263

    Re: confused about definition of scripts.

    I've always considered scripts to be more of a 4GL, not 3GL thing. With 3GL being our programming languages like VB and C...

    Scripts in my opinion are written in things like T-SQL (if a stored procedure) or DOS-like (if a .BAT or .CMD file). Or DCL if doing VAX/VMS mini-computer scripting. Or whatever JCL was used on IBM mainframes...

    But that's just my opinion

    *** Read the sticky in the DB forum about how to get your question answered quickly!! ***

    Please remember to rate posts! Rate any post you find helpful - even in old threads! Use the link to the left - "Rate this Post".

    Some Informative Links:
    [ SQL Rules to Live By ] [ Reserved SQL keywords ] [ When to use INDEX HINTS! ] [ Passing Multi-item Parameters to STORED PROCEDURES ]
    [ Solution to non-domain Windows Authentication ] [ Crazy things we do to shrink log files ] [ SQL 2005 Features ] [ Loading Pictures from DB ]

    MS MVP 2006, 2007, 2008

  3. #3
    "Digital Revolution"
    Join Date
    Mar 2005
    Posts
    4,471

    Re: confused about definition of scripts.

    One main difference.

    Programs are compiled/executed.
    Scripts are interpreted.

    For example, PHP is a scripting language. PHP is interpreted by PHP.EXE (a program).

    You do not compile PHP files.

  4. #4
    PowerPoster
    Join Date
    May 2006
    Posts
    2,988

    Re: confused about definition of scripts.

    Scripts are not compiled or installed such as with EXE programs. The particular scripting engine (which has to already be installed) interprets the scripted code and utilizes installed features to perform a particular task. Typically scripts do not include a user GUI. Scripts are "on the fly" type applications that can be useful for temporary tasks. They can also be much quicker and easier to create to perform a certain task, as opposed to compiling an EXE.

    Internet applications also utilize scripting languages, since EXE programs must first be downloaded, while scripts can run on a web server and perform tasks specific to that server and display the results as HTML, when EXE programs would generally be blocked, especially when using a 3rd party hosting company.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width