Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. Database query language

Database query language

Scheduled Pinned Locked Moved Database
csharpdatabasequestionlinqregex
7 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W Offline
    W Offline
    wjbjnr
    wrote on last edited by
    #1

    Hi there...i am recently going to start work on databases in which i will have to insert,delete,log,update,match entries.. the language in general i will use c#...my question is..what query lanquage is the easier and convinient way to do these? Ado.net or LINq....which one i should learn first ?? and which one is easy?...please guide!

    K P W 3 Replies Last reply
    0
    • W wjbjnr

      Hi there...i am recently going to start work on databases in which i will have to insert,delete,log,update,match entries.. the language in general i will use c#...my question is..what query lanquage is the easier and convinient way to do these? Ado.net or LINq....which one i should learn first ?? and which one is easy?...please guide!

      K Offline
      K Offline
      Keith Barrow
      wrote on last edited by
      #2

      I'd learn them in this order: SQL: Can use on pretty much any modern DB system. ADO.NET: Relies on SQL at the bottom so a working knowledge if that is important LINQ: Although it as abstracted away, it uses ADO at the bottom and has many similarities to SQL, and sometimes/often you need to write raw SQL. But I'd use them in the following order of preference: LINQ + SQL --> ADO + SQL. Personally I rarely feel the need for plain ADO any more (DataSets = X|), but I do find it useful to know how they all work.

      Sort of a cross between Lawrence of Arabia and Dilbert.[^]
      -Or-
      A Dead ringer for Kate Winslett[^]

      1 Reply Last reply
      0
      • W wjbjnr

        Hi there...i am recently going to start work on databases in which i will have to insert,delete,log,update,match entries.. the language in general i will use c#...my question is..what query lanquage is the easier and convinient way to do these? Ado.net or LINq....which one i should learn first ?? and which one is easy?...please guide!

        P Offline
        P Offline
        PIEBALDconsult
        wrote on last edited by
        #3

        Linq will only work with Microsoft technologies -- pretty much just .net and SQL Server -- so it may stunt your growth. SQL is a more general solution and once you know it you can use it with a number of database systems and access methods, e.g. ADO.net, ODBC, embedded. As to ADO.net, I recommend encapsulating it into a framework that you can easily understand and use. Of course, you'd be even better off mastering everything. :-D

        W V 2 Replies Last reply
        0
        • P PIEBALDconsult

          Linq will only work with Microsoft technologies -- pretty much just .net and SQL Server -- so it may stunt your growth. SQL is a more general solution and once you know it you can use it with a number of database systems and access methods, e.g. ADO.net, ODBC, embedded. As to ADO.net, I recommend encapsulating it into a framework that you can easily understand and use. Of course, you'd be even better off mastering everything. :-D

          W Offline
          W Offline
          wjbjnr
          wrote on last edited by
          #4

          yeah i know it has limitations..infact i was asking in short term period working with sql server and c#...so only in that context would first learning Linq be ok?..at the moment just have to work on a simple database.

          P 1 Reply Last reply
          0
          • W wjbjnr

            yeah i know it has limitations..infact i was asking in short term period working with sql server and c#...so only in that context would first learning Linq be ok?..at the moment just have to work on a simple database.

            P Offline
            P Offline
            PIEBALDconsult
            wrote on last edited by
            #5

            I wouldn't use it for a enterprise application, but that's just me.

            1 Reply Last reply
            0
            • P PIEBALDconsult

              Linq will only work with Microsoft technologies -- pretty much just .net and SQL Server -- so it may stunt your growth. SQL is a more general solution and once you know it you can use it with a number of database systems and access methods, e.g. ADO.net, ODBC, embedded. As to ADO.net, I recommend encapsulating it into a framework that you can easily understand and use. Of course, you'd be even better off mastering everything. :-D

              V Offline
              V Offline
              V 0
              wrote on last edited by
              #6

              PIEBALDconsult wrote:

              Linq will only work with Microsoft technologies -- pretty much just .net and SQL Server

              Not really, LINQ has three main parts: 1: LINQ to SQL 2: LINQ to Objects 3: LINQ to XML (yes, there are more 'flavors') both LINQ to Objects and LINQ to XML can still be used and quite powerful while not connecting to SQL-Server. (it does more or less imply that you stay in .Net though)

              V.

              1 Reply Last reply
              0
              • W wjbjnr

                Hi there...i am recently going to start work on databases in which i will have to insert,delete,log,update,match entries.. the language in general i will use c#...my question is..what query lanquage is the easier and convinient way to do these? Ado.net or LINq....which one i should learn first ?? and which one is easy?...please guide!

                W Offline
                W Offline
                Wendelius
                wrote on last edited by
                #7

                As already said, basics of SQL should be learned first. But when you start to go deeper, have a look at these excellent books: Amazon's Complete Selection of Joe Celko Books[^]

                The need to optimize rises from a bad design.My articles[^]

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups