PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → MSSQL
MSSQL
Iniciado por Kel, 20,sep. 2019 00:59 - 1 respuesta
Publicado el 20,septiembre 2019 - 00:59
Hi
Is there any functions that will return a list of active mssql servers and if there are is there a function to return a list of databases on the selected server

Thanks
Miembro registrado
2 mensajes
Publicado el 23,septiembre 2019 - 16:00
SELECT name FROM master.sys.databases

will get you a list of databases on the server you attach to, if you have privileges for it..
as far as servers go, there is some powershell commands but I don't know about using them.

Andy <<Cowboy>> Stapleton
Wxperts LLC