Monday 1 April 2013

SqlConnection in Ado.Net


hello friends !! Today I am just going to explain about SqlConnection in a ado.net which is as given below :

SqlConnection !!

Sqlconnection: 

  • Sqlconnection is an object used to make connection with database.
  • We make instance of sqlconnection which is take connection string as argument and pass the value to the constructor statement.

There are two type of connection we make which is as given below :

  1. Open();
  2. Close();

Open();: The Open(); method we used for open the database connection.
Close();The Close(); method we used for Close the database connection.

Syntax:

SqlConnection con = new SqlConnection ("data source=.; initial catalog=project2; integrated security=true");

Note:

data source=.;  (this tell your server name)
.  (Dot means your current server name)

Initial catalog =project2;   (tell your database name)
(Project2 is a database name)

Integrates security=true (it tell you that you are login in the sql server with window authentication)

Note: if you login with Sql server authentication then you have to give here id and password instead of integrated security =true as given below:
User Id=sandeep;
Password=soni;

The output screen will you see as given below:
I hope this post will help you..
Still, If you've query regarding to this article then please post your comment .your post will be appropriate .



55 comments:

Ԝhat's up tto eνery body, it's my first pay a quick visit оf this weblog; thiѕ weblog consists ߋf amazing
ɑnd genuinely goօd stuff fօr readers.

My web рage; Im

I am sure this paragraph has touched all the internet viewers, its really really pleasant paragraph
on building up new blog.

Arr�tez mon page web ... xbox Live gold gratuit generateur

What's up colleagues, good paragraph and pleasant urging
commented here, I am genuinely enjoying by these.


my website at&t my account ()

Hi to every body, it's mmy first pay a quick visit off this web site; thiis websitye includes amazingg and truly
excellen stuff for visitors.

my weblog boost mobile trade in; ,

I am really impressed with your writing skills as well as with the layout on your weblog.
Is this a paid theme or did you modify itt yourself?
Anyway keep up the excellent quality writing, it is rare to see a great blog like this one these
days.

my webpage: motorola moto g boost mobile ()

I am truly glad to glance at this webllog posts which consists of plenty
of valuhable information, thanks for providing these kinds of statistics.


Feel free to surf to mmy weblog ... floash my droid x boost mobile ()

Hello, yes this paragraph is in fact nice and I have learned
lot of things from it concerning blogging. thanks.

Here is mmy web-site ... boost mobile cell phones []

Excellent, what a website it is! This website presents helpful facts to us, keep it up.



my web pagge :: kmart at&t phones

Hello just wanted to give you a quick heads up. The words
in your article seem to be running off the screen in Opera.
I'm not sure if this is a formatting issue or something to
do with internet browser compatibility but I figured
I'd post to let you know. The style and design look great though!

Hope you get the issue resolved soon. Many thanks

Here is my webpage sega games online

of clurse like your web-site however you need to cgeck tthe spelling on several of your posts.
Many oof them are rrife with spelling issues and I find it very botbersome to tell the reality howeve
I will surely come again again.

My blog post; at&t 95823 [http://stefancarmack.wordpress.com]

Please let me know if you're looking for a rticle writer foor your site.
You have some reakly good posts and I think I would be a good asset.

If you ever want to take some of the load off,
I'd really lijke to write some articles for your blog in exchange for a link back to mine.
Please blast me aan email if interested. Kudos!

Have a look at my blog how to at&t battery

Asking questions are actualoy fastidious thing if you are not unserstanding anythjng completely, except this
piece of writing provides fastidious understanding yet.


Review my site ... verizon unlock code []

Hey! Someone in my Myspace group shared this website with us so I came to take a look.
I'm definitely loving the information. I'm bookmarking and
will be tweeting this to my followers! Great blog and fantastic design and style.


Also visit my web blog king of fighters game

Hmm it looks like your blog ate my first comment (it was extremely long) so
I gueess I'll just sum it up what I had written and say, I'm thoroughly enjoying your blog.

I as wll am an aswpiring bllog blogger but I'm still nnew to
the whole thing. Do you have any tips for ookie blog writers?
I'd definitely appreciate it.

Also visit my weblog at&T Buyback

If some one wants expert view concerning blogging after
that i suggest him/her to pay a quick visit this weblog, Keep uup thhe
pleasant work.

Feel free to visit my page boost mobile 50$ unlimited plan Reviews

Hey! This is my first comment here so I just wanted to give a quick
shout outt and tell you I genuinely enjoy reading through our posts.
Can you recommend any other blogs/websites/forums that deal with the ssame topics?
Thanks for your time!

Here is my homepage; boost mobile lg optimus f7 revikew ()

I think that is among the such a lot vital info
for me. And i am happy reading your article. But want to
remark on few common things, The ste style is great, the articles is in reality nice : D.
Excellent activity, cheers

Feel free to surf tto my site; at&t plans

Hi! I've been reading yoour site for a while now and finally got the bravery to go ahead and give yoou a shout
out from Humble Tx! Just wanted tto mention keep up the excellent work!


Stop bby my site; boost mobile 4g ltte phones ()

I was extremely pleased to uncover this page.
I need to to thank you for ones time for this particularly wonderful read!!
I definitely appreciated every little bit of it and i also have you saved to fav to see new things oon your web site.


Here is my site: boost mobile 50 dollar unlimited plan []

Howdy, i read your blog from time to time and i own a simmilar one and i was just
wondering if you get a lot of spam comments? If so how do you protect against it,
any plkugin or anything you can recommend? I
get so much lately it's driving me insane so any upport is very much appreciated.



Also visit my web-site :: booswt mkbile 85015 ()

What you said made a bunch of sense. But, think about this,
what if you added a little information? I am not suggesting your content isn't good, however
what if you added a title to possibly grab a person's attention?
I mean "SqlConnection in Ado.Net" is kiknda boring.

You could look at Yahoo's home page and see how they create article headlines to get viewers to open the links.

You might add a video or a related picture or two to get readers interested about everything've written.
In my opinion, it could make your blog a lirtle bit more interesting.



my site - verizon flint mmi ()

Wonderful post however I was wanting to know if you could write a litte more on this topic?
I'd be very grateful if you could elaborate a little bit
further. Cheers!

Here is my blog post - Free Street Fighter IV Ultra

Asking questions are truly good thing if you are not understanding anything
completely, except this paragraph offers gold understandung yet.


My homepage verizon customer service number (http://foothillsustainability.org/)

Hi! I know this is kind of off topic bbut I
was wondering if you knew where I could locate a cazptcha plugin for my comment form?
I'm using the swme blog platform as yours
and I'm hazving difficulty finding one? Thanks a lot!


Stop by my webpage :: at&t moto g review []

I would like to thank you for the efforts you have put in writing
this website. I really hope to check out the same high-grade blog posts from you in the future as well.
In fact, our creative writing abilities has encouraged me to get my own blog now ;)

Feel free to suyrf to my webpage ... at&t no service ()

If soime one desires expert view about blogging and site-building
afterward i suggest him/her to go to see this web site, Keep
up the nice work.

Check out my web blog :: at&t 7320 stoney island

If you want too increase your knowledge jjust keep visiting this site and bee
updated with thee most up-to-date gossip posted here.


Feel free to surf to my web-site: boost mobile 95th ashland

It's going to be ending of mine day, but before finisah I am reading this enormous paragraph too increase my knowledge.


Also visit my blog: boost mobile yelp -,

Hello, this weekend iis pleasant ffor me, as this timee i am reading this impressive educational post here at my home.


My website :: htc one s boost mobile

At this moment I am ready to do my breakfast, once having
myy breakfast coming yet again to read otherr news.

my web blog: at&t 3g speed increase; ,

I do accept aas truee with all of the ideas you've
preseted to your post. They're very convincig and will certainly work.
Still, the posts are very short for beginners. May you please
lengthen them a bitt from subsequent time? Thabk you
ffor the post.

My site - at&t el paso tx

Wonderful, what a web site it is! This weblog provides valuable facts to us, keep it up.


Also visit my web-site :: boost mobile network

I appreciate, result in I found just what I used to be taking a look for.

You have ended my four day lengthy hunt! God Bless yyou man. Have a nice day.
Bye

Also visit mmy website :: at&t 32808 [http://thread1374120283.zendesk.com/entries/52985084-In-2005-Robin-Kay-Levine-s-Brother-Was-Diagnosed-With-Breastcancer-At-The-Age-Of-35-Having-No-Herita]

Asking questions are really good thing if you are nnot understanding
something fully, but this article offers nice understanding even.

Also visit my blog post: verizon 90012 ()

I really like what you guys are up too. This sort oof clever work and reporting!

Keep upp the awesome worrks guys I've included you guys to my
blogroll.

my blog post: iphone 6 boost mobile

A person necessarily lend a hand to make severely articles I'd state.

That is the very first time I frequented your webb page and
thus far? I surprised with the research you made to make this particular publish extraordinary.
Wonderfful activity!

Take a look at my web blog verizon 50$ unlimited plan reviews []

Nice post. I learn something new and challenging on sites I stumbleupon on a
daily basis. It's always helpful to read through content
from other authors annd use a little something from their websites.


Feel free to surf to my web site: boost mobile advertising

I was suggested this website by my cousin. I'm not sure whether
this post is written by him as nobody else know such detailed about my problem.
Youu are amazing! Thanks!

Feel free to surf to my weblog: htc one v at&t ()

I have too thank you for the efforts you have put in writing this website.
I am hopingg tto view the swme high-grade content from you later
on as well. In truth, your creative writing abilities has motivated me to gett my very own wbsite now ;)

my web site - how to at&t battery, ,

Greetings! Very helpful advice in this particular post!

It's the little changes which will make the most significant changes.

Thanis a lot for sharing!

Also visit my blog post; boost mobile data not working ()

WOW just whzt I was looking for. Came here bby searching for verizon lg

Here is my webpage verizon max review - ,

Its such as you read my thoughts! You appear to understand so
much approximately this, like youu wrote the guide
in it or something. I think that you just could do with some percent
to power the message house a little bit, however instead off that, that
is wonderful blog. A fantastic read. I will certainly be back.



Have a look at my web site boost mobile 77022

Hi! I've been reading your weblog for a while now and finally got the bravery
to go ahead and give you a shouht out from Lubbock Texas! Just wanted to mention keep up
the good job!

Feeel free to visit my web site :: can u Pay at&T online

Asking questons arre genuinely good tuing if you are
not undertanding something totally, however this paragraph offers good understanding even.

My blog post ... at&t 90012

What's up i am kavin, its my first time to commenting anywhere, when i read this post i thought i could also
create comment ddue to this good paragraph.

Here is my blog post :: note 2 at&t

I think this is one of the most important info for me. And
i'm glad reading your article. But wsnt to remark on some general things, The web site style
is ideal, the articles is really excellent : D. Good job, cheers

my web page verizzon c - -

I bloog often and I seriously thank you for your content.
Your article has really peaked my interest. I'm going to book mark your website and keep checking ffor new details about once a week.
I subscribed to your RSS feed too.

Loook at my blog post; boost mobile 50 plan

It's enormous that you are gettiong thoughts frim this paragraph as well as from our dialogue madfe at this place.


My blog post ... verizon 86th street ()

This information is invaluable. Where can I find out more?


Look at my site: verizon quinlan tx

I'm really inspired with your writing skills and also with the format to your weblog.
Is that this a paid themne or did you modify it your self?
Anyway stay up the excellent quality writing,
it is uncommon to see a great blog like this oone today..


My web site :: verizon jobs iin phoenix az []

Howdy just wanted to give you a brief heads uup and let you know a ffew
of the pictures aren't loading properly. I'm not sure
why but I think its a linking issue. I've tried it in two different internet browsers and both show thee same results.


my webpage at&t vs metro pcs ()

Please let me know if you're looking for a author for your weblog.
You have some really great posts and I think I would be a good asset.
If you ever want to take some of the load off, I'd love to write some articles for your blog in exchange for a link back to mine.

Please blast me an e-mail if interested. Cheers!

Feeel free to surf to my page: boost mobile bring your own phone

Generally I don't read post on blogs, bbut I wish to say that thiks write-up very pressured me to take a look at and doo so!
Your writing taste has been amazed me. Thanks,
quite great post.

Here is my homepaqge :: O q é Verizon

I believe everything said made a lot of sense. However, think on this, what if youu
typed a catchhier post title? I mean, I don't wish to tell you how to run you blog, bbut shppose you added
a headline to possibly get folk's attention? I mean "SqlConnection in Ado.Net" is a
little plain. You could look at Yahoo's home page and
watch how they create news headlines to get people to click.
You might try adding a video or a pic or two to grab readers excited
about what you've got to say. Just my opinion, it would
bring your posts a little bit more interesting.

Alsso visit my web-site verizon sales portal []

It's awesome to go too see this websire and reading
the views of all mates regarding this paragraph, while I
am also keen of getting experience.

Also visit my webpage :: samsung galaxy rush at&t unboxing

Post a Comment

Hey thanax alot to comment i will revert you back soon...

Share

Twitter Delicious Facebook Digg Stumbleupon Favorites