Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: Erland Sommarskog Newsgroups: comp.databases.ms-sqlserver,microsoft.public.sqlserver.programming Subject: Re: Keyboard Input in Scripts Followup-To: comp.databases.ms-sqlserver Date: Fri, 25 May 2012 23:24:39 +0200 Organization: Erland Sommarskog Lines: 15 Message-ID: References: <8nrvr79atdr001tg6g60sds609mktkhnm6@4ax.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit Injection-Info: mx04.eternal-september.org; posting-host="nBFDv6s1VJQDuF1w6hpX2A"; logging-data="27872"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18iZmYHsNRn7Xef07pr6KuE" User-Agent: Xnews/2006.08.24 Mime-proxy/2.1.c.0 (Win32) Cancel-Lock: sha1:JNXh4Ny54WBYlNN3IuT4dKAslAA= Xref: csiph.com comp.databases.ms-sqlserver:1078 Gene Wirchenko (genew@ocis.net) writes: > Is there a way to get keyboard input while executing a script? As long as you write the script in a language which runs in an environment that has access to your keyboard, it should be no problem. If you have something that runs in a service with no desktop or keyboard, the situation is considerably more dire, though. -- Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se Links for SQL Server Books Online: SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx