we are using sql server 2005 in visual studio 2005...... i just want to know that ..is this possible to use sql server2000 in vs 2005...
SQL Server 2000 & asp.net2.0
5 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Niradhip ChakrabortyRank #428 · 5.8K pointsPosted Jun 9, 2008, 11:11 PM EDT
Rekha S C3 pointsPosted Jun 10, 2008, 1:55 AM EDT
how to connect the database ... using c#.net 2.0 and sql server2000
Niradhip ChakrabortyRank #428 · 5.8K pointsPosted Jun 10, 2008, 2:06 AM EDT
Its simple just specify the connectionstring in web.config.
Below is my connection string with sql server 2000 database:
<add key="ConnectionString" value="Server=pc9;User ID=sa;Password=sa;database=TradeNew;Max Pool Size=60;Connect Timeout=3000;"/>
Below is my connection string with sql server 2005 database:
<add key="ConnectionString" value="Server=pc9\sqlexpress;User ID=sa;Password=sasa;database=TradNew;Max Pool Size=60;Connect Timeout=3000;"/>
Rekha S C3 pointsPosted Jun 10, 2008, 2:52 AM EDT
hi,
i am new to this .net....... i want some info about .net
we use below code to show the contents of databse in datagrid using .net1.1...
but in .net 2.0 bind() fun is not present then how to show the contents of table in datagrid
thanx in advance
Niradhip ChakrabortyRank #428 · 5.8K pointsPosted Jun 10, 2008, 3:00 AM EDT
It should not be as datagrid1.bind();
It should be as datagrid1.DataBind();
Search for DataBind(),instead of Bind().