To Work With
Registration SYSTEM DSN via command prompt "C:\WINDOWS\regedit.exe" /s " \\Dfcgsts22\d$\temp\DFCGSTS_CBMSProd.reg " "C:\WINDOWS\system32\odbcad32.exe" configsysdsn "SQL Server" "DSN=CBMSProd" http://www.itechtalk.com/thread3075.html http://rssexplorer.codeplex.com/ --------- SELECT DB_NAME ( database_id ) AS DatabaseName , name AS LogicalFileName , physical_name AS PhysicalFileName FROM sys . master_files AS mf ------------ use master; select name, suser_sname(owner_sid) from sys.databases; --- USE msdb; SELECT A.Name AS JobName, B.name AS JobOwner FROM dbo.sysjobs A inner join master.sys.syslogins B on A.owner_sid = B.sid where a.enabled = 1; Oracle 9i imported database shows error ORA 600 on dropping user http://www.dbasupport.com/forums/showthread.php?52489-Error-while-drop-user DECLARE @name VARCHAR(50) DECLARE db_cursor CURSOR FOR SELECT name FROM master.dbo.sysdatabases WHERE name NOT IN ...