[left]i am working on a project to show the results of air turbulence around a car body in the furnace after lacquering. In the database is stored a velocity vector for every volume (~2 million) around the car body for the hole process.
my script ist like:
init db connection
get Position of particle and get the proper volume
query db for velocity vector in that volume at the current time
assign result to pCont.particleSpeed
the problem is the initialization of the database connection inside a script operator.
i used my usual init of a sql connection like i did in a couple of other projects.
But this is the first time i want to use it with particle flow.
database = createOLEobject “ADODB.Connection”
database.open “Provider = SQLOLEDB; server=…; uid=…; pwd=…; database=…”
Volocity = createOLEObject “ADODB.Recordset”
Volumes = createOLEObject “ADODB.Recordset”
If i use the exact terms in a script outside pflow the connection and queries are working. but inside pflow it gives an error on : database = createOLEobject “ADODB.Connection”
[/left]