Thread ODBC Passwort übergeben (9 answers)
Opened by ottto at 2011-05-12 15:36

GwenDragon
 2011-05-13 11:54
#148566 #148566
User since
2005-01-17
14746 Artikel
Admin1
[Homepage]
user image
Statt
Code: (dl )
1
2
my $db = new Win32::ODBC('test') 
or Win32::ODBC::DumpError();
dann
Code: (dl )
1
2
3
4
5
my $password = 'verysecretpassword';
my $user = 'John';
my $database_name = 'test';
my $db = new Win32::ODBC("DSN=$database_name;UID=$user;PWD=$password")
or Win32::ODBC::DumpError();

View full thread ODBC Passwort übergeben