Feb 24, 2002 #1 tempoman Programmer May 9, 2000 41 AU I am a newbie to Visual Basic .NET and would like to know the code to connect to a access 2000 database. Thank You Richard
I am a newbie to Visual Basic .NET and would like to know the code to connect to a access 2000 database. Thank You Richard
Feb 25, 2002 #2 Diodin Programmer May 8, 2001 29 NL Just make a new Databaseconnection in the server and drag and drop this to your application. Then create a new dataadapter and follow the wizard. Upvote 0 Downvote
Just make a new Databaseconnection in the server and drag and drop this to your application. Then create a new dataadapter and follow the wizard.
Mar 3, 2002 #3 koala15 Programmer May 9, 2001 322 AU OR: To do it manually (rather than use the wizard): Const ConnStrNWind As String = "Provider=Microsoft.Jet.OLEDB.4.0;Password="""";User ID=Admin;Data Source=C:\Program Files\Microsoft Office\Office\Samples\Northwind.mdb;Mode=Share Deny None;Extended Properties="""";Jet OLEDB:System database="""";Jet OLEDB:Registry Path="""";Jet OLEDBatabase Password="""";Jet OLEDB:Engine Type=5;Jet OLEDBatabase Locking Mode=1;Jet OLEDB:Global Partial Bulk Ops=2;Jet OLEDB:Global Bulk Transactions=1;Jet OLEDB:New Database Password="""";Jet OLEDB:Create System Database=False;Jet OLEDB:Encrypt Database=False;Jet OLEDBon't Copy Locale on Compact=False;Jet OLEDB:Compact Without Replica Repair=False;Jet OLEDB:SFP=False" Private Sub OpenNwConnection() NWindConn.ConnectionString = ConnStrNWind NWindConn.Open() End Sub "Life is full of learning, and then there is wisdom" Upvote 0 Downvote
OR: To do it manually (rather than use the wizard): Const ConnStrNWind As String = "Provider=Microsoft.Jet.OLEDB.4.0;Password="""";User ID=Admin;Data Source=C:\Program Files\Microsoft Office\Office\Samples\Northwind.mdb;Mode=Share Deny None;Extended Properties="""";Jet OLEDB:System database="""";Jet OLEDB:Registry Path="""";Jet OLEDBatabase Password="""";Jet OLEDB:Engine Type=5;Jet OLEDBatabase Locking Mode=1;Jet OLEDB:Global Partial Bulk Ops=2;Jet OLEDB:Global Bulk Transactions=1;Jet OLEDB:New Database Password="""";Jet OLEDB:Create System Database=False;Jet OLEDB:Encrypt Database=False;Jet OLEDBon't Copy Locale on Compact=False;Jet OLEDB:Compact Without Replica Repair=False;Jet OLEDB:SFP=False" Private Sub OpenNwConnection() NWindConn.ConnectionString = ConnStrNWind NWindConn.Open() End Sub "Life is full of learning, and then there is wisdom"
Aug 5, 2002 #4 sapbucket Programmer Jun 30, 2002 16 US How do you make a new database connection to the server? I am using SQL Server 7.0 and XP pro with IIS, THanks, Tom Upvote 0 Downvote
How do you make a new database connection to the server? I am using SQL Server 7.0 and XP pro with IIS, THanks, Tom