Star Trek: The Next Generation (1993): S06E12 – Ship in a Bottle


“Ship in a Bottle” is the 138th episode of the American science fiction television series Star Trek: The Next Generation, the 12th episode of the sixth season.

Set in the 24th century, the series follows the adventures of the Starfleet crew of the Federation starship Enterprise-D. In this episode, which continued a plot line from the second-season episode “Elementary, Dear Data”, the fictional holodeck character Professor James Moriarty seizes control of the Enterprise in his quest to be freed to live in reality, outside the confines of a holographic environment.


Data and La Forge are enjoying a Sherlock Holmes holodeck program when the two notice that a character programmed to be left-handed was actually right-handed. They call Lt. Barclay to repair the holodeck, but as he checks the status of the Sherlock Holmes programmes, he encounters an area of protected memory. He activates it to find the artificial sentient Professor James Moriarty (Daniel Davis) character projected into the Holodeck, who appears to have memory since his creation (“Elementary, Dear Data”), including during the period while he was inactive (a feat Picard claims to be impossible). Moriarty again wishes to escape the artificial world of the holodeck and was assured by the crew of the Enterprise that they would endeavour to find a way to do so, and is irritated at the lack of results on the part of the crew and their seeming lack of effort. Picard, along with Data and Barclay, attempts to assure Moriarty they are still working towards this goal but their technology does not yet permit it. Moriarty is dismissive.

Moriarty confuses the crew by seemingly willing himself to existence by walking out of the holodeck door. He explains this to the stunned Picard and Data by saying, “I think, therefore I am.” Moriarty creates a companion for himself, the Countess Regina Bartholomew (Stephanie Beacham), by commanding the computer of the Enterprise to place another sentient mind within a female character of the Sherlock Holmes novels. Moriarty then demands that a solution to get Regina off the holodeck be devised. He takes control of the Enterprise through the computer, insisting that a way be found for her to experience life beyond the confines of the holodeck.

While assisting La Forge, Data observes that La Forge’s handedness is incorrect, just as they had experienced earlier. Data determines that he, Picard, and Barclay are still inside the holodeck with Moriarty and everyone else and everything that appears to be the Enterprise is part of a program Moriarty created. Picard then realises that he has unwittingly provided Moriarty with the command codes for the Enterprise. With this information, Moriarty takes control of the real Enterprise from within the simulation.

Captain Picard finds a way to program the holodeck’s simulation of a holodeck to convince Moriarty that he and Regina can be beamed into the real world, though in fact they are only “beamed” within the holodeck’s simulation. Moriarty, satisfied with the ruse, releases control of the ship back to Picard. He and the Countess use a shuttlecraft given to them by Commander Riker to leave the Enterprise and explore the galaxy. Picard ends the simulation and the trio return to the real Enterprise. Barclay extracts the memory cube from the holodeck and sets it in an extended memory device in order to provide Moriarty and the Countess a lifetime of exploration and adventure.

Picard comments that the crew’s reality may actually be a fabrication generated by “a little device sitting on someone’s table.” This unnerves Barclay enough for him to test the nature of his own reality one more time: he gives an audible command to “end programme” to test whether he is still in a simulation. There is no response.

Star Trek TV Series

You can find a full index of Star Trek TV series here.

Star Trek TV Series, Films, and Documentaries

You can find a full index of all Star Trek TV series, films, documentaries here.

Production & Filming Details

  • Director(s): Alexander Singer.
  • Writer(s): Rene Echevarria.
  • Release Date: 24 January 1993.
  • Running Time: 45 minutes.
  • Country: US.
  • Language: English.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.