DB Connection?

VA Smalltalk is a "100% VisualAge compatible" IDE that includes the original VisualAge technology and the popular VA Assist and WidgetKit add-ons.

Moderators: Eric Clayberg, wembley, tc, Diane Engles, solveig

DB Connection?

Postby cenk1536 » Thu Nov 01, 2007 4:27 am


the script below is enough to connect to db which is defined in ODBC settings:


|kullanici sifre dateTime date aLogonSpec aConnSpec aBlock |

(AbtDbmSystem activeDatabaseConnectionWithAlias: 'HASTANE') isNil
ifFalse: [
(AbtDbmSystem activeDatabaseConnectionWithAlias: 'HASTANE') disconnect

"aLogonSpec:=AbtDatabaseLogonSpec id: 'db2admin' password: 'hy36063' server: 'HASTANE' alias: 'HASTANE'."
aLogonSpec:=AbtDatabaseLogonSpec id: 'db2admin' password: 'db2admin' server: 'YES' alias: 'YES'.
aConnSpec := AbtDatabaseConnectionSpec new
dbmClass: AbtIbmCliDatabaseManager;
dsn: 'YES';
promptEnabled: false.
aBlock := Object abtDefaultDatabaseErrorBlock.
Posts: 5
Joined: Tue Oct 30, 2007 7:54 am

Return to VA Smalltalk 7.0, 7.5 & 8.0

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest