In Sql Server 2005, I have a stored procedure, in which i have wrote some commands to create a table and add some records in it.
Create Procedure Procedure1 AS
Begin
create table TmpTable(CD Decimal(10,0), Descr Varchar(50));
Insert Into TmpTable Values(0,'Not Applicable');
Insert Into TmpTable Values(1,'ALL');
Insert Into TmpTable Values(2,'Selected');
Insert Into TmpTable Values(3,'Only New');
END
i want to create this table in all available databases, i don't know, how many databases are available when i call this store procedure.