Search : in
By :

Database connectivity with sql server 2005

Last answer on Oct 7, 2009 6:31:08 am BST Digvijaysinh, on Feb 5, 2009 8:51:19 am GMT 
 Report this message to moderators

Hello,
Hii freiends,
i just want to know how to make the database connectivity with sql server 2005
in c# and asp.net website?
please help me, thanx in advance.

Configuration: Windows XP
Firefox 2.0.0.20

1

smallcopain, on Feb 5, 2009 10:20:14 am GMT
  • +11

Hi,
try this link to get much information about the topic:
www.microsoft.com/sqlserver/2005/en/us/java-database-connect­ivity.aspx

Reply to smallcopain

2

hashim, on Mar 9, 2009 4:27:50 am GMT
  • +19

I want to know the full process of creating database connectitivity with sql server and asp.net 2005

Reply to hashim

3

Expert, on Jun 18, 2009 7:20:30 pm BST
  • +3

Hello All,
If anyone want to take help for free just call +92 312 96 94 100.

Reply to Expert

4

neha_cool786@yahoo.com, on Sep 4, 2009 12:54:25 pm BST
  • +3

--
Naina " redy 2 solve ur prob"


hey i think u shuld use ado.net for connectivity in c# . by this way u can connect database

Reply to neha_cool786@yahoo.com

5

Ammar Afzal, on Sep 4, 2009 3:01:45 pm BST
  • +1

Hello If anyone want help just call at +92 312 96 94 100.
Thanks & Regards.
M. Ammar Afzal.

Reply to Ammar Afzal

6

 deepak, on Oct 7, 2009 6:31:08 am BST
  • +2

Hello friends ,to use sql server as backend.
firstly download the sql server 2005 and sql server management 2005.
when u open sql server management.
u find DATASOURCE NAME.->is already difine
LOGIN ID ->sa(SYSTEM ADMINISTRATION)
PASSWORD->any choose
After all info click on connect option.
Then appear a window ->then click on DATABASE->write down the name of data base->click ok->then a folder is appername has DATABASE name as u give->click on that name->appeasr the table->right click on table option->and creat our table (as u wish)and save the table with suitable information.
After that connectivity with suitable event(click button).
code is use.
try
{

SQLCONNECTION CN=NEW SQLCONNECTION();
connecton string="datasource=PERSONAL;USERID= ;password= ;
cn.open();
string sql="INSERT INTO tablename VALUES("@NAME,@EMAIL,@ADDRESS")";
SQLcommand cmd=new sqlcommand(sql,cn);

cmd.parameter.addwithvalue("name",txtname.text);
cmd.parameter.addwithvalue("email",txtemail.text);
cmd.parameter.addwithvalue("address",txtaddress.text);
cn.close
}
catch(exception s)
{
s.message();
}

Reply to deepak