SQL query to ignore case in where condition -
i trying run below sql query.$1 passing parameter. need case insensitive. eg:
test.sql server1.net , test server1.net ( both values should taken, think below query takes parameter in lowercase default) requirement is, irrespective of case, whatever values have given, query should process. please ?
select * act_msgs m,node_name nn msg_name '%test%' , nn.node_name = '$1'
in tsql can use upper function as:
declare @vartest varchar(100); set @vartest = upper('test') select * act_msgs m,node_name nn upper(msg_name) '%' + vartest +'%' , nn.node_name = '$1'
Comments
Post a Comment