Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
A question about SqlConnection and scope
Message
From
06/05/2005 08:04:53
 
 
To
05/05/2005 18:59:04
General information
Forum:
ASP.NET
Category:
Databases
Environment versions
Environment:
C# 1.1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01011433
Message ID:
01011555
Views:
16
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform