Article View: free.it.visual-basic
Article #870ERRORE DELLA SELECT (SQL)
From: cigliux
Date: Tue, 14 Jun 2005 10:55
Date: Tue, 14 Jun 2005 10:55
15 lines
1673 bytes
1673 bytes
Ho creato una connessione ad un database Firebird con "Visual Web Developer 2005 (Beta 2)", e fin qui tutto bene. Se vado a visualizzare tutti i dati di una tabella del mio database, in una GridView, funziona perfettamente (Utilizzo la seguente istruzione: SELECT * FROM NomeTabella). Il problema nasce quando voglio visualizzare solo i primi 5 record della mia tabella: utilizzo la seguente istruzione: SELECT TOP 5 * FROM NomeTabella e mi ritorna il seguente errore: "There was an error executing the query.Please check the syntax of the command and if present, the typs and the valuesof the parameters and ensure they are correct". Ricordo che uso l'oggetto "SqlDataSource" e l'errore viene visualizzato quando clicclo sul bottone "Test Query". Se utilizzo la stessa istruzione sql in Access invece funziona perfettamente e mi permette di visualizzare i primi 5 record della mia tabella in una query.
Technical Details
Message-ID:
<200506141055073977@mynewsgate.net>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsgate.cistron.nl!newsfeed.bit.nl!tiscali!newsfeed1.ip.tiscali.net!nntp.eutelia.it!news.panservice.it!news.mynewsgate.net!mynewsgate.net!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: f94ee,29e4bbf5cb9ffc3,start X-Google-Attributes: gidf94ee,public X-Google-Language: ITALIAN,ASCII-7-bit Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsgate.cistron.nl!newsfeed.bit.nl!tiscali!newsfeed1.ip.tiscali.net!nntp.eutelia.it!news.panservice.it!news.mynewsgate.net!mynewsgate.net!not-for-mail From: "cigliux" <3977invalid@mynewsgate.net> Newsgroups: free.it.visual-basic Subject: ERRORE DELLA SELECT (SQL) Message-ID: <200506141055073977@mynewsgate.net> Date: Tue, 14 Jun 2005 10:55:07 GMT X-Newsreader: www.mynewsgate.net X-Complaints-To: abuse@mynewsgate.net NNTP-Posting-Host: 213.92.84.37 MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 8bit