{"id":5123,"date":"2013-02-27T07:00:00","date_gmt":"2013-02-27T07:00:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/oldnewthing\/2013\/02\/27\/when-the-option-becomes-so-second-nature-you-forget-that-its-an-option\/"},"modified":"2013-02-27T07:00:00","modified_gmt":"2013-02-27T07:00:00","slug":"when-the-option-becomes-so-second-nature-you-forget-that-its-an-option","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/oldnewthing\/20130227-00\/?p=5123","title":{"rendered":"When the option becomes so second-nature you forget that it&#8217;s an option"},"content":{"rendered":"<p><P>\nA user of the imaginary\n<A HREF=\"http:\/\/blogs.msdn.com\/b\/oldnewthing\/archive\/2009\/04\/17\/9551818.aspx\">\nProgram&nbsp;Q<\/A>\nprogram wanted to write an automated test that created a table,\nthen ran various sub-test which communicated among each other\nby updating that table.\n<\/P>\n<BLOCKQUOTE CLASS=\"q\">\n<P>\nWhen my test tries to create a table,\nthe program asks the following question:\n<\/P>\n<PRE>\nq install server -r testdb<\/p>\n<p>Setting up this machine to be a registered table server&#8230;<\/p>\n<p>Registered table servers must adhere to Microsoft information \nsecurity policies. See http:\/\/programq\/policy for details.\nIf you have questions, contact mailto:qpolicy.<\/p>\n<p>Do you agree to adhere to Microsoft policies regarding\nregistered table servers (y\/n\/q)?\n<\/PRE>\n<P>\nIs there a way to suppress the question?\nI can&#8217;t pre-create a single server that all the tests\nconnect to,\nbecause multiple tests running simultaneously would\nend up colliding with each other.\nI would prefer that each test run on its own isolated\ntable server,\nbut when I try to install a table server on the machine\nbeing tested,\nI get the above prompt.\n<\/P>\n<\/BLOCKQUOTE>\n<BLOCKQUOTE CLASS=\"m\">\nWhy not just create an unregistered table server instead?\nJust leave off the <CODE>-r<\/CODE> flag.\nGive your problem description, there appears to be\nno need for the table server to be registered.\n<\/BLOCKQUOTE>\n<BLOCKQUOTE CLASS=\"q\">\nAh, didn&#8217;t know about the ability to create an unregistered\nserver.\nWorks great!\n<\/BLOCKQUOTE>\n<P>\nThe user was apparently so accustomed to creating\nregistered table servers that he didn&#8217;t realize that there\nwas any other kind.\nMy guess is that he had no idea what the\n<CODE>-r<\/CODE> flag did;\nhe just cargo-culted it from somewhere.\n<\/P>\n<P>\n<B>Remember<\/B>:\nThe target audience for Program&nbsp;Q is not\nnon-technical end-users.\nThe target audience is <I>other programmers<\/I>,\nand this person was clearly a programmer since he\nwas writing an automated test!\n<\/P><\/p>\n","protected":false},"excerpt":{"rendered":"<p>A user of the imaginary Program&nbsp;Q program wanted to write an automated test that created a table, then ran various sub-test which communicated among each other by updating that table. When my test tries to create a table, the program asks the following question: q install server -r testdb Setting up this machine to be [&hellip;]<\/p>\n","protected":false},"author":1069,"featured_media":111744,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[26],"class_list":["post-5123","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-oldnewthing","tag-other"],"acf":[],"blog_post_summary":"<p>A user of the imaginary Program&nbsp;Q program wanted to write an automated test that created a table, then ran various sub-test which communicated among each other by updating that table. When my test tries to create a table, the program asks the following question: q install server -r testdb Setting up this machine to be [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/5123","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/users\/1069"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/comments?post=5123"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/5123\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/media\/111744"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/media?parent=5123"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/categories?post=5123"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/tags?post=5123"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}