Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with BigInt?
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01527849
Message ID:
01527855
Views:
80
>Hi Naomi,
>
>Yes, cast to decimal or float.
>
>MartinaJ
>
Can you please elaborate?

I already figured that my original problem was a permission problem of some sort, so my new code is
TEXT TO lcSQL TEXTMERGE noshow
  DECLARE @MaxSize INT, @MaxSizeDesc varchar(10)
  SELECT @MaxSize = CASE WHEN SERVERPROPERTY('ProductVersion') > '10.5' THEN 10 * 1024 * 1024 -- 10GB for SQL Server 2008 R2 Express 
			ELSE 4 * 1024 * 1024 END,
		 @MaxSizeDesc = CASE WHEN SERVERPROPERTY('ProductVersion') > '10.5' THEN '10 GB' 
			ELSE '4 GB' END

  
   SELECT SUM(CONVERT (BIGINT, SIZE) * 8) AS SizeKB,
    @MaxSize AS MaxSize, @MaxSizeDesc AS MaxSizeDesc
	FROM sysfiles F WHERE status & 0x40 <> 0x40 -- Exclude log files
  ENDTEXT   
  mysqlexec(m.lcSQL, 'csrTemp', program())
  lcSpaceWarn    = ''
  
  select csrTemp
  if csrTemp.SizeKb >= .8 * csrTemp.MaxSize && 80% full
Now the failing line is the last one IF ...

Do you know what may be wrong here?

Thanks in advance.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform