Forum Sementara Putera.com

Would you like to react to this message? Create an account in a few clicks or log in to continue.
Forum Sementara Putera.com

Bersama kita perkemaskan forum ini sementara forum asal dalam pemulihan.

Forum putera dah kembali. Masalah sudah berjaya diselesaikan. Sila lawati http://forum.putera.com/tanya


2 posters

    Cemana ndak buat table kat database dr VB.NET?

    avatar
    sager
    Ahli Baharu
    Ahli Baharu


    Number of posts : 14
    Registration date : 22/04/2009

    Cemana ndak buat table kat database dr VB.NET? Empty Cemana ndak buat table kat database dr VB.NET?

    Post by sager Wed Aug 19, 2009 3:46 pm

    Assalamm....saya ndak bukak table baru dlm database menggunakan VB.NET dan ODBC.tetapi buat masa ni code dia x work.So, sy mintak panduan dan nasihat drpd user yg berpengalaman semua utk menambah baik code saya ini.Saya tertannya kenapa x nampak table baru dalam database postgresql?


    Imports System
    Imports System.Data
    Imports System.Data.Odbc



    Public Class Form1

    Dim thisConnection As New OdbcConnection _
    ("dsn=MyOdbc")
    Dim nonqueryCommand As OdbcCommand = thisConnection.CreateCommand()

    Public sConnection As String = "DSN=PostgreSQL30;UID=tele;PWD=tiny;"
    Public cnDB As New Odbc.OdbcConnection(sConnection)

    Public dsDB As New DataSet
    Public adDB As New Odbc.OdbcDataAdapter


    Private Sub Button1_Click(ByVal sender As System.Object, _
    ByVal e As System.EventArgs) _
    Handles Button1.Click
    nonqueryCommand.CommandText = "CREATE TABLE mytable " & _
    "(MyName VARCHAR (30), MyNumber INTEGER)"
    'Console.WriteLine("Executing {0}", _
    ' nonqueryCommand.CommandText)
    'Console.WriteLine("Number of rows affected : {0}", _
    ' nonqueryCommand.ExecuteNonQuery())
    Try
    cnDB.Open()
    'adDB.SelectCommand = New Odbc.OdbcCommand(" CREATE TABLE sensor_result_test ")

    MsgBox("Connect to Database", MsgBoxStyle.Information, "Success")
    cnDB.Close()
    Catch ex As Exception
    MsgBox("Connection to database Failed", MsgBoxStyle.Critical, "Action Failed")
    End Try


    End Sub

    End Class



    fail dia.

    http://rapidshare.com/files/268975860/BuiltNewtables1.rar.html


    sekian terima kasih.
    avatar
    DevGuy
    Ahli Baharu
    Ahli Baharu


    Number of posts : 90
    Registration date : 16/03/2009

    Cemana ndak buat table kat database dr VB.NET? Empty Re: Cemana ndak buat table kat database dr VB.NET?

    Post by DevGuy Thu Aug 20, 2009 1:14 am

    oo. ok
    apasal guna odbc.odbc ni kira dah 2nd layer dah
    cuba guna .net provider utk postgresql. cuba masuk sini and dload http://npgsql.projects.postgresql.org/

    ok saya dah tgk and tgh ubah sikit
    tapi saya guna .net data provider.
    kasi email nanti aku send balik kat ko.
    ok
    avatar
    sager
    Ahli Baharu
    Ahli Baharu


    Number of posts : 14
    Registration date : 22/04/2009

    Cemana ndak buat table kat database dr VB.NET? Empty Re: Cemana ndak buat table kat database dr VB.NET?

    Post by sager Thu Aug 20, 2009 2:14 pm

    ezalampunk at gmail.com.tq. abang.sy ada try gak npgsql tp xjd.huhu....
    avatar
    DevGuy
    Ahli Baharu
    Ahli Baharu


    Number of posts : 90
    Registration date : 16/03/2009

    Cemana ndak buat table kat database dr VB.NET? Empty Re: Cemana ndak buat table kat database dr VB.NET?

    Post by DevGuy Thu Aug 20, 2009 3:08 pm

    ok aku dah send dah
    cuba ko try tgk and run
    ok adiosaaa
    avatar
    DevGuy
    Ahli Baharu
    Ahli Baharu


    Number of posts : 90
    Registration date : 16/03/2009

    Cemana ndak buat table kat database dr VB.NET? Empty Re: Cemana ndak buat table kat database dr VB.NET?

    Post by DevGuy Thu Aug 20, 2009 3:12 pm

    tipu aaa email tak leh pun reject apadaaa
    betul ker email ni ezalampunk@gmail.com
    avatar
    sager
    Ahli Baharu
    Ahli Baharu


    Number of posts : 14
    Registration date : 22/04/2009

    Cemana ndak buat table kat database dr VB.NET? Empty Re: Cemana ndak buat table kat database dr VB.NET?

    Post by sager Mon Aug 24, 2009 11:55 am

    ezalampunk@gmail.com betul beb.atau antar je kat eza17 at yahoo.com.tq.
    avatar
    sager
    Ahli Baharu
    Ahli Baharu


    Number of posts : 14
    Registration date : 22/04/2009

    Cemana ndak buat table kat database dr VB.NET? Empty Re: Cemana ndak buat table kat database dr VB.NET?

    Post by sager Mon Aug 24, 2009 7:17 pm

    x reti ndak guna npgsql nih.sy ndak guna dlm vb.net jer.minta tunjuk ajar... thanks
    avatar
    DevGuy
    Ahli Baharu
    Ahli Baharu


    Number of posts : 90
    Registration date : 16/03/2009

    Cemana ndak buat table kat database dr VB.NET? Empty Re: Cemana ndak buat table kat database dr VB.NET?

    Post by DevGuy Mon Aug 24, 2009 8:10 pm

    aku dah buatkan dahh
    email mana satu nii
    ko nyerr asyik bound back jerrr
    avatar
    DevGuy
    Ahli Baharu
    Ahli Baharu


    Number of posts : 90
    Registration date : 16/03/2009

    Cemana ndak buat table kat database dr VB.NET? Empty Re: Cemana ndak buat table kat database dr VB.NET?

    Post by DevGuy Mon Aug 24, 2009 8:11 pm

    lg satu apasal la ko guna postgreesql
    guna sql server sudahh express edition jerrr
    avatar
    sager
    Ahli Baharu
    Ahli Baharu


    Number of posts : 14
    Registration date : 22/04/2009

    Cemana ndak buat table kat database dr VB.NET? Empty Re: Cemana ndak buat table kat database dr VB.NET?

    Post by sager Tue Aug 25, 2009 11:10 am

    mana2 email pun boleh incik.hmmm.... antar aja ke eza17 at yahoo.com.Erk, saya ndak try postgresql aja incik.

    Sponsored content


    Cemana ndak buat table kat database dr VB.NET? Empty Re: Cemana ndak buat table kat database dr VB.NET?

    Post by Sponsored content


      Current date/time is Mon Nov 18, 2024 10:46 am