Members

Technology Zones

Articles

Hosted By

MaximumASP

Info

[2459] Creating a database connection

Last post 02-21-2007 3:08 AM by grace_qt. 8 replies.
Page 1 of 1 (9 items)
Sort Posts: Previous Next
  • 01-01-1999 12:00 AM

    [2459] Creating a database connection

    This thread is for discussions of Creating a database connection.

    • Post Points: 40
  • 11-29-2002 10:53 AM In reply to

    Data Base Conection

    It´s ok. works good
    • Post Points: 0
  • 04-16-2003 7:21 AM In reply to

    • renjinis
    • Not Ranked
    • Joined on 04-16-2003
    • New Member
    • Points 5

    Request for help

    Sir,
    I am presently engaged in doing networking project in VB.NET and MSAcces.
    I would like to know the connection string
    (Provider=Microsoft.Jet.OLEDB.4.0;Data Source=.......) for connecting to a database in another machine(given its machine name) in  a network while sitting in my own machine(also in the same network). I would be grateful if you help. Expecting your early reply,
    Thank you
    Renjini S
    Please mail me at
    srenjini@sify.com
    • Post Points: 0
  • 05-16-2003 4:15 PM In reply to

    • ceaton
    • Not Ranked
    • Joined on 05-16-2003
    • New Member
    • Points 5

    Data connection with SQL Server

    I keep getting an error when I try and create a new data connection. This is the error I'm getting.

    Unable to connect to database.
    It is only possible to connect to SQL Server Desktop Engine databases and Microsoft Access with this version of Visual Studio.


    I can connect to Access without any problems. Is there anyway around this?
    I'm using VB .net Standard with SQL Server 2000.

    Thanks for any help.
    • Post Points: 0
  • 08-05-2003 4:55 AM In reply to

    • ratnakar
    • Not Ranked
    • Joined on 07-26-2003
    • New Member
    • Points 20

    c# database connection with m.s acesss

    Plz reply me when i ma writing in c# using System.Data.Ado for the database connection with m.s acess then it is giving errror  the type name space ado does not  exist in in the class system.Data.ADO
    what is reason
    plz answer me
    • Post Points: 0
  • 05-08-2005 6:36 AM In reply to

    hi Try this

                                                 string connStr;
               string qryStr;
               OleDbConnection dbConn;
               
                                                    connStr = "Provider=Microsoft.Jet.OLEDB.4.0; " +
               "Data Source=G:\\Backup\\Kashif\\xyzDB.mdb";
               qryStr = "select content,websiteID  from content";
               dbConn = new OleDbConnection(connStr);
                           

    Amir
    • Post Points: 0
  • 04-23-2006 5:52 AM In reply to

    • vnz
    • Not Ranked
    • Joined on 03-27-2006
    • Indonesia
    • New Member
    • Points 45

    Connection to database with password

    Hi..
    I'm trying to connect to an access database that is protected by password. but, it's always says "the database is being opened exclusively by another program" even I don't open other application. Please help me to solve this problem
    • Post Points: 10
  • 02-21-2007 1:32 AM In reply to

    • grace_qt
    • Not Ranked
    • Joined on 02-15-2007
    • New Member
    • Points 50

    Re: Connection to database with password

    Open connection to password protected Access database:
    "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=c:\App1\Your_Database_Name.mdb; Jet OLEDB:Database Password=Your_Password"
    • Post Points: 5
  • 02-21-2007 3:08 AM In reply to

    • grace_qt
    • Not Ranked
    • Joined on 02-15-2007
    • New Member
    • Points 50

    Re: [2459] Creating a database connection

    hi i am trying to connect my vb. net prog tosql can yoi help me on how to do that..
    here is my codes..please tell my the error and what else do i need to put..
    Try





            Dim LintCount As Integer
            Dim resultValue As Boolean
            Dim myreader As SqlDataReader
            Dim conn As New SqlConnection("Datasource = TASDI;" + "userId = test;" + "password = test;")
            Dim myConnection As SqlConnection
            Dim myCommand As SqlCommand
            Dim strsql As String
           '     Call LSubfrmCnlenabled(True)


                myConnection = New SqlConnection("userId=Test;" + "password =Test;" + "datasource=TASDI;")
                establishing connection. you need to provide password for sql server
                myConnection.Open()
                opening the connection
                myCommand = New SqlCommand("Select * from M_EMPLOYEE", myConnection)
            executing the command and assigning it to connection

                myreader = myCommand.ExecuteReader()
                While myreader.Read()


                End While
                myreader.Close()
                myConnection.Close()
            Catch ex As Exception
            End Try



    please reply




























    • Post Points: 5
Page 1 of 1 (9 items)