Quantcast
Channel: Forum Getting started with SQL Server
Viewing all articles
Browse latest Browse all 7129

Incorrect syntax near the keyword As

$
0
0

I opened a 'New Query' window in SSMS. I pasted the following code (well this is a simplified version but throws the same error as the real version).

Create function dbo.GetFull (@dbName varchar(100))
Returns double
As  --   <------------- underlined in red. 
Begin
	Declare @PercentFull double
	select @PercentFull = 0
	Return @PercentFull
End 
go


Viewing all articles
Browse latest Browse all 7129

Trending Articles



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