how can i connect asp.net to mssql and show results in variables ?

Discussion in 'C#' started by ramysarwat, Apr 13, 2010.

  1. #1
    how can i connect asp.net to mssql and show results in variables ?
     
    ramysarwat, Apr 13, 2010 IP
  2. ccoonen

    ccoonen Well-Known Member

    Messages:
    1,606
    Likes Received:
    71
    Best Answers:
    0
    Trophy Points:
    160
    #2
    Using Visual Studio - get your datasource setup, throw a datagrid in, and bind the datasource to the datagrid.
     
    ccoonen, Apr 15, 2010 IP
  3. bibinsmk

    bibinsmk Active Member

    Messages:
    205
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #3
    You can download Mysql connector from mysql site. Using this you can connect to MYSQL same as MSSQL.
     
    bibinsmk, Apr 16, 2010 IP
  4. lazystream

    lazystream Peon

    Messages:
    25
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    i like to use the linq "datacontext"

    [Table(Name = "MemberTable")]
    public class MemberTable
    {
    }
    var variable = new System.Data.Linq.DataContext(DBCONNECTION).GetTable<MemberTable>();
     
    lazystream, Apr 16, 2010 IP