Viewing 15 posts - 121 through 135 (of 366 total)
select 'USE ['+name +']' + CHAR(13)+'GO'+ CHAR(13)+
'CREATE USER [abc\scott] FOR LOGIN [abc\scott]'+ CHAR(13)+'GO'+ CHAR(13)+
'USE ['+name +']' + CHAR(13)+'GO'+ CHAR(13)+
'EXEC sp_addrolemember N''db_owner'',N''abc\scott''' + CHAR(13)+'GO'+ CHAR(13)
FROM sys.sysdatabases
WHERE dbid>4
I'm able to generate the...
August 22, 2011 at 4:39 pm
select 'USE ['+name +']' + CHAR(13)+'GO'+ CHAR(13)+
'CREATE USER [abc\scott] FROM LOGIN [abc\scott]'+ CHAR(13)+'GO'+ CHAR(13)+
'USE ['+name +']' + CHAR(13)+'GO'+ CHAR(13)+
'EXEC sp_addrolemember N''db_owner'',N''abc\scott''' + CHAR(13)+'GO'+ CHAR(13)
FROM sys.databases
WHERE database_id>4
In above script why we...
August 22, 2011 at 3:08 pm
I just got the answer from the below link:-)
thanks
August 21, 2011 at 11:26 pm
Thanks,
which one is recommended for Production instance?
because I believe sp_MSforeachDB is an undocumented procedure.
August 21, 2011 at 11:05 pm
Thank you,
I went through the link http://www.sqlskills.com/blogs/paul/category/CHECKDB-From-Every-Angle.aspx
and it says DBCC CHECKDB won't cause blocking.
But, In my case blocking happening only when DBCC CHECKDB runs.
So how can we rule out that...
August 21, 2011 at 8:52 pm
It worked.
So we need to have separate folder for each database:-D:-D
August 18, 2011 at 10:32 pm
I'm doing the Filestream RBS configuration for the second database similarly as I did for first database
Use WSS_Content_DB2
go
if not exists (select groupname from sysfilegroups where groupname=N'RBSFilestreamProvider')
Alter database WSS_Content_DB1
add filegroup RBSFilestreamProvider...
August 18, 2011 at 6:03 pm
if there are 500 .trn files to apply to the database, then we have only have the option to restore manually one by one?
August 17, 2011 at 6:40 pm
What OS Version?
Typically you can see the shares from Computer Management/Shares. (Right Click my computer, select manage)
OS is Windows Server 2008 R2.
I went to My computer->Manage
But did not find...
August 16, 2011 at 3:44 pm
Thanks for your immediate response
In SQLAgent, all jobs were disabled
Could you please tell me what is the exact sql statements that are involved in dead lock (in both dead locks).
August 6, 2011 at 4:39 pm
Multiple processes involved here
The first one is doing an index rebuild. No idea why an index rebuild would be in the middle of an important process, but it's running. It...
August 6, 2011 at 3:54 pm
how big is the page file? If its 10GB and 25% used then i'd say you need more RAM. You want as much going through RAM and as little written...
July 28, 2011 at 5:48 pm
Could you please advice me?
Thanks
July 26, 2011 at 6:40 pm
Could you please shed some light on this?
Thanks
July 25, 2011 at 6:25 pm
Viewing 15 posts - 121 through 135 (of 366 total)