Viewing 15 posts - 121 through 135 (of 257 total)
Have databases where I don't know which tables are being used and what not. So what I want to do is which ever table I think is not being used,...
December 16, 2010 at 6:33 am
Adding brackets around "[?]" was a common sense and I am missing it. Thank you very much.
December 15, 2010 at 8:48 am
It is working and it is now creating the files. I have not made any changes since yesterday and this morning it is working and i have no clue why....
December 15, 2010 at 5:32 am
The trace is running but it does not create the file.
December 14, 2010 at 1:14 pm
I have resolved my own question and here it is:
sp_msforeachdb 'select ''?'' AS DBName,Routine_name, routine_definition from ?.information_schema.routines
order by routine_name'
December 13, 2010 at 10:19 am
This is what I am running on SQL 2005 which displays each database name, stored proc name and stored proc definition for each database on the server: How do I...
December 13, 2010 at 9:20 am
That worked, Thanks.
December 9, 2010 at 1:56 pm
but that does not give me database name.
December 9, 2010 at 12:35 pm
Made a mistake. The last one did not work. What works is the following, but I also need database name with it. ANY IDEAS???
EXECUTE sp_msforeachdb 'select s.*, p.*
from ?.sys.sql_modules s
inner...
December 9, 2010 at 12:06 pm
I found it myself and it is:
EXECUTE sp_msforeachdb 'select specific_catalog, specific_name, routine_definition from information_schema.routines'
December 9, 2010 at 11:56 am
Can you please show me the command that i need to pass to sp_MSForEachDB?
December 3, 2010 at 1:20 pm
Viewing 15 posts - 121 through 135 (of 257 total)