cybercop23
IS-IT--Management
Hi everyone.
I'm loading 100s of thousands of records weekly that have a filed as DATETIME (12/26/2005 11:26:00). I would like to separate this one filed into two. A date field and a time field. I can do that using the cast function. My problem is that I also need to create an index using this date field and I think it is not very efficient for such high number of records to make this date field be a nvchar or any other type of charachter field. The data will be retrieved from an ASP page, where the user will enter the date they are looking for or choose it from an ActiveX calendar control. Any ideas on how to split this field and make it the most efficient for creating an index.
Thanks.
Alex
I'm loading 100s of thousands of records weekly that have a filed as DATETIME (12/26/2005 11:26:00). I would like to separate this one filed into two. A date field and a time field. I can do that using the cast function. My problem is that I also need to create an index using this date field and I think it is not very efficient for such high number of records to make this date field be a nvchar or any other type of charachter field. The data will be retrieved from an ASP page, where the user will enter the date they are looking for or choose it from an ActiveX calendar control. Any ideas on how to split this field and make it the most efficient for creating an index.
Thanks.
Alex