Click here to Skip to main content
15,903,856 members
Home / Discussions / Database
   

Database

 
AnswerRe: check if database exist using C# Pin
Frank Kerrigan15-Nov-06 22:20
Frank Kerrigan15-Nov-06 22:20 
GeneralRe: check if database exist using C# Pin
kani9816-Nov-06 5:51
kani9816-Nov-06 5:51 
QuestionReporting services 2000 - how to get a second 'y' axis Pin
Paddy Boyd15-Nov-06 6:03
Paddy Boyd15-Nov-06 6:03 
QuestionWhy we use MissingSchemaAction in vb.net 2005? Pin
Parameswar Mal15-Nov-06 0:10
Parameswar Mal15-Nov-06 0:10 
Questionhow to connect VB6 to SQl Server 2000 Pin
Laji5914-Nov-06 23:39
Laji5914-Nov-06 23:39 
AnswerRe: how to connect VB6 to SQl Server 2000 Pin
ChandraRam15-Nov-06 0:43
ChandraRam15-Nov-06 0:43 
QuestionMultiple Table Update Pin
NICE TO MEET14-Nov-06 22:52
NICE TO MEET14-Nov-06 22:52 
QuestionMS Access performance sucks Pin
phimix14-Nov-06 22:37
phimix14-Nov-06 22:37 
Aloha,

We need to make a small Win app. that work together with an Access database. Everything works, but it's awfully slow Frown | :(

It takes around 60 milliseconds for our code to perform a retrieve a scalar value from the database. This is terrible, since we have quite a lot of queries to the database.

Our code is quite simple:
// setup connection<br />
            DbConnection dbConnection = dbProviderFactory.CreateConnection();<br />
            dbConnection.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=database.mdb";<br />
<br />
            dbConnection.Open();<br />
            // setup command object - always setup for stored procedure<br />
            DbCommand dbCommand = dbProviderFactory.CreateCommand();<br />
            dbCommand.Connection = dbConnection;<br />
<br />
            dbCommand.CommandType = CommandType.Text;<br />
            dbCommand.CommandText = sql;<br />
<br />
            object obj = dbCommand.ExecuteScalar();<br />
<br />
            // clean up<br />
            dbCommand.Connection.Close();<br />
<br />
            return obj;


Is it supposed to be so slow or are we doing something terribly wrong? Our SQL is just a simple select from two tables.
SELECT [text] FROM Question, UserText WHERE Question.QuestionTitle = UserText.TextId " +<br />
                    "AND QuestionId = " + controlId.ToString() + " AND LanguageId = " + languageId;


Thank you,




AnswerRe: MS Access performance sucks Pin
Paul Conrad15-Nov-06 11:10
professionalPaul Conrad15-Nov-06 11:10 
GeneralRe: MS Access performance sucks Pin
phimix15-Nov-06 19:52
phimix15-Nov-06 19:52 
GeneralRe: MS Access performance sucks Pin
Paul Conrad16-Nov-06 4:11
professionalPaul Conrad16-Nov-06 4:11 
AnswerRe: MS Access performance sucks Pin
S Douglas19-Nov-06 0:00
professionalS Douglas19-Nov-06 0:00 
Questionkeys in RDBMS Pin
vengaqua14-Nov-06 19:24
vengaqua14-Nov-06 19:24 
AnswerRe: keys in RDBMS Pin
User 171649215-Nov-06 0:05
professionalUser 171649215-Nov-06 0:05 
Question[Message Deleted] Pin
NICE TO MEET14-Nov-06 18:32
NICE TO MEET14-Nov-06 18:32 
AnswerRe: Stored Procedure Pin
Christian Graus14-Nov-06 18:37
protectorChristian Graus14-Nov-06 18:37 
General[Message Deleted] Pin
NICE TO MEET14-Nov-06 22:46
NICE TO MEET14-Nov-06 22:46 
GeneralRe: Stored Procedure Pin
Frank Kerrigan15-Nov-06 3:10
Frank Kerrigan15-Nov-06 3:10 
GeneralRe: Stored Procedure Pin
Christian Graus15-Nov-06 9:28
protectorChristian Graus15-Nov-06 9:28 
GeneralRe: Stored Procedure Pin
Paul Conrad15-Nov-06 11:07
professionalPaul Conrad15-Nov-06 11:07 
AnswerRe: Stored Procedure Pin
Eric Dahlvang15-Nov-06 3:12
Eric Dahlvang15-Nov-06 3:12 
Questionlocking in sql server 2000 Pin
king sunny14-Nov-06 18:31
king sunny14-Nov-06 18:31 
AnswerRe: locking in sql server 2000 Pin
Christian Graus14-Nov-06 18:49
protectorChristian Graus14-Nov-06 18:49 
QuestionTo upload a local database tables to internet database Pin
micydon14-Nov-06 18:11
micydon14-Nov-06 18:11 
AnswerRe: To upload a local database tables to internet database Pin
Frank Kerrigan15-Nov-06 3:17
Frank Kerrigan15-Nov-06 3:17 

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.