Drop Table

Support Forum for database administrators and web based access to important newsgroups related to databases
Register on Database Support Forum Edit your profileCalendarFind other Database Support forum membersFrequently Asked QuestionsSearch this forum -> 
For Database admins: Free Database-related Magazines Now Free shipping to Texas


Post New Thread










Thread
Author

Is it possible to set MAXDOP on index create
In SQL2000, I have a CREATE INDEX statement that I would like to run with
(MAXDOP 1).  When I try putting OPTION (MAXDOP 1) at the end of the sreate
statement - it throws an error.

Is there any other way to do this?

Thanks in advance.



Report this thread to moderator Post Follow-up to this message
Old Post
TJT
04-07-06 04:23 PM


RE: Is it possible to set MAXDOP on index create
Here is an example from
http://msdn2.microsoft.com/en-us/library/ms189329(SQL.90).aspx

USE AdventureWorks;
GO
IF EXISTS (SELECT name FROM sys.indexes
WHERE name =  N'IX_ProductVendor_V
endorID')
DROP INDEX  IX_ProductVendor_Ven
dorID ON Purchasing.ProductVendor;
GO
CREATE INDEX  IX_ProductVendor_Ven
dorID
ON Purchasing.ProductVendor (VendorID)
WITH (MAXDOP=8);
GO


"TJT" wrote:

> In SQL2000, I have a CREATE INDEX statement that I would like to run with
> (MAXDOP 1).  When I try putting OPTION (MAXDOP 1) at the end of the sreate
> statement - it throws an error.
>
> Is there any other way to do this?
>
> Thanks in advance.
>
>
>

Report this thread to moderator Post Follow-up to this message
Old Post
Edgardo Valdez, MCSD, MCDBA
04-07-06 04:23 PM


Re: Is it possible to set MAXDOP on index create
Yes - but I think that is for SQL2005.  I am working with SQL2000


<Edgardo Valdez>; <MCSD>; "MCDBA"
< EdgardoValdezMCSDMCD
BA@discussions.microsoft.com> wrote in message
news:E8E7B53A-6E66-44D5-8251- 8D3FA33951CC@microso
ft.com...
> Here is an example from
> http://msdn2.microsoft.com/en-us/library/ms189329(SQL.90).aspx
>
> USE AdventureWorks;
> GO
> IF EXISTS (SELECT name FROM sys.indexes
>             WHERE name =  N'IX_ProductVendor_V
endorID')
>     DROP INDEX  IX_ProductVendor_Ven
dorID ON Purchasing.ProductVendor;
> GO
> CREATE INDEX  IX_ProductVendor_Ven
dorID
> ON Purchasing.ProductVendor (VendorID)
> WITH (MAXDOP=8);
> GO
>
>
> "TJT" wrote:
> 
with 
 sreate[color=darkred
] 



Report this thread to moderator Post Follow-up to this message
Old Post
TJT
04-07-06 04:23 PM


Re: Is it possible to set MAXDOP on index create
From Books Online SQL Server 2000

"Microsoft® SQL Server™ 2000 uses the same algorithms to determine the
degree of parallelism (the total number of separate threads to run) for
create index operations as it does for other Transact-SQL statements. The
only difference is that the CREATE INDEX, CREATE TABLE, or ALTER TABLE
statements that create indexes do not support the MAXDOP query hint. The
maximum degree of parallelism for an index creation is subject to the max
degree of parallelism server configuration option, but you cannot set a
different MAXDOP value for individual index creation operations."


"TJT" wrote:

> Yes - but I think that is for SQL2005.  I am working with SQL2000
>
>
> <Edgardo Valdez>; <MCSD>; "MCDBA"
> < EdgardoValdezMCSDMCD
BA@discussions.microsoft.com> wrote in message
> news:E8E7B53A-6E66-44D5-8251- 8D3FA33951CC@microso
ft.com... 
> with 
> sreate 
>
>
>

Report this thread to moderator Post Follow-up to this message
Old Post
Edgardo Valdez, MCSD, MCDBA
04-07-06 06:23 PM


Re: Is it possible to set MAXDOP on index create
That is not possible with SQL2000.  But you can change the MAXDOP at the
server level with sp_configure before the Create Index and change it back
again afterwards.  But during that time it will be a server wide setting.

--
Andrew J. Kelly  SQL MVP


"TJT" <TJT@nospam.com> wrote in message
news:OEdkailWGHA.3760@TK2MSFTNGP02.phx.gbl...
> In SQL2000, I have a CREATE INDEX statement that I would like to run with
> (MAXDOP 1).  When I try putting OPTION (MAXDOP 1) at the end of the sreate
> statement - it throws an error.
>
> Is there any other way to do this?
>
> Thanks in advance.
>
>



Report this thread to moderator Post Follow-up to this message
Old Post
Andrew J. Kelly
04-08-06 01:23 AM


Sponsored Links





Last Thread Next Thread
Post New Thread

MS SQL Server archive

Show a Printable Version Email This Page to Someone! Receive updates to this thread
Microsoft SQL Server
Access database support
PostgreSQL Replication
SQL Server ODBC
FoxPro Support
PostgreSQL pgAdmin
SQL Server Clustering
MySQL ODBC
Web Applications with dBASE
SQL Server CE
MySQL++
Sybase Database Support
MS SQL Full Text Search
PostgreSQL Administration
SQL Anywhere support
DB2 UDB Database
Paradox Database Support
Filemaker Database
Berkley DB
SQL 2000/2000i database
ASE Database
Forum Jump:
All times are GMT. The time now is 08:45 PM.

 
Mobile devices forum | Database support forum archive




Copyrights DropTable.com Database Support Forum 2004 - 2006