SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 What is a run in SQL ?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

dexik
Starting Member

1 Posts

Posted - 12/01/2012 :  18:47:01  Show Profile  Reply with Quote
I am writing a Java assignment where a database is simulated by a hashtable. It says that the database should be made available at the beginning of a run and made unavailing at the end of a run.

The input and return data is like this:
Input: enter sql(prompt) user enters: insert 1234,'toronto', 45, 'main'
database class returns: inserted 1 item for 1234

[next request]
Input: enter sql(prompt) select 4321
Return: id:4321, city: calgary, address: 34 haha street

So my question is how do you understand a run in this context? Is it every sql request or anything between Connect [to database] and Disconnect?

visakh16
Very Important crosS Applying yaK Herder

India
52309 Posts

Posted - 12/02/2012 :  01:54:01  Show Profile  Reply with Quote
from your explanation it sounds you need to open connection do inserts and then close it at the end. so connection will be active till end

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.08 seconds. Powered By: Snitz Forums 2000