# Ruby and Db2 (UDB) setting the Node (dbpartition)

**URL:** <https://www.ruby-forum.com/t/ruby-and-db2-udb-setting-the-node-dbpartition/139986>\
**Category:** Ruby\
**Created:** [June 9, 2008, 8:43pm UTC](https://www.ruby-forum.com/t/ruby-and-db2-udb-setting-the-node-dbpartition/139986 "2008-06-09T20:43:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sxkundu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/b487fb/32.png) [@sxkundu](https://www.ruby-forum.com/u/sxkundu)\
**Post date:** [June 9, 2008, 8:43pm UTC](https://www.ruby-forum.com/t/ruby-and-db2-udb-setting-the-node-dbpartition/139986/1 "2008-06-09T20:43:25Z")

</div>

Any idea on how to set the node (dbpartition)? The db2 CLP commands  
recongnize the partition set by the DB2NODE env. variable but the db2  
api for ruby, still sees Node 0.

db\_conn = IBM\_DB::connect “#{dbname}”, “#{user}”, “#{password}”

Any idea on how to set the node (dbpartition)?

Thanks much!
