SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
SQL-Custom Assistance-CharIndex

 
Reply to topic    SoftTree Technologies Forum Index » SQL Assistant View previous topic
View next topic
SQL-Custom Assistance-CharIndex
Author Message
judahr



Joined: 09 Mar 2007
Posts: 319
Country: United States

Post SQL-Custom Assistance-CharIndex Reply with quote
I frequently forget the parameter order for CharIndex. Rather than "expression1, expression2" may I suggest:

CHARINDEX(CharactersToBeFound varchar, StringToSearch varchar,[start_location] bigint)int

or something similar. I know I can customize on my own, but they've been lost in an upgrade in earlier versions.
Thu May 08, 2008 1:16 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7841

Post Reply with quote
You can change it the way you want. Open SQL Assistant options screen -> DB Options tab -> SQL Server (left side of the screen) -> expand Custom Assistance (right side of the screen) -> Locate CHARINDEX and edit as required.
Thu May 08, 2008 2:13 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7841

Post Reply with quote
PS. Parameter names appear as they are referenced in the db documentation.
Thu May 08, 2008 2:14 pm View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » SQL Assistant All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.