Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Upsizing an Index

Status
Not open for further replies.

Mike555

Technical User
Feb 21, 2003
1,200
US
I'm in the process of converting several Visual FoxPro 6.0 databases to SQL Server. Table indexes in VFP can be expressions. For example - I have a VFP table with an index expression as follows...
Code:
Location+DTOS(StartDate)
But you can't create indexed expressions such as this in SQL Server can you? How do I go about creating this index in SQL Server?

Thanks for your help.
 
You can create columns that hold formulas of data in other columns. Is that what you are trying to do?

As an example
C1, C2, E1
A, 12, A12
D, 7, D7
...

Denny
MCSA (2003) / MCDBA (SQL 2000)

--Anything is possible. All it takes is a little research. (Me)
[noevil]
Donate to Katrina relief
 
It seems like that is the only possibility. I know that calculated rows reduce efficiency in SQL Server, and was hoping there was another way around this.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top