Click here to Skip to main content
15,894,142 members
Home / Discussions / Database
   

Database

 
GeneralADO UPDATE Problem Pin
petesfish11-May-04 12:31
petesfish11-May-04 12:31 
GeneralRe: ADO UPDATE Problem Pin
WoutL11-May-04 22:56
WoutL11-May-04 22:56 
GeneralRe: ADO UPDATE Problem Pin
petesfish12-May-04 6:27
petesfish12-May-04 6:27 
QuestionHow to get transformation result in DTS Pin
KSEI11-May-04 0:27
KSEI11-May-04 0:27 
Questioncan this query be optimized Pin
22491711-May-04 0:17
22491711-May-04 0:17 
AnswerRe: can this query be optimized Pin
WoutL11-May-04 23:07
WoutL11-May-04 23:07 
GeneralRe: can this query be optimized Pin
22491713-May-04 0:10
22491713-May-04 0:10 
GeneralRe: can this query be optimized Pin
WoutL13-May-04 0:24
WoutL13-May-04 0:24 
The resource and time consuming part is like '%' + urlTable.url + '%'.

As far as I known you cannot solve this because of the first '%'.

But you could try:

<br />
Select name<br />
From MyTable, urlTable<br />
Where MyTable.name like ''% + urlTable.url + '%'<br />


Or
<br />
Select name<br />
From MyTable, urlTable<br />
Where CharIndex(MyTable.name, urlTable.url) > 0<br />


or create a full-text catalog on urlTable and use Contains... You can read about full-text catalogs in the SQL Server Books Online



Wout Louwers
GeneralInsert Data into A table Pin
bighi10-May-04 23:27
bighi10-May-04 23:27 
GeneralRe: Insert Data into A table Pin
Edbert P11-May-04 16:50
Edbert P11-May-04 16:50 
GeneralRe: Insert Data into A table Pin
bighi12-May-04 8:36
bighi12-May-04 8:36 
Generalproblem with scope_identity using cmd.Parameters Pin
brunoskorepa10-May-04 22:44
brunoskorepa10-May-04 22:44 
GeneralRe: problem with scope_identity using cmd.Parameters Pin
Edbert P11-May-04 16:53
Edbert P11-May-04 16:53 
GeneralRe: problem with scope_identity using cmd.Parameters Pin
brunoskorepa11-May-04 19:44
brunoskorepa11-May-04 19:44 
GeneralRe: problem with scope_identity using cmd.Parameters Pin
Rob Graham13-May-04 3:48
Rob Graham13-May-04 3:48 
GeneralRe: problem with scope_identity using cmd.Parameters Pin
brunoskorepa13-May-04 7:58
brunoskorepa13-May-04 7:58 
GeneralsqlDataReader is Busy Fetching.... Pin
-Dr_X-8-May-04 15:44
-Dr_X-8-May-04 15:44 
GeneralRe: sqlDataReader is Busy Fetching.... Pin
Aryadip12-May-04 20:47
Aryadip12-May-04 20:47 
GeneralRe: sqlDataReader is Busy Fetching.... Pin
Rob Graham13-May-04 3:52
Rob Graham13-May-04 3:52 
GeneralResolution: sqlDataReader is Busy Fetching.... Pin
-Dr_X-13-May-04 11:22
-Dr_X-13-May-04 11:22 
GeneralSQL query for Date field Pin
Imtiaz Murtaza7-May-04 23:46
Imtiaz Murtaza7-May-04 23:46 
GeneralRe: SQL query for Date field Pin
Henrik Stuart8-May-04 0:39
Henrik Stuart8-May-04 0:39 
GeneralDates table YTD Pin
Ruchi Gupta7-May-04 10:54
Ruchi Gupta7-May-04 10:54 
GeneralRe: Dates table YTD Pin
Heath Stewart10-May-04 10:19
protectorHeath Stewart10-May-04 10:19 
GeneralDatabinding across forms Pin
Dave Wilson7-May-04 7:53
Dave Wilson7-May-04 7:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.