Buy Questpond's video subscriptions on
huge discount
.
Online: 7178
Home
Articles
Interviews
Forums
For Beginners
Popular Questions
ITIL Career Advice
PMP Career Advice
Career Advices
Codes
Videos
ASP.NET
ASP.NET MVC
Android Intel XDK
Sql Server
AngularJS
Bootstrap
Backbone.JS
MongoDB
LESS (CSS)
jQuery
WPF
WWF
SSIS
LightSwitch
Tutorials
News
ASP.NET MVC
|
Be Interview Ready
|
Top Performers
|
DNF MVP
|
Top Posts
|
Winners
|
Subscribe
|
Catalogs
Welcome Guest !
Register
Login
Home
>
Exclusive Interviews
>
C#
>
Post
|
Interview FAQs
|
Exclusive Interview Home
|
Interview Home
|
Search
Loading ...
private void Form1_Load(object sender, EventArgs e) { SqlConnection con = new SqlConnection(); using (con) { con.ConnectionString = @"Data Source =server;Initial Catalog = pubs;userid=sa;password=password"; con.Open(); MessageBox.Show(con.State.ToString()); } MessageBox.Show(con.State.ToString()); } What is the output?
Posted by
deccansoft
on 8/5/2010 | Category:
C# Interview questions
| Views: 4970
Closed. Open Closed.
Asked In:
Many Interviews |
Alert Moderator
Bookmark It
< Previous question :
What is the using statement?
Next question > :
private void Form1_Load(object sender, EventArgs e ...
Comments or Responses
Login to post response
More Interview Questions
private void Form1_Load(object sender, EventArgs e) { SqlConnection co ...
private void Form1_Load(object Sender,EventArgs e) { SqlConnection con ...
Is the following Connection string correct?
When should we use Oledb provider to SqlClient ?
What is the namespace for MS SQLServer Mobile?
What is the core ADO.Net assembly?
Whenever the integrity of an object is violated,________________
In .NET every exception is an object of type ____________