dbTalk Databases Forums  

how to add multiple indexes to an access mdb using dts?

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss how to add multiple indexes to an access mdb using dts? in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Andrew Brill
 
Posts: n/a

Default how to add multiple indexes to an access mdb using dts? - 09-18-2003 , 08:20 AM






Hi,
I'm rebuilding a load of packages we lost (our backup didn't include the
packages!) and I'm trying to work out how we used to create the indexes on
access databases using the execute sql task within a dts package.

The following works on a connection set to an sql table but not on an access
connection (where it seems to only let you have 1 statement..

create index capvehicleid on cap_cprval(capvehicleid);
create index registrationletter on cap_cprval(registrationletter);
create index [year] on cap_cprval([year]);

So how do i send multiple statements to access or create multiple indexes in
one statement?
I know I could use more tasks but I'm sure our old packages used to do this
within one task.

Thanks,
Andrew



Reply With Quote
  #2  
Old   
Andrew Brill
 
Posts: n/a

Default Re: how to add multiple indexes to an access mdb using dts? - 09-18-2003 , 08:59 AM






Got it!
'go' is the word I'm looking for.



create index capvehicleid on cap_cprval(capvehicleid);
go
create index registrationletter on cap_cprval(registrationletter);
go
create index [year] on cap_cprval([year]);
go



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.