Viewing 15 posts - 121 through 135 (of 219 total)
-> sp_msforeachdb "DBCC updateusage('?')"
-> rebuild all the indexes
-> update stats of all the tables :EXEC sp_MSforeachtable 'UPDATE STATISTICS ? WITH FULLSCAN' <-- you can specify the sampling if you need...
June 23, 2009 at 4:13 am
Its running perfectly fine in 2005 .
Run it in single line and not in multiple lines .Secondly , while copying it might change the single quote to something else (a...
June 23, 2009 at 2:31 am
Oh , you took that liberty as well ...sorry I am out of answers ....
June 23, 2009 at 2:04 am
try this my friend :
WITH Numbers(Number) AS (
SELECT 1
UNION ALL
SELECT Number + 1
FROM Numbers
WHERE Number <= 99
)
SELECT * FROM...
June 23, 2009 at 2:02 am
Modify that colume :
CREATE TABLE [dbo].[ChangeLog](
[LogId] [int] IDENTITY(1,1) NOT NULL PRIMARY KEY,
[DatabaseName] [varchar](256) NOT NULL,
[EventType] [varchar](50) NOT NULL,
[ObjectName] [varchar](256) NOT NULL,
[ObjectType] [varchar](25) NOT NULL,
[SqlCommand]...
June 23, 2009 at 1:29 am
select name,modify_date from sys.objects where type ='P'
June 23, 2009 at 1:10 am
Yes you need to have :
x64 version of SQLExpress 2008 and x64 version of OS .
June 23, 2009 at 12:20 am
To rebuild and reorganize all the indexes in all the databases :
1) create the SP attached in all the databases
2) execute this command :
sp_msforeachdb "exec ?.dbo.Rebuild_reorg_index"
June 22, 2009 at 11:20 pm
generally as a rule of thumb we rebuild indexes having fragmentation more than 30% and and reorganize if the fragmentation is below 30% .
to find the fragmentation > 30% for...
June 22, 2009 at 10:51 pm
I have also copied 2 files with this reply if you want to follow .You need to add the witness steps if you follow those scripts which is simple.
STEPS...
June 22, 2009 at 9:28 pm
I have also copied 2 files with this reply if you want to follow (its without a certificate and works fine .You need to add the witness steps if you...
June 22, 2009 at 9:25 pm
Filestream is verymuch supported in SQL Express.But you need to have it on a 64 bit server .Even if you have 32 bit version of SQL Sevrer on a 64...
June 22, 2009 at 9:09 pm
also try using openquery .
basically , you conection string you are using seems incorrect .
I used the following and it worked
sp_configure 'Ad Hoc Distributed Queries',1
reconfigure with override
EXEC sp_addlinkedserver ...
June 22, 2009 at 2:26 am
-> Make sure the named pipes and TCP/IP protocols are open (SQL Server Configuration Manager).
->Make sure that the SQL Browser service is runing .
-> Make sure the server allows the...
June 22, 2009 at 1:51 am
Viewing 15 posts - 121 through 135 (of 219 total)