| | |
connection problems with vb.net and sql server
Please support our VB.NET advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Jul 2008
Posts: 1
Reputation:
Solved Threads: 0
hi guys,
im having problems connecting to my database using vb.net and sql server 2k5. below is the code im currently using and it is having problems. please help me solve this problem. Thanks
adapter.connection = conn is the one having problems
the problem is connection is not a member of system.data.sqlclient.sqldataadapter
im having problems connecting to my database using vb.net and sql server 2k5. below is the code im currently using and it is having problems. please help me solve this problem. Thanks
adapter.connection = conn is the one having problems
the problem is connection is not a member of system.data.sqlclient.sqldataadapter
vb.net Syntax (Toggle Plain Text)
Imports System.Data Imports System.data.SqlClient Public Class search Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim adapter As New SqlDataAdapter adapter.Connection = conn adapter.SelectCommand = New SqlCommand("Select * PPCC_CD.dbo.save_details") Dim result As DataSet Try adapter.Fill(result) MessageBox.Show(result.Tables(0).Rows(0).Item(0).ToString) Catch ex As Exception MessageBox.Show("Error: Sql Select statement failed!") End Try End Sub End Class
Last edited by Narue; Jul 11th, 2008 at 4:12 pm. Reason: Added code tags
![]() |
Similar Threads
- Updated : Simple ASP.Net Login Page (ASP.NET)
- external database connection (MySQL)
- Developing SQL Server 2000 (MS SQL)
- rundll32.exe problems (Viruses, Spyware and other Nasties)
- Problems with LinkMaker Adware; "Server busy" pop ups and more (Viruses, Spyware and other Nasties)
- Saving information from .NET Listbox into SQL Server 2000 (ASP.NET)
- Having Problems with Windows XP (Viruses, Spyware and other Nasties)
- i need help (VB.NET)
- Simple ASP.Net Login Page (Using VB.Net) (ASP.NET)
- Microsoft .NET FAQ (ASP.NET)
Other Threads in the VB.NET Forum
- Previous Thread: CHM model program using VB.Net[2005]
- Next Thread: Error Parsing Query in Token Line ...
| Thread Tools | Search this Thread |
Tag cloud for VB.NET
"crystal .net .net2005 30minutes 2008 access application arithmetic array assignment basic binary box button buttons center code combobox component connectionstring convert cpu data database databasesearch datagrid datagridview design dissertation dissertations dissertationthesis dll dosconsolevb.net editvb.net employees error excel firewall folder image images isnumericfuntioncall listview login math memory mobile ms mssqlbackend mysql navigate net opacity pan peertopeervideostreaming picturebox picturebox1 plugin port print printing printpreview problem problemwithinstallation project record reports" reuse save savedialog serial server sorting sql storedprocedure string structures studio temp textbox timer updown upload useraccounts usercontrol vb vb.net vb.netcode vb.nettoolboxvisualbasic2008sidebar vb2008 vbnet view vista visual visualbasic visualbasic.net visualstudio visualstudio2008 web wpf





