🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: free.it.visual-basic
Article #192

Re: Vb6 e DB SQL

#192
From: Rafunk
Date: Fri, 11 Jul 2008 09:46
32 lines
2065 bytes
Chicco wrote:
> Ciao a tutti,
> scusate se sono domande gi� fatte, ma non ho trovato nulla in merito
> gooelando in giro.
>
> Ho alcune domande:
>
> 1) C'� un modo per sapere i campi di una tabella? Data la Tabella X
> voglio sapere quali campi ci sono.

Ci sono 2 modi, dai un'occhiata qui:
http://www.motobit.com/tips/detpg_listdb/

> 2) Se eseguo una StoreProcedure come posso sapere se ha finito?
> (SenzaParametri)

Dipende da che oggetto usi per l'esecuzione della SP.
Ad esempio, con ADO Command o Connection, il metodo Execute � sincrono per 
default, per cui la SP ha finito non appena termina la chiamata ad Execute.

> 3) Mi collego al DB di SQL con ODBC, esiste una stringa di connessione
> alternativa? Magari diretta?

S�, usando ADO per l'accesso e l'OLEDB Provider per MSSQL:
http://www.connectionstrings.com/?carrier=sqlserver

> Grazie mille, ho alcuni dei dubbi dopo assurde e infruttuose ricerche
> sul web.

Bye

Raf 
Technical Details
Message-ID: <48772b13$0$35962$4fafbaef@reader2.news.tin.it>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!club-internet.fr!feedme-small.clubint.net!feeder.news.tin.it!spool.news.tin.it!not-for-mail
References: <6c466c5e-64b2-4107-bfce-60e719db5d3e@m44g2000hsc.googlegroups.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: f94ee,6c34b3f8e3932ac3
X-Google-Attributes: gidf94ee,domainid0,public,usenet
X-Google-Language: ITALIAN,ASCII
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!club-internet.fr!feedme-small.clubint.net!feeder.news.tin.it!spool.news.tin.it!not-for-mail
From: "Rafunk" <zero@none0.it>
Newsgroups: free.it.visual-basic
References: <6c466c5e-64b2-4107-bfce-60e719db5d3e@m44g2000hsc.googlegroups.com>
Subject: Re: Vb6 e DB SQL
Date: Fri, 11 Jul 2008 11:46:04 +0200
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138
X-RFC2646: Format=Flowed; Original
Lines: 34
Message-ID: <48772b13$0$35962$4fafbaef@reader2.news.tin.it>
Organization: TIN.IT (http://www.tin.it)
X-Comments: Please send technical notifications to newsmaster@tin.it
NNTP-Posting-Host: 82.50.196.150
X-Trace: 1215769363 reader2.news.tin.it 35962 82.50.196.150:6650
X-Complaints-To: Please send abuse reports to abuse@retail.telecomitalia.it