Click here to Skip to main content
15,911,141 members
Home / Discussions / Database
   

Database

 
GeneralRe: Database query Pin
Jeremy Oldham4-Apr-03 1:46
Jeremy Oldham4-Apr-03 1:46 
GeneralRe: Database query Pin
Alexander Kojevnikov2-Apr-03 2:33
Alexander Kojevnikov2-Apr-03 2:33 
General.Net portal Pin
Madhuri Mittal1-Apr-03 12:18
Madhuri Mittal1-Apr-03 12:18 
GeneralRe: .Net portal Pin
Nick Parker1-Apr-03 12:26
protectorNick Parker1-Apr-03 12:26 
QuestionCreating MS Access Database? Pin
BM_CSharp1-Apr-03 11:07
sussBM_CSharp1-Apr-03 11:07 
AnswerRe: Creating MS Access Database? Pin
Wayne Phipps2-Apr-03 8:17
Wayne Phipps2-Apr-03 8:17 
GeneralDatabaseconnection Pin
Herm31-Mar-03 19:11
Herm31-Mar-03 19:11 
GeneralFilling a dataset in another Thread Pin
Shisong Chen31-Mar-03 7:56
Shisong Chen31-Mar-03 7:56 
I was trying to fill a dataset from another thread so that my current one won't be blocked, it's working fine except follwing case:

I have a big table called "orders", running "select * from orders" doesn't block my user input thread, but "select * from orders where orderid=12345" will block the current thread; just wonder if there is anyone having the similar situation and knowing the work-around. Also "waitfor delay '00:00:08'" at the first line of script will block current thread.

I was using C# and Oledb.net with code similar to following:

Thread t = new Thread (new ThreadStart(ExecSql));
t.IsBackground = true;
t.Start();

private void ExecuteSql()
{
OleDbDataAdapter myAdapter = new OleDbDataAdapter();
DataSet ds = new DataSet();
OleDbCommand cmd = new OleDbCommand("select * from orders", conn)

myAdapter.SelectCommand = cmd;
myAdapter.Fill(ds);
}

It's intersting that Odbc.net doesn't have this blocking problem but the perfomance of filling dataset with Odbc.net is much slower than OleDB.net.
(tried the sample tabl Northwind.Orders, 10 time slower, very strange)

Thanks


GeneralStored Procedure, OUTPUT param and (n)text Pin
Paul Watson31-Mar-03 5:47
sitebuilderPaul Watson31-Mar-03 5:47 
GeneralRe: Stored Procedure, OUTPUT param and (n)text Pin
Stan Shannon31-Mar-03 7:43
Stan Shannon31-Mar-03 7:43 
GeneralRe: Stored Procedure, OUTPUT param and (n)text Pin
Paul Watson31-Mar-03 7:48
sitebuilderPaul Watson31-Mar-03 7:48 
GeneralRe: Stored Procedure, OUTPUT param and (n)text Pin
Stan Shannon31-Mar-03 8:19
Stan Shannon31-Mar-03 8:19 
GeneralRe: Stored Procedure, OUTPUT param and (n)text Pin
Bruce Duncan31-Mar-03 7:43
Bruce Duncan31-Mar-03 7:43 
GeneralRe: Stored Procedure, OUTPUT param and (n)text Pin
Paul Watson31-Mar-03 7:51
sitebuilderPaul Watson31-Mar-03 7:51 
GeneralRe: Stored Procedure, OUTPUT param and (n)text Pin
Bruce Duncan31-Mar-03 8:10
Bruce Duncan31-Mar-03 8:10 
QuestionCan I retrieve column names using MFC classes Pin
Charles Liu30-Mar-03 18:42
Charles Liu30-Mar-03 18:42 
AnswerRe: Can I retrieve column names using MFC classes Pin
DiWa30-Mar-03 20:23
DiWa30-Mar-03 20:23 
AnswerRe: Can I retrieve column names using MFC classes Pin
tomiczek31-Mar-03 23:49
tomiczek31-Mar-03 23:49 
GeneralRe: Can I retrieve column names using MFC classes Pin
Charles Liu1-Apr-03 16:38
Charles Liu1-Apr-03 16:38 
GeneralRe: Can I retrieve column names using MFC classes Pin
DiWa2-Apr-03 1:39
DiWa2-Apr-03 1:39 
GeneralConnection string Pin
Hesham Amin29-Mar-03 9:21
Hesham Amin29-Mar-03 9:21 
GeneralGot it !! Pin
Hesham Amin30-Mar-03 21:43
Hesham Amin30-Mar-03 21:43 
GeneralRe: Connection string Pin
wangzhibin6-Apr-03 15:11
wangzhibin6-Apr-03 15:11 
GeneralRe: Connection string Pin
Hesham Amin6-Apr-03 21:16
Hesham Amin6-Apr-03 21:16 
GeneralBtrieve Owner Name Pin
Andy H28-Mar-03 9:36
Andy H28-Mar-03 9:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.