Quantcast
Channel: WinDev Forum
Viewing all articles
Browse latest Browse all 1914

How to move from classic to client/server

$
0
0
Dear fellow windev developers,

I am hoping someone can help point me in the right direction with an issue when changing database table connections.

I have an application that uses a hyperfile classic analysis with files locally in the executable directory. This all works absolutely fine. Within this analysis I have links for relationships between some of the tables.

I want to change the source location for 95% of these tables to a HFCS Client/Server which I have already setup and with the following commands I am able to do this for any table that has no links.


Server is Connection

// Parameters of the connection
Server..Provider = hAccessHFClientServer
Server..User = "Admin"
Server..Password = ""
Server..Server = "RLSXPS1:4900"
Server..Database = "FRM"
Server..CryptMethod = hCryptNo

// Opening the connection
IF HOpenConnection(Server) = False THEN

Info(HErrorInfo(hErrFullDetails))

END

IF HChangeConnection(FreeText,Server)= False THEN

Info(HErrorInfo(hErrFullDetails))

ELSE

HChangeDir(FreeText,".")

//Info("New Connection",HNbRec(FreeText))
IF HCreationIfNotFound(FreeText) = True THEN

FreeText.FreeText = "TEST"
HAdd(FreeText)

END


END

However when we try to perform this task on a table that has links we get the following error:-

Error at line 24 of Global Procedure DatabaseConnect process.
HCreationIfNotFound function called.
The constraint for referential integrity <Constraint_Product_AllergenList> links a file found on a HFSQL server to a file that does not use the Client/Server mode. This is not allowed.

Can anyone offer some advice on how to resolve this please?

Thank you for any assistance,

Lee Shroder

Viewing all articles
Browse latest Browse all 1914

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>