Article ID: 191353
Article Last Modified on 6/14/2005
From the SMS\SITE.SRV\platform directory, you can run the SMS SQL
View Generator from the command line using the following syntax:
smsview <options>
Options are any of the following:
/s:<servername>
Specifies the name of the computer running the instance of SQL
Server containing the database.
/l:<loginname>
Specifies a login ID on SQL Server that has database owner (dbo)
permissions on the database.
/p:<password>
Specifies the password for the login ID you specified with the
/l:<loginname> option.
/d:<database>
Specifies the name of the site database.
For example:
smsview /s:smsdbsrv /l:smsdbo /p:alpha /d:smsThe command line allows you to use the SMS SQL View Generator in a batch file or other scheduled process. No messages are displayed on the console. When the SMS SQL View Generator is run as a command, success or failure of the command is logged to the application log of the Windows NT event log. If the SMS SQL View Generator fails, the event provides a brief explanation of the cause (for example, if one of the command line arguments is invalid). All SMS SQL View Generator events have a source of SMS View.
No messages are displayed on the console.However, when the SMSVIEW executable is run from a command line, a dialog box is displayed stating that the Views were successfully created.
When the SMS SQL View Generator is run as a command, success or failure of the command is logged to the application log of the Windows NT event log. If the SMS SQL View Generator fails, the event provides a brief explanation of the cause (for example, if one of the command line arguments is invalid). All SMS SQL View Generator events have a source of SMS View.This is also incorrect. It does not log any information in the Windows NT event log.
192439 SMS: Command Line Smsview.exe Leaves Open Window in Background
Additional query words: prodsms
Keywords: kbbug kbsmsutil KB191353