-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

kranthi reddy wrote:
| The code what I wrote above helps u to connect to the sql server by
modifing
| it a lil
| require 'mysql'
|  mysql = Mysql.init()
|   mysql.connect('localhost','USERNAME','PASSWORD')
|   mysql.select_db(' DATABASE NAME')
|  result = []
| result= mysql.query("SELECT name FROM users;")
|   result.each do |x|
|  puts x.name
|  end

MySQL != MSSQL

MSSQL: en.wikipedia.org/wiki/Microsoft_SQL_Server
MySQL: en.wikipedia.org/wiki/MySQL

- --
Phillip Gawlowski
Twitter: twitter.com/cynicalryan
Blog: http://justarubyist.blogspot.com

~   I'm looking for something that can deliver a 50-pound payload of snow
~   on a small feminine target. Can you suggest something? Hello...?
~              --- Calvin
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkgho+sACgkQbtAgaoJTgL9qxwCcCe6QA31tSUG1bKya+CMA+efT
W8UAn0jVy3Dhjn8L4KJDHrrHW1TysD0h
=m/XE
-----END PGP SIGNATURE-----