Click here to Skip to main content
15,890,947 members
Home / Discussions / Database
   

Database

 
GeneralRe: procedure in SQL Pin
papy-boom10-Dec-08 2:05
papy-boom10-Dec-08 2:05 
QuestionPass Insert SQL Statement to MS-SQL DB via BAT script Pin
mil_an8-Dec-08 23:19
mil_an8-Dec-08 23:19 
AnswerRe: Pass Insert SQL Statement to MS-SQL DB via BAT script Pin
Colin Angus Mackay8-Dec-08 23:50
Colin Angus Mackay8-Dec-08 23:50 
GeneralRe: Pass Insert SQL Statement to MS-SQL DB via BAT script Pin
mil_an9-Dec-08 0:55
mil_an9-Dec-08 0:55 
GeneralRe: Pass Insert SQL Statement to MS-SQL DB via BAT script Pin
Ashfield9-Dec-08 1:21
Ashfield9-Dec-08 1:21 
GeneralRe: Pass Insert SQL Statement to MS-SQL DB via BAT script [modified] Pin
mil_an9-Dec-08 22:19
mil_an9-Dec-08 22:19 
QuestionProblem With Update Query Pin
chandrubngit8-Dec-08 19:14
chandrubngit8-Dec-08 19:14 
AnswerRe: Problem With Update Query Pin
Wendelius9-Dec-08 9:38
mentorWendelius9-Dec-08 9:38 
chandrubngit wrote:
I want to know is there any better method….than this to do


I don't see what's the problem in your code (except that you're not using parameters for values in conditions). If you're trying to get rid of the if logic, you can convert possible NULL in Priority to an empty string if you want. Something like:
... AND IIF(IsNull(Priority), '', Priority) = ’" & TextBox2.Text.Trim & "’)

or preferrably
... AND IIF(IsNull(Priority), '', Priority) = ?)

but unless you have a very small amount of rows in your table, this will have a (possibly untolerable) negative impact on performance.

The need to optimize rises from a bad design.My articles[^]

QuestionCan anyone help me Rectify this SQL Query................ Pin
Reality Strikes8-Dec-08 8:23
Reality Strikes8-Dec-08 8:23 
QuestionSql Server to Oracle Pin
Civic068-Dec-08 4:36
Civic068-Dec-08 4:36 
AnswerRe: Sql Server to Oracle Pin
Wendelius8-Dec-08 4:46
mentorWendelius8-Dec-08 4:46 
GeneralRe: Sql Server to Oracle Pin
Civic068-Dec-08 4:52
Civic068-Dec-08 4:52 
GeneralRe: Sql Server to Oracle Pin
Wendelius8-Dec-08 4:56
mentorWendelius8-Dec-08 4:56 
GeneralRe: Sql Server to Oracle Pin
Civic068-Dec-08 5:02
Civic068-Dec-08 5:02 
GeneralRe: Sql Server to Oracle Pin
Wendelius8-Dec-08 5:21
mentorWendelius8-Dec-08 5:21 
QuestionEuro symbol & CDO via T-SQL Pin
RichardGrimmer8-Dec-08 3:57
RichardGrimmer8-Dec-08 3:57 
AnswerRe: Euro symbol & CDO via T-SQL Pin
Ben Fair8-Dec-08 4:08
Ben Fair8-Dec-08 4:08 
GeneralRe: Euro symbol & CDO via T-SQL Pin
RichardGrimmer8-Dec-08 4:32
RichardGrimmer8-Dec-08 4:32 
AnswerRe: Euro symbol & CDO via T-SQL Pin
Wendelius8-Dec-08 5:42
mentorWendelius8-Dec-08 5:42 
GeneralRe: Euro symbol & CDO via T-SQL Pin
RichardGrimmer8-Dec-08 5:44
RichardGrimmer8-Dec-08 5:44 
GeneralRe: Euro symbol & CDO via T-SQL [modified] Pin
Wendelius8-Dec-08 5:55
mentorWendelius8-Dec-08 5:55 
GeneralRe: Euro symbol & CDO via T-SQL Pin
RichardGrimmer8-Dec-08 23:28
RichardGrimmer8-Dec-08 23:28 
GeneralRe: Euro symbol & CDO via T-SQL Pin
Wendelius9-Dec-08 5:24
mentorWendelius9-Dec-08 5:24 
QuestionSelect column name where... Pin
Muammar©6-Dec-08 20:53
Muammar©6-Dec-08 20:53 
AnswerRe: Select column name where... Pin
Wendelius6-Dec-08 22:38
mentorWendelius6-Dec-08 22:38 

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.