sevendigital-odbc
文件大小: unknow
源码售价: 5 个金币 积分规则     积分充值
资源说明:ruby wrapper for ADO
# sevendigital-odbc

## Usage:

	def setup(connection_string, script_file)
		sql = ''

		File.open(script_path(script_file), 'r') do |file|
			file.each_line do |line|
				sql += line
			end
		end

		database = nil
		
		begin
			database = SevenDigital::ODBC::SqlServer.new(connection_string)
			database.open
			database.execute sql
		ensure
			database.close unless database.nil?
		end
	end
	
## Credits:

Mostly the work of @ben-biddington

本源码包内暂不包含可直接显示的源代码文件,请下载源码包。