Click here to Skip to main content
15,878,852 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: First query to a local sql server run very slow , others almost instantly Pin
Eddy Vluggen21-Mar-14 7:33
professionalEddy Vluggen21-Mar-14 7:33 
GeneralRe: First query to a local sql server run very slow , others almost instantly Pin
dilkonika21-Mar-14 8:41
dilkonika21-Mar-14 8:41 
GeneralRe: First query to a local sql server run very slow , others almost instantly Pin
Dave Kreskowiak21-Mar-14 9:13
mveDave Kreskowiak21-Mar-14 9:13 
GeneralRe: First query to a local sql server run very slow , others almost instantly Pin
dilkonika21-Mar-14 9:37
dilkonika21-Mar-14 9:37 
GeneralRe: First query to a local sql server run very slow , others almost instantly Pin
Dave Kreskowiak21-Mar-14 9:51
mveDave Kreskowiak21-Mar-14 9:51 
GeneralRe: First query to a local sql server run very slow , others almost instantly Pin
dilkonika21-Mar-14 10:04
dilkonika21-Mar-14 10:04 
GeneralRe: First query to a local sql server run very slow , others almost instantly Pin
Dave Kreskowiak21-Mar-14 10:17
mveDave Kreskowiak21-Mar-14 10:17 
GeneralRe: First query to a local sql server run very slow , others almost instantly Pin
Eddy Vluggen21-Mar-14 11:16
professionalEddy Vluggen21-Mar-14 11:16 
dilkonika wrote:
Sorry !
Don't be; my bad. The syntax is invalid, because I assumed you alread used such a query. It's a "SELECT * FROM WhateverTable WHERE 1=1 (or 1=0 to get no results); the idea is to send a bogus query whose result does not matter - it's not the result of the query that's interesting.

Performaning the "first" query when the computer starts is a way of cheating. The first query (the bogus one in this case) would still be slow. It would (should) force the db-server to wake up and load all that's required to handle a query.
Bastard Programmer from Hell Suspicious | :suss:
If you can't read my code, try converting it here[^]

QuestionUpdate cells in a DataGridView Pin
Felix Fosu17-Mar-14 9:10
Felix Fosu17-Mar-14 9:10 
SuggestionRe: Update cells in a DataGridView Pin
Eddy Vluggen18-Mar-14 9:38
professionalEddy Vluggen18-Mar-14 9:38 
QuestionSetting Priorities for Pre-Requisites Pin
SPSandy17-Mar-14 1:06
SPSandy17-Mar-14 1:06 
AnswerRe: Setting Priorities for Pre-Requisites Pin
Dave Kreskowiak17-Mar-14 3:24
mveDave Kreskowiak17-Mar-14 3:24 
QuestionRe: Setting Priorities for Pre-Requisites Pin
Eddy Vluggen18-Mar-14 9:31
professionalEddy Vluggen18-Mar-14 9:31 
AnswerRe: Setting Priorities for Pre-Requisites Pin
SPSandy19-Mar-14 7:19
SPSandy19-Mar-14 7:19 
GeneralRe: Setting Priorities for Pre-Requisites Pin
Eddy Vluggen20-Mar-14 21:43
professionalEddy Vluggen20-Mar-14 21:43 
GeneralRe: Setting Priorities for Pre-Requisites Pin
SPSandy21-Mar-14 7:03
SPSandy21-Mar-14 7:03 
GeneralRe: Setting Priorities for Pre-Requisites Pin
Eddy Vluggen21-Mar-14 7:37
professionalEddy Vluggen21-Mar-14 7:37 
GeneralRe: Setting Priorities for Pre-Requisites Pin
SPSandy21-Mar-14 7:47
SPSandy21-Mar-14 7:47 
AnswerRe: Setting Priorities for Pre-Requisites Pin
SPSandy20-Mar-14 4:27
SPSandy20-Mar-14 4:27 
QuestionVB6 Cennect with SQL Server Pin
Ardi Durres15-Mar-14 23:38
Ardi Durres15-Mar-14 23:38 
AnswerRe: VB6 Cennect with SQL Server Pin
Eddy Vluggen16-Mar-14 1:08
professionalEddy Vluggen16-Mar-14 1:08 
Questionchange connection with database on runtime Pin
alejx15-Mar-14 4:25
alejx15-Mar-14 4:25 
AnswerRe: change connection with database on runtime Pin
Dave Kreskowiak15-Mar-14 6:55
mveDave Kreskowiak15-Mar-14 6:55 
GeneralRe: change connection with database on runtime Pin
alejx15-Mar-14 8:03
alejx15-Mar-14 8:03 
GeneralRe: change connection with database on runtime Pin
Dave Kreskowiak15-Mar-14 10:01
mveDave Kreskowiak15-Mar-14 10:01 

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.