Re: Split Field in SQL in to multiple columns
- From: Erland Sommarskog <esquel@xxxxxxxxxxxxx>
- Date: Mon, 19 Oct 2009 08:58:42 +0000 (UTC)
RickyP (ricky@xxxxxxx) writes:
unfortunately, I am not able to create temp tables or UDF's ,
Permission to create temp tables is by default granted to public, and I
don't think it's possible to revoke it. Not that it matters here.
so it looks like my options are quite limited. Incidentally, there will
only ever be three values in the field which I am splitting. do you
think my query would be labour intensive, it looks far more complicated
than yours?
I think they are about the same. The main factor for performance is how you
access tables, use indexes and that. Not how you do string manipulation.
--
Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx
Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
.
- Follow-Ups:
- Re: Split Field in SQL in to multiple columns
- From: RickyP
- Re: Split Field in SQL in to multiple columns
- References:
- Split Field in SQL in to multiple columns
- From: RickyP
- Re: Split Field in SQL in to multiple columns
- From: Erland Sommarskog
- Re: Split Field in SQL in to multiple columns
- From: RickyP
- Split Field in SQL in to multiple columns
- Prev by Date: Re: VB.NET/SQL Server
- Next by Date: Question about JOINs
- Previous by thread: Re: Split Field in SQL in to multiple columns
- Next by thread: Re: Split Field in SQL in to multiple columns
- Index(es):
Relevant Pages
|