Viewing 15 posts - 91 through 105 (of 309 total)
Hello Mohammed,
these views "preserve information for instances ugraded from a previous version of Microsoft SQL Server" (from BOL).
select * from dbo.sysdbmaintplan_databases
Returns nothing (0 rows) and...
select * from dbo.sysdbmaintplans
Returns one row...
December 21, 2006 at 11:57 am
Hello Joshy,
Don't think there is something equivalent in SQL 2005 .
Carl.
December 21, 2006 at 8:38 am
Its as you said...
By the way I didn't have the time to schedule a public humiliation session, too much work to do fighting against sp_MSforeachdb... '+db_name()+'.sys.schemas WHERE name = '+''''@username+'''')
IF (@@ROWCOUNT = 1)
...
sp_MSforeachdb is really a "black box"......
December 19, 2006 at 8:34 am
In sp_MyWork using this call method:
SET @sql = 'EXEC ?.dbo.sp_MyWork ' + CONVERT(varchar(10), @a)
EXEC sp_MsForEachDB @sql
I cannot query data dictionnary (sys schema views). I...
December 19, 2006 at 6:46 am
It works well.
Thanks a lot Ninja.
Carl
December 18, 2006 at 1:58 pm
Wow... Thank's a lot "Ninja" for this example .
I'll try it soon.
Best regards.
Carl
December 18, 2006 at 12:03 pm
Can I pass a variable to sp_MyWork using EXEC sp_MSforeachdb 'EXEC ?.dbo.sp_MyWork' ?
I have to call sp_MyWork with a username...
How?
Regards.
Carl
December 18, 2006 at 11:47 am
I'll avoid to punish myself
Thanks.
Carl
December 18, 2006 at 11:06 am
Thank's... I will try it with the unofficial stored procedure sp_MSforeachdb.
Best regards.
Carl
December 18, 2006 at 10:42 am
Hello John,
Can I do that with dynamically found databases?
Regards.
Carl
December 18, 2006 at 10:14 am
Hello John,
It could be the case..
But what I was thinking is:
(1) Create a stored procedure in the master database called sp_MyWork
(2) Run the stored procedure against "hardcoded" or "dynamically found"...
December 18, 2006 at 9:35 am
Hello Greg,
It is exactly the problem.
I also had to restart the Agent service.
Thanks a lot.
Carl
December 15, 2006 at 7:04 am
Forget it we found:
http://www.microsoft.com/technet/technetmag/issues/2006/01/ProtectMetaData/?topics=y
That explain this behavior.
Regards.
Carl
December 6, 2006 at 1:06 pm
Hi Holger,
Your were right! Its taht bug.
Thanks a lot.
Carl
October 3, 2006 at 9:33 am
Viewing 15 posts - 91 through 105 (of 309 total)