Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

Why SQL Server is not validate the count function numeric argument while I mentioned table name in from clause

$
0
0

First I execute the following query.

Selectcount(*) fromsys.objects

I got 76 rows

after I replaced * as dynamic numeric values

Selectcount(1234567)fromsys.objects

I got same Result

but I replaced * as varchar value that time I got an error message.

 


Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>