V4RB2 RegisterDatabase Question

Igor Gomon giv at tlc.kherson.ua
Sat Jun 25 09:14:06 CDT 2005


Hi Bob,

> I have an existing database that I'm trying out on VServer.  My
> datafile works and I'm wondering how I create the database on the
> server.  Here's my snippet of code:
>
>    dim vsrv as VServer
>    dim sysCatalog as string
>
>    gHostInfo.Host = "192.168.2.14"
>    gHostInfo.Password = "sa"
>    gHostInfo.UserName = "sa"
>    gHostInfo.Port = val("15432")\1
>    vsrv =  new Vserver(gHostInfo.Host, gHostInfo.UserName,
> gHostInfo.Password, gHostInfo.Port)
>
>    if vsrv <> nil then
>      vsrv.OpenSession
>      sysCatalog = vsrv.GetVariable( "SystemCatalog" )
>      vsrv.RegisterDatabase( "TS", sysCatalog + "TS.vdb" )  <------
> FREEZES NEVER TO RETURN
BTW, yuo not have do concat these paths. By default if passed only database
name
to the RegisterDatabase() call it means that database is located in the
"SystemCatalog".

Anyway, this code should work.
Have you tried to register your database with Valentina Studio?

--
Best regards,
Igor Gomon
-------------------------------------------------------------
e-mail: giv at tlc.kherson.ua
web: http://www.paradigmasoft.com

To subscribe to the Valentina mail list go to:
http://listserv.macserve.net/mailman/listinfo/valentina




More information about the Valentina-beta mailing list