Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Aug 2008
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Connecting C#.net app to sql

    Hi there im pretty new at this, i was wondering if there is anyone out there who could help me. I need to write a simple app to with dataset to connect to a sql server. Everyone tries to show me how to do it with wizards but i wanna know how to do it the right way with coding. Can anyone point me in the right direction please!!!

  • #2
    Rockstar Coder
    Join Date
    Jun 2002
    Location
    USA
    Posts
    9,074
    Thanks
    1
    Thanked 328 Times in 324 Posts
    Are you referring to Microsoft SQL Server?

    There are objects for connecting to it in the System.Data.Microsoft.SqlServer.Server namespace.
    OracleGuy

  • #3
    New to the CF scene
    Join Date
    Aug 2008
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Hi yes it is microsoft sql server.
    I know about the namspaces what im looking for is code showing me how to connect to a sql database via code. Getting a connection and all the datasets and stuff. I know this is a weird question probably, I have no idead how to connect like this to a database. Would you be ableto give me a sample of code so i can see how it is done, or maybe redirect me to some website where i can read more about it? Thanks

  • #4
    teh Moderatorinator
    Join Date
    Sep 2004
    Location
    USA
    Posts
    2,472
    Thanks
    4
    Thanked 40 Times in 40 Posts

  • Users who have thanked Brandoe85 for this post:

    CodeWalker (08-21-2008)


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •