#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2007
    Posts
    99
    Rep Power
    8

    What are the C# equivalent data types to Sql's varchar and datetime


    I have varchar and datetime in a Sql database and I can't figure out what kind of datatypes to use when coding the sql statements in a C# application. Can anyone recommend anything? I tried using 'char' but it says that it can't convert from system.string to system.char...
  2. #2
  3. No Profile Picture
    Closet coder
    Devshed Beginner (1000 - 1499 posts)

    Join Date
    Feb 2005
    Location
    Plantation, FL <---south florida
    Posts
    1,431
    Rep Power
    153
    System.DateTime and System.String would be your equivalents. how are you coding the sql statements? are you just using sstring like

    str_sql = "select * from persons"

    or are you using somethihng like a SqlCommand object and adding parameters?
  4. #3
  5. No Profile Picture
    Permanently Banned
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2012
    Posts
    5
    Rep Power
    0
    Use Graphical filters in columns.This feature enables the programmer to implement any graphical filter that can be used for interactive data filtering. Any graphical control placed in drop down box can be used as a filter.
    dapfor.com/en/net-suite/net-grid/tutorial/threadsafe-bindinglist

IMN logo majestic logo threadwatch logo seochat tools logo