﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / SQL Server 2005 / SQL Server Express  / SQLCMD - Missing expression after unary operator... / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Wed, 19 Jun 2013 19:00:39 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: SQLCMD - Missing expression after unary operator...</title><link>http://www.sqlservercentral.com/Forums/Topic1256219-324-1.aspx</link><description>Try this:SQLCMD -S CONTOSOWXP01\SQLEXPRESS -Q "CREATE LOGIN [NewUser] WITH PASSWORD = 'password', DEFAULT_DATABASE=[Mydatabase], CHECK_EXPIRATION=OFF, CHECK_POLICY=OFF"</description><pubDate>Mon, 05 Mar 2012 02:22:13 GMT</pubDate><dc:creator>Suresh B.</dc:creator></item><item><title>SQLCMD - Missing expression after unary operator...</title><link>http://www.sqlservercentral.com/Forums/Topic1256219-324-1.aspx</link><description>Noob to using SQLCMD and getting this when running script from Powershell. Any help would be greatly appreciated!!!!PS C:\&amp;gt; SQLCMD -S CONTOSOWXP01\SQLEXPRESS CREATE LOGIN [NewUser] WITH PASSWORD = 'password', DEFAULT_DATABASE=[Mydatabase], CHECK_EXPIRATION=OFF, CHECK_POLICY=OFFSqlcmd: 'CREATE LOGIN [NewUser] WITH PASSWORD = password DEFAULT_DATABASE=[Mydatabase] CHECK_EXPIRATION=OFF CHECK_POLIC=OFF': Unexpected argument. Enter '-?' for help.PS C:\&amp;gt; -?Missing expression after unary operator '-'.At line:1 char:2+ - &amp;lt;&amp;lt;&amp;lt;&amp;lt; ?PS C:\&amp;gt;</description><pubDate>Wed, 22 Feb 2012 12:08:24 GMT</pubDate><dc:creator>sclavoie</dc:creator></item></channel></rss>