Click here to Skip to main content
15,917,329 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: How to RESTful design or getting two tables in one JSON object Pin
jschell9-Dec-13 15:14
jschell9-Dec-13 15:14 
Questionlocate the FILESTREAM data Pin
Member 103249742-Dec-13 23:24
Member 103249742-Dec-13 23:24 
AnswerRe: locate the FILESTREAM data Pin
Richard MacCutchan3-Dec-13 2:31
mveRichard MacCutchan3-Dec-13 2:31 
GeneralRe: locate the FILESTREAM data Pin
Member 103249743-Dec-13 2:40
Member 103249743-Dec-13 2:40 
GeneralRe: locate the FILESTREAM data Pin
Pete O'Hanlon3-Dec-13 2:42
mvePete O'Hanlon3-Dec-13 2:42 
GeneralRe: locate the FILESTREAM data Pin
Member 103249743-Dec-13 2:49
Member 103249743-Dec-13 2:49 
GeneralRe: locate the FILESTREAM data Pin
Richard MacCutchan3-Dec-13 2:59
mveRichard MacCutchan3-Dec-13 2:59 
GeneralRe: locate the FILESTREAM data Pin
Member 103249743-Dec-13 3:09
Member 103249743-Dec-13 3:09 
GeneralRe: locate the FILESTREAM data Pin
Richard MacCutchan3-Dec-13 3:13
mveRichard MacCutchan3-Dec-13 3:13 
AnswerRe: locate the FILESTREAM data Pin
RedDk3-Dec-13 10:35
RedDk3-Dec-13 10:35 
GeneralRe: locate the FILESTREAM data Pin
Pete O'Hanlon3-Dec-13 10:49
mvePete O'Hanlon3-Dec-13 10:49 
GeneralRe: locate the FILESTREAM data Pin
RedDk3-Dec-13 11:07
RedDk3-Dec-13 11:07 
GeneralRe: locate the FILESTREAM data Pin
Dave Kreskowiak3-Dec-13 15:01
mveDave Kreskowiak3-Dec-13 15:01 
GeneralRe: locate the FILESTREAM data Pin
Pete O'Hanlon3-Dec-13 19:18
mvePete O'Hanlon3-Dec-13 19:18 
GeneralRe: locate the FILESTREAM data Pin
Member 103249743-Dec-13 23:16
Member 103249743-Dec-13 23:16 
QuestionAccess to SQL Pin
Member 103884942-Dec-13 1:04
Member 103884942-Dec-13 1:04 
AnswerRe: Access to SQL Pin
Simon_Whale2-Dec-13 1:09
Simon_Whale2-Dec-13 1:09 
GeneralRe: Access to SQL Pin
Member 103884942-Dec-13 1:12
Member 103884942-Dec-13 1:12 
GeneralRe: Access to SQL Pin
Member 103884942-Dec-13 1:21
Member 103884942-Dec-13 1:21 
I started by doing this:
VB
imports system.data.sqlClient
Public Sub Form1
    Dim _DataAdapter As New SqlDataAdapter
    Dim _CommandBuilder As SqlCommandBuilder
    Dim _DataSet As New DataSet

    Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Dim _cnstring As String = "Data Source=Eliane-VAIO\SQLEXPRESS;Initial catalog=ADOnet;Integrated Security=True;"
        Dim _cn As New SqlConnection(_cnstring)
        Dim _cmd As New SqlCommand("select * from tblCutomer", _cn)
        _cn.Open()
        Dim reader As SqlDataReader = _cmd.ExecuteReader()
        Try
            _DataAdapter.Fill(_DataSet)
        Catch eror As Exception
            MsgBox(eror.Message)
        End Try
    End Sub

But i am feeling a bit lost. And an error occurs:
the select command property has not been initialized before calling "Fill".
GeneralRe: Access to SQL Pin
Simon_Whale2-Dec-13 1:27
Simon_Whale2-Dec-13 1:27 
GeneralRe: Access to SQL Pin
Member 103884942-Dec-13 2:15
Member 103884942-Dec-13 2:15 
GeneralRe: Access to SQL Pin
Simon_Whale2-Dec-13 3:04
Simon_Whale2-Dec-13 3:04 
GeneralRe: Access to SQL Pin
Member 103884942-Dec-13 3:06
Member 103884942-Dec-13 3:06 
GeneralRe: Access to SQL. Pin
Member 103884942-Dec-13 2:19
Member 103884942-Dec-13 2:19 
GeneralRe: Access to SQL. Pin
Dave Kreskowiak2-Dec-13 2:47
mveDave Kreskowiak2-Dec-13 2:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.