Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with BigInt?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01527849
Message ID:
01527855
Vues:
83
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform