我用ADO访问SQL Server数据库,
我想知道,delphi or API有没有办法得到SQL Server数据库服务器中的数据库名称,
记住,我只要得到它里面的“数据库名称”即可,像SQLserver客户端那样,输入了:
服务器名,和user,password,连上后,有一个combobox上有它所以的数据库名称。
有没有办法让delphi做到这一点?
thank you very much.
...全文
17310打赏收藏
ADO ---->????数据库名称?????------>SQL Server
我用ADO访问SQL Server数据库, 我想知道,delphi or API有没有办法得到SQL Server数据库服务器中的数据库名称, 记住,我只要得到它里面的“数据库名称”即可,像SQLserver客户端那样,输入了: 服务器名,和user,password,连上后,有一个combobox上有它所以的数据库名称。 有没有办法让delphi做到这一点? thank you very much.
sysdatabases (T-SQL)
Contains one row for each database on Microsoft® SQL Server™. When SQL Server is initially installed, sysdatabases contains entries for the master, model, msdb, mssqlweb, and tempdb databases. This table is stored only in the master database.