Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
drvb1989
Starting Member
3 Posts |
Posted - 2006-06-21 : 13:29:21
|
| HIi have 2 computers in my home names PC1,PC2 .i have database sql server 2000 in pc1 named Books , i want to connect to this database from pc2 .note : i am used visual basic.net 2003if any one have books or articales about this subject please i want help quickly |
|
|
tkizer
Almighty SQL Goddess
38200 Posts |
Posted - 2006-06-21 : 14:02:47
|
| You are going to need to purchase a book. Any VB.NET book that deals with ADO should do just fine. But this should get your started:Imports System.Data.SqlClientDim cnSql As New SqlConnectionDim connStr As StringconnStr = "Need to put your connection string here...see www.connectionstrings.com for how to do it"cnSql.ConnectionString = connStrcnSql.Open()'Do something herecnSql.Close()Your question is more related to programming in Visual Basic rather than a specific SQL Server question, so you might want to try a forum that deals with VB.NET such as [url]www.asp.net[/url].Tara Kizeraka tduggan |
 |
|
|
afrika
Master Smack Fu Yak Hacker
2706 Posts |
|
|
drvb1989
Starting Member
3 Posts |
Posted - 2006-06-22 : 09:02:11
|
| thanks alot for reply. |
 |
|
|
|
|
|