473,406 Members | 2,345 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

how to connect data base in vb.net

hi every

am trying to connect data base in vb.net but am unable to connect. As per the book am following that says to connect to data base go to tools menu connect to data base option. u will get data link property . But am not getting that . Am getting add connection from which i can able to select the data base like oracle or sql but not able to move further. When i click test button. your test connection is fail. am not able to get data adapter in the tool bod only then i can connect to data base. plz help in connecting data base.
Apr 12 '07 #1
3 2622
Plater
7,872 Expert 4TB
Be sure to get the address or location of the sql database correctly
Sometimes MSSQL won't be sitting at "localhost" it will be "localhost/someotherword".
Apr 12 '07 #2
dont oflow wizard method.

try coding .it is worthwhile. ofllow any standard books on .NET or
MSDN help .
Apr 14 '07 #3
klaydze
30
what data base you are using? is it sql server or oledb or ms access? try this line of code in connecting your database.

USING SQL SERVER

dim con as new sqlconnection(Server="localhost"; Database="your dbase" User ID="sa"; pwd=")

USING OLEDB

dim con as new OLEDB.OLEDBCONNECTION("Provider=Microsoft.Jet.OLED B.4.0; Data Source="your dbase.mdb")
NOTE: make sure your database is in the bin folder of your program.

if there is a problem post it asap.
Apr 18 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: joejadick | last post by:
I have an application that uses IBM DB2 Universal Data Base Version 8.2 to update DB2 tables on a RS/6000 platform. I would like to change it to update DB2 tables on an IBM Mainframe using DB2...
5
by: mayamorning123 | last post by:
A comparison among six VSS remote tools including SourceOffSite , SourceAnyWhere, VSS Connect, SourceXT, VSS Remoting, VSS.NET To view the full article, please visit...
2
by: DarekB. | last post by:
Elo, or other "non server" data base. 4ex. dBase Do U know how to do it??? I've MsVS.NET, i'm tring create OLE Db connection, and recive info that: Invalid property value: ..Net does not...
7
by: Lian | last post by:
Hi every body I have a problem with accesses and visual studio. I've just installed XP and I can't get a connection with the Data base. I have this error and I don't know how to fix it The...
3
by: Jassim Rahma | last post by:
I would like to know what is the best way to onnect to connect to a database in general which provides you with full functionality & fast access? Best Regards, Jassim Rahma *** Sent via...
3
by: asemeiks | last post by:
I'm using Access 97, Jet 4.0. the data resides on a Win 2000 domain server. Using .Net 1.1 and IIS 5.0 on a local XPPro computer I am trying connect to a Jet database on the server. If the data...
1
by: perjorgen | last post by:
Hi, My asp.net can't connect to any sql database when running 1.1 I can connect to databases if I make a windows application and if if I run asp.net 2.0 Other computers have no problem...
6
by: Al G | last post by:
Can someone tell me what I need to get connected to our AS400? I am trying to write an app in VS2005(Data source, Gridview) that requires data from files on our AS400. I've downloaded DB2, and...
1
by: anil samal | last post by:
Dear sir i want codeing of how to connect with c and c++ in data base 1 what is difference between dopost and doget method
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.