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:
01527854
Vues:
450
This message has been marked as a message which has helped to the initial question of the thread.
Hi Naomi,

Yes, cast to decimal or float.

MartinaJ

>Hi everybody,
>
>Using DSN and SQLExec from SQL Server to VFP I'm running the following code:
>
> 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(SIZE*8) AS SizeKB, @MaxSize AS MaxSize, @MaxSizeDesc as MaxSizeDesc
>   FROM sys.master_files
>    WHERE DB_NAME(database_id) = <<VFP2SQL(this.cDbName)>> AND type = 0
>  ENDTEXT   
>  mysqlexec(m.lcSQL, 'csrTemp', program())
>
>I receive perfect results in SQL Server, but in VFP the SizeKB field returns NULL. Is it because VFP can not handle Bigint ? Should I try converting this value to decimal instead ?
>
>Thanks in advance.
"Navision is evil that needs to be erazed... to the ground"

Jabber: gorila@dione.zcu.cz
Jabber? Jabbim
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform