Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

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

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?

Very Important crosS Applying yaK Herder

52326 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

Go to Top of Page
  Previous Topic Topic Next 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.02 seconds. Powered By: Snitz Forums 2000