Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 4 of 4 total
Thread session.execute & users
Sun, Dec 21 2008 9:35 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Is it possible to use session.execute to alter the users in the configuration?

Roy Lambert
Mon, Dec 22 2008 2:23 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Roy,

<< Is it possible to use session.execute to alter the users in the
configuration? >>

Sure.  All of the DDL statements for users can be executed via the
TEDBSession.Execute method.

--
Tim Young
Elevate Software
www.elevatesoft.com

Tue, Dec 23 2008 8:13 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Tim

><< Is it possible to use session.execute to alter the users in the
>configuration? >>
>
>Sure. All of the DDL statements for users can be executed via the
>TEDBSession.Execute method.

I used it to determine if the user existed eg session.execute('select * from users where name = ''xxx'''); and that worked fine. I tried using the session to CREATE/ALTER and that didn't. Can't remember now if it was just CREATE, just ALTER or both that didn't work. Its easy enough to drop a query onto the form and use it so no big deal.

Roy Lambert
Tue, Dec 23 2008 2:11 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Roy,

<< I used it to determine if the user existed eg session.execute('select *
from users where name = ''xxx'''); and that worked fine. I tried using the
session to CREATE/ALTER and that didn't. Can't remember now if it was just
CREATE, just ALTER or both that didn't work. Its easy enough to drop a query
onto the form and use it so no big deal. >>

All that the TEDBSession.Execute method does is instantiate a TEDBQuery, set
the SessionName to the current session, set the DatabaseName to
'Configuration', and then execute the passed SQL.

--
Tim Young
Elevate Software
www.elevatesoft.com

Image