![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
After importing several rows to a table, I need to fire a SQL statement to update 2 columns from a single column. My full name column needs to be broken out to Fname and Lname columns. I have this query that works well in Access but I need the SQL equivelent for it. Help apprecaited. Thanks. UPDATE tbl SET Fname = Left([FullName], InStr(1,[FullName]," ")-1), Lname = Right(Trim([FullName]),Len(Trim([FullName])) - InStr(1,[FullName]," ")) -------------------- Result: 'InStr' is not a recognized function name. *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it! |
#3
| |||
| |||
|
#4
| |||
| |||
|
|
This is great, but how would I work that into an update statement like the one I supplied the SQL Task? Could you give me an example? Sorry to be a dumb ass, but help appreciated. *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it! |
![]() |
| Thread Tools | |
| Display Modes | |
| |