Go Back   Web Server Hosting Forum by BODHost > Support > Windows Dedicated Server
 

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 07-13-07, 07:57
Moderator
 
Join Date: Oct 2005
Posts: 346
Smile How can I specify a user id or password for a database ?

You can specify a userid and password when you are configuring the DSN .

You can also specify a userid/password when connecting to the DSN. This allows you to create the DSN with no userid/password specified but instead specify it during runtime. you need to do is connect to the DSN the way you normally would but specify a user id and password attributes:

$db = new Win32::ODBC("DSN=My DSN;UID=Joel;PWD=Joel's Password;");

Note: you must use a semicolon ( ; ) between attributes.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump


All times are GMT -6. The time now is 03:15.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
Copyright © 1999-2012, BODHost Ltd. All rights reserved.