Click here to Skip to main content
15,921,279 members
Home / Discussions / Database
   

Database

 
GeneralRe: Stored Procedure and ADO.NET Pin
Christian Graus10-Nov-04 12:12
protectorChristian Graus10-Nov-04 12:12 
GeneralRe: Stored Procedure and ADO.NET Pin
mysorian10-Nov-04 12:46
professionalmysorian10-Nov-04 12:46 
GeneralBizzare SQL Query Problem Pin
Tristan Rhodes10-Nov-04 10:49
Tristan Rhodes10-Nov-04 10:49 
GeneralRe: Bizzare SQL Query Problem Pin
Christian Graus10-Nov-04 11:28
protectorChristian Graus10-Nov-04 11:28 
GeneralRe: Bizzare SQL Query Problem Pin
Tristan Rhodes11-Nov-04 6:06
Tristan Rhodes11-Nov-04 6:06 
GeneralNever Mind - Solved It Pin
Tristan Rhodes11-Nov-04 8:30
Tristan Rhodes11-Nov-04 8:30 
GeneralRe: Never Mind - Solved It Pin
Christian Graus11-Nov-04 9:03
protectorChristian Graus11-Nov-04 9:03 
GeneralRe: Bizzare SQL Query Problem Pin
Michael Potter11-Nov-04 10:16
Michael Potter11-Nov-04 10:16 
There is no correlation between the queries in the update statement. No matter which row the SQL Server tests, the EXISTS statement will always resolve to true and therefore, update the row.

I don't think the EXISTS statement is a good solution for this problem (although you could make it work). Try the IN statement:
UPDATE 
     SubCategory 
SET 
     SubCategory.SubCategoryDesc = str_New
WHERE 
     SubCategory.SubCategoryDesc IN
          (SELECT 
               SubCategory.SubCategoryDesc 
           FROM 
               Category 
           INNER JOIN 
               SubCategory 
               ON Category.CategoryKey = SubCategory.CategoryKey
           WHERE 
               ((Category.CategoryDescription)= GetCurrCategor()) AND
               ((SubCategory.SubCategoryDesc)= str_Old))

GeneralExcel data type problem Pin
@LX10-Nov-04 4:42
@LX10-Nov-04 4:42 
Generalbuild a cbo box Pin
skicrud10-Nov-04 3:53
skicrud10-Nov-04 3:53 
GeneralRe: build a cbo box Pin
Mekong River10-Nov-04 4:00
Mekong River10-Nov-04 4:00 
GeneralRe: build a cbo box Pin
Gavin Jeffrey10-Nov-04 5:08
Gavin Jeffrey10-Nov-04 5:08 
GeneralUrgent about connection to MSDE 2000 Pin
wk_vigorous10-Nov-04 3:26
wk_vigorous10-Nov-04 3:26 
GeneralRe: Urgent about connection to MSDE 2000 Pin
Mekong River10-Nov-04 4:06
Mekong River10-Nov-04 4:06 
GeneralRe: Urgent about connection to MSDE 2000 Pin
wk_vigorous10-Nov-04 5:53
wk_vigorous10-Nov-04 5:53 
GeneralRe: Urgent about connection to MSDE 2000 Pin
Richard Deeming10-Nov-04 7:42
mveRichard Deeming10-Nov-04 7:42 
GeneralRe: Urgent about connection to MSDE 2000 Pin
wk_vigorous10-Nov-04 22:56
wk_vigorous10-Nov-04 22:56 
GeneralA couple of SQLXML issues Pin
RichardGrimmer9-Nov-04 22:03
RichardGrimmer9-Nov-04 22:03 
GeneralA custom key Pin
totig9-Nov-04 21:56
totig9-Nov-04 21:56 
GeneralRe: A custom key Pin
Mekong River10-Nov-04 4:14
Mekong River10-Nov-04 4:14 
GeneralRe: A custom key Pin
totig10-Nov-04 19:26
totig10-Nov-04 19:26 
GeneralRe: A custom key Pin
Colin Angus Mackay10-Nov-04 6:53
Colin Angus Mackay10-Nov-04 6:53 
QuestionHow to update record Pin
Mekong River9-Nov-04 17:20
Mekong River9-Nov-04 17:20 
AnswerRe: How to update record Pin
Mekong River9-Nov-04 17:46
Mekong River9-Nov-04 17:46 
Generalado and radio button Pin
skicrud9-Nov-04 6:06
skicrud9-Nov-04 6:06 

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.