Skip to content

SQL Server 2000 & asp.net2.0

Rekha S C

Asked Jun 9, 2008, 10:57 PM EDT5 answers
Share
LinkedInX

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...

5 Answers

Know the answer? Post it. Somebody with the same question will find it here.

  • Niradhip Chakraborty
    0
    Yes it is possible.You can use any one of those with vs2005.
    0
  • 0

    how to connect the database ... using c#.net 2.0 and sql server2000

    0
  • Niradhip Chakraborty
    0

    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;"/>

    0
  • 0

    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...

    Code
    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

    0
  • Niradhip Chakraborty
    0

    It should not be as datagrid1.bind();
    It should be as datagrid1.DataBind();

    Search for DataBind(),instead of Bind().

    0