Results 1 to 7 of 7

Thread: Connect to MS SQL 2000

  1. #1

    Thread Starter
    Fanatic Member daimous's Avatar
    Join Date
    Aug 2005
    Posts
    657

    Connect to MS SQL 2000

    hi! can anybody please help me on how to connect to MS SQL 2000 DB? can you please give me an example..or just give me a link for a tutorials? thanks in advanace!

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Connect to MS SQL 2000

    There are numerous tutorials in my signature. The ADO.NET tutes use VB code examples but you can use one of the code converters in my sig if you like. All the principles are exactly the same in C#. You may also like to visit www.connectionstrings.com to get the appropriate format for the connection string.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Fanatic Member daimous's Avatar
    Join Date
    Aug 2005
    Posts
    657

    Re: Connect to MS SQL 2000

    ah ok...thanks for that..but can i have more inputs..thanks!

  4. #4
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Connect to MS SQL 2000

    You mean can someone give you the code to do it? Connecting to a database is simple:
    Code:
    System.Data.SqlClient.SqlConnection myConnection = new System.Data.SqlClient.SqlConnection("connection string here");
    
    myConnection.Open();
    To do anything useful with that connection you need to understand at least the basics of ADO.NET and SQL. There are tutorials in my signature on those topics.
    Last edited by jmcilhinney; Jun 27th, 2006 at 10:56 PM.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  5. #5

    Thread Starter
    Fanatic Member daimous's Avatar
    Join Date
    Aug 2005
    Posts
    657

    Re: Connect to MS SQL 2000

    not actually the code...something that my mind, my mouth and my fingers can work with

  6. #6
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Connect to MS SQL 2000

    Quote Originally Posted by daimous
    not actually the code...something that my mind, my mouth and my fingers can work with
    Beyond what jmcilhinney has already provided, plus the links in his signature, I'm not sure what else you might be after.

  7. #7

    Thread Starter
    Fanatic Member daimous's Avatar
    Join Date
    Aug 2005
    Posts
    657

    Re: Connect to MS SQL 2000

    ok thanks!!

Posting Permissions

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



Click Here to Expand Forum to Full Width