Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Creating db from zero
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00701311
Message ID:
00702851
Views:
15
Mario chequeate lo del dsn, ya me lo explicaron aqui en universalthread:


DECLARE Integer SQLConfigDataSource IN odbccp32.dll Integer, Short, String @, String @


lc_driver = "SQL Server" &&+ CHR(0)
lc_dsn = "dsn=ca" + CHR(0) + ;
"server=desarrollo" + CHR(0) + ;
"database=btwin"+ CHR(0) + ;
"network=DBMSSOCN" + CHR(0) && DBMSSOCN = TCP/IP connection

fResult = SQLConfigDataSource(0, 4 , @lc_driver, @lc_dsn)
&&el 4 es dsn sys,el 1 es para user dsn

IF fResult = 1
MESSAGEBOX("se creo el dsn")
ELSE
MESSAGEBOX("eploto")
endif
Previous
Reply
Map
View

Click here to load this message in the networking platform