Passaggio all'ora legale 31 marzo 2024 02:00 03:00 sposta avanti l'orologio di 1 ora (si dorme 1 ora in meno)
Tramite l'utility a linea di comando sqlcmd, compresa in Microsoft SQL Server, è possibile leggere la versione installata senza avere la Management Console.
Prima di tutto avvia sqlcmd specificando dopo il parametro S il nome del server e l'istanza, E indica l'uso della windows authentication
DOS / Batch file
sqlcmd -S.\SHAREPOINT -E
una voltra entrato digita i seguenti comandi
SQL
1> select @@servername
2> select @@version
3> go
il risultato sarà simile al seguente:
Text
--------------------------------------------------------------------------------
WIN-2xxxx\SHAREPOINT

(1 rows affected)

--------------------------------------------------------------------------------
Microsoft SQL Server 2008 (SP1) - 10.0.2531.0 (X64)
        Mar 29 2009 10:11:52
        Copyright (c) 1988-2008 Microsoft Corporation
        Express Edition (64-bit) on Windows NT 6.1 <X64> (Build 7600: ) (VM)

(1 rows affected)
ovvero il nomee dell'istanza seguito dai dati sulla versione.
Esiste anche una forma più compatta:
SQL
sqlcmd -S.\SHAREPOINT -Usa -P..... -Q"SELECT @@version"
in questo caso ho usato al sql authentication passando l'utente sa (switch U) e la password (swith P).
Per usicre da sqlcmd digita exit.

Per vedere l'help di sqlcmd digita:
DOS / Batch file
sqlcmd -?
che da come output
DOS / Batch file
Microsoft (R) SQL Server Command Line Tool
Version 10.0.1600.22 NT x64
Copyright (c) Microsoft Corporation.  All rights reserved.

usage: Sqlcmd            [-U login id]          [-P password]
  [-S server]            [-H hostname]          [-E trusted connection]
  [-d use database name] [-l login timeout]     [-t query timeout]
  [-h headers]           [-s colseparator]      [-w screen width]
  [-a packetsize]        [-e echo input]        [-I Enable Quoted Identifiers]
  [-c cmdend]            [-L[c] list servers[clean output]]
  [-q "cmdline query"]   [-Q "cmdline query" and exit]
  [-m errorlevel]        [-V severitylevel]     [-W remove trailing spaces]
  [-u unicode output]    [-r[0|1] msgs to stderr]
  [-i inputfile]         [-o outputfile]        [-z new password]
  [-f <codepage> | i:<codepage>[,o:<codepage>]] [-Z new password and exit]
  [-k[1|2] remove[replace] control characters]
  [-y variable length type display width]
  [-Y fixed length type display width]
  [-p[1] print statistics[colon format]]
  [-R use client regional setting]
  [-b On error batch abort]
  [-v var = "value"...]  [-A dedicated admin connection]
  [-X[1] disable commands, startup script, enviroment variables [and exit]]
  [-x disable variable substitution]
  [-? show syntax summary]
Potrebbe interessarti anche: