.NET Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 



Go Back   Dev Articles Community ForumsProgramming.NET Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old August 14th, 2007, 12:39 AM
bhv bhv is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2006
Posts: 55 bhv User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 16 h 25 m 19 sec
Reputation Power: 12
C# .Net and SQL Server 2000 Connectivity

hello everybody,

i am new to C# .Net and SQL Server 2000. i am developing my first project with these . i need help regarding the connectivity of C# .Net and SQL Server 2000. pl. help

thanks

Reply With Quote
  #2  
Old August 22nd, 2007, 02:17 AM
cressuresh cressuresh is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2007
Posts: 1 cressuresh User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 37 m 31 sec
Reputation Power: 0
Hi,


Define the Namespace in the top of the form.

using System.Data;
using System.Data.SqlClient;


In the Form Load Events,

string constr="";

constr = "Data Source=DOTNETPC042\SQLEXPRESS;Initial Catalog=master;Integrated Security=True";

//Pass the Connection string to the SqlConnection
SqlConnection con = new SqlConnection(constr);
con.open(); //Open the Connection



Regards,
S.Suresh

Reply With Quote
  #3  
Old June 3rd, 2010, 03:14 AM
SNK111 SNK111 is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2010
Posts: 14 SNK111 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 4 m 30 sec
Reputation Power: 0
HOW TO: SQL & C#

Check this article HOW TO: SQL & C# for details on how to connect to SQL Server database from C#.NET database applications as well as Java database applications. It also describes how to pass embedded SQL queries, calling stored procedures, pass parameters etc.

Shahriar Nour Khondokar

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgramming.NET Development > C# .Net and SQL Server 2000 Connectivity


Developer Shed Advertisers and Affiliates


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.

© 2003-2018 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap