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...
Loading
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...
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Niradhip ChakrabortyPosted Jun 10, 2008, 7:00 AM
It should not be as datagrid1.bind();
It should be as datagrid1.DataBind();
Search for DataBind(),instead of Bind().
Rekha S CPosted Jun 10, 2008, 6:52 AM
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...
sqlconnection con = new sqlconnection("server=localhost;userid=sa;password=;database=employee.mdf");
sqlcommnd cmd = new sqlcommand("select * from emp);
sqldatareader dr = cmd.executereader;
datagrid1.datasourse=dr;
datagrid1.bind();
but in .net 2.0 bind() fun is not present then how to show the contents of table in datagrid
thanx in advance
Niradhip ChakrabortyPosted Jun 10, 2008, 6:06 AM
Its simple just specify the connectionstring in web.config.
Below is my connection string with sql server 2000 database:
Below is my connection string with sql server 2005 database:
Rekha S CPosted Jun 10, 2008, 5:55 AM
how to connect the database ... using c#.net 2.0 and sql server2000
Niradhip ChakrabortyPosted Jun 10, 2008, 3:11 AM