Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
String + datetime
Message
From
15/01/2007 11:10:05
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
15/01/2007 11:06:19
General information
Forum:
Microsoft SQL Server
Category:
Other
Environment versions
SQL Server:
SQL Server 2000
Miscellaneous
Thread ID:
01185567
Message ID:
01185625
Views:
13
>Hi,
>If i have expression like this in my where clause, would SQL Server utilize the index?
>
>myCharacterField + Convert(char(10), myDataTimeField, 112)
>
>If not, how would the expression look like in order to make use the index?
>
>Thank you

I don't know if it would do. Why don't you simply do:

myCharacterField = ... and Convert(char(10), myDataTimeField, 112) = ...

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform