Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
A question about SqlConnection and scope
Message
De
06/05/2005 08:04:53
 
 
À
05/05/2005 18:59:04
Information générale
Forum:
ASP.NET
Catégorie:
Bases de données
Versions des environnements
Environment:
C# 1.1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Divers
Thread ID:
01011433
Message ID:
01011555
Vues:
17
>You can return the connection object from your connect method:
>
>public SqlConnection ConnectToSqlServer()
>
>
>~~Bonnie


That works!

I had not made the connection (pun intended) when reading about scope and declaring variables and fields that you can define types other than the standard book samples: int, string, etc.

Works like a charm.


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform