Created
July 9, 2015 14:37
-
-
Save TheRockStarDBA/c2928c11fdd23184b511 to your computer and use it in GitHub Desktop.
Map a databaseName with a physical device name SybaseASE
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Map a databaseName with a physical device name SybaseASE | |
select sda.name | |
,sde.name | |
,sde.phyname | |
from master..sysdatabases sda | |
,master..sysdevices sde | |
,master..sysusages su | |
where su.dbid = sda.dbid | |
and su.vdevno = sde.vdevno | |
and sda.name like '%temp%' --- CHANGE HERE with your database Name! | |
and sde.name not like 'tapedump%' | |
go |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment