Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Administration (2000)
 Current database name

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2000-12-14 : 16:09:23
Andy writes "How do I select current database name?

I need to provide a fully qualified path name for BCP among other things.

I can get server name @@SERVERNAME, and I can get a list of databases names via multiple methods. But I need the current database name.

Any help would be appreciated.

Using SQL 2000 and 7.0 on Windows NT 4.0 and Windows 2000"
   

- Advertisement -