April 16, 2007 at 2:31 pm
Is there any way to create an Index on a DBF file with T-SQL or DTS? I have an application outside of SQL that can create indexes, but it would be much easier if I could do this along with the CREATE TABLE task.
Thanks!
April 17, 2007 at 4:56 am
Hi,
Are you using a linked server to connect to the dbf file and are looking to create and index on one or all of the tables? Or have I completely missed the question?
April 18, 2007 at 1:46 pm
In my DTS package, I have a connection to a dBase IV file that's out on the network. With that connection, I initiate the Create Table task.
Thanks!
April 20, 2007 at 2:46 am
Have a look at CREATE INDEX in bol.
You should be able to do something like:
CREATE INDEX ix_myIndex ON myTable( myCol1, myCol2, myCol3....)
after your CREATE TABLE statement.
April 20, 2007 at 8:21 am
Yes and I have tried it in many different ways and formats. Maybe it's just not possible. It seems like SQL 2005 may be able to do this. I have a workaround, it's just not as reliable as it would have been in SQL.
Thanks for the follow-up!
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply