473,387 Members | 3,801 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Val() is not a recognized function name?

Hi,

I am executing, update query as
Expand|Select|Wrap|Line Numbers
  1. Update taans set pbno='OLD' & pbno where  val(right(itemcode,5))<2774; 
, while executing it gives error as "Val() is not a recognized function name" how can over come this error? Is any predefined method available?
my item code is like 'V00121".


Thanks in Advance,
VASAVIVENU.
Apr 19 '12 #1
3 3352
ck9663
2,878 Expert 2GB
Use CAST or CONVERT functions instead.

Happy Coding!!!


~~ CK
Apr 19 '12 #2
CAST or CONVERT these two not working.
when using cast it gives error as "Server: Msg 403, Level 16, State 1, Line 1
Invalid operator for data type. Operator equals boolean AND, type equals nvarchar."
Thanks in Advance,
Apr 20 '12 #3
Rabbit
12,516 Expert Mod 8TB
That's because the function takes an additional parameter stating the data type you wish to CAST or CONVERT to. Also, why are you using the & operator? It's a boolean operator. SQL is not VB, that's not a concatenation operator. The concatentaion operator in SQL is +
Apr 20 '12 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: DOA | last post by:
Help! I've been doing C language development for a long time, but this problem has me stumped. I would like the user to be able to enter the name of a function that has been linked into the...
11
by: Ken Varn | last post by:
I want to be able to determine my current line, file, and function in my C# application. I know that C++ has the __LINE__, __FUNCTION__, and __FILE___ macros for getting this, but I cannot find a...
5
by: David Alasiga | last post by:
Does g++ have option to disable function name commingle. When I compile like: g++ -S Test.cpp the file Test.s has function name commingled. For example, function name foo becomes like...
15
by: dspfun | last post by:
Hi, Is it possible to print the function name of the calling function? For example, f1() and f2() both calls f3(), in f3() I would like to print the name of the function calling f3() which...
6
by: Maguila007 | last post by:
Hi Is there any way to obtain the name of the function, inside the function which was called. Ex: function something() { alert( "The name of the function you invoke is " ......should
3
by: Robert | last post by:
Hi, I thought I pretty much understood the whole prototype chain stuff, but now I stumbled upon a difference between IE and Firefox, that is totally confusing me. An example.......
3
by: jacelyn2211 | last post by:
can i have 2 function with same function name but different argument in a javascript? my code are as followings:- function crtHidObj(name,value,idx){ crtHidObj(name,value); ...
10
by: Richard Heathfield | last post by:
Stephen Sprunk said: <snip> Almost. A function name *is* a pointer-to-function. You can do two things with it - copy it (assign its value to an object of function pointer type, with a...
12
by: sinbad | last post by:
hi, is it possible to get function name from function pointer. I am using gcc compiler on linux. thanks
1
by: Kev37Barrie | last post by:
Hello I am getting the following error - 'RANK' is not a recognized function name. when trying to run - SELECT RANK() OVER (ORDER BY application_id, applicant) AS id, contact_id,...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.