Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. Visual Basic
  4. vb.net

vb.net

Scheduled Pinned Locked Moved Visual Basic
csharpdatabasesysadminhelp
5 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mikeicbt
    wrote on last edited by
    #1

    how to direct from 1form to another form & when i try to connected to Database the following error msg displays "username not found" the code str ="username=hasitha;password=randika;databasemike;server=suntwo"

    hello

    R C B V 4 Replies Last reply
    0
    • M mikeicbt

      how to direct from 1form to another form & when i try to connected to Database the following error msg displays "username not found" the code str ="username=hasitha;password=randika;databasemike;server=suntwo"

      hello

      R Offline
      R Offline
      Rupesh Kumar Swami
      wrote on last edited by
      #2

      how to direct from 1form to another form & when i try to connected to Database the following error msg displays

      "username not found"

      i think you are open particular user detail from form1 and show this detail to another form (form2). you can make a procedure on form2 which take UserID as argument and then basis on this UserID you can write query.call this procedure from Form1 and at this moment if user exist then load form2 otherwise dont transter focus to form2

      the code
      str ="username=hasitha;password=randika;databasemike;server=suntwo"

      what is this ? i think it is connectionstring. Please look at database argument. hope this helps

      Rupesh Kumar Swami Software Engineer, Integrated Solution, Bikaner (India)

      1 Reply Last reply
      0
      • M mikeicbt

        how to direct from 1form to another form & when i try to connected to Database the following error msg displays "username not found" the code str ="username=hasitha;password=randika;databasemike;server=suntwo"

        hello

        C Offline
        C Offline
        Christian Graus
        wrote on last edited by
        #3

        1 - try giving your subject some meaning 2 - try explaining your self a little more. The code you posted means nothing, except that I now know how to hack into your DB. The error does not come from this line, so where does it come from ? 3 - it sounds to me like you're usng online help to work on the edge of your skillset. Try reading through some books, so you understand basics like how to work with more than one form

        Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

        1 Reply Last reply
        0
        • M mikeicbt

          how to direct from 1form to another form & when i try to connected to Database the following error msg displays "username not found" the code str ="username=hasitha;password=randika;databasemike;server=suntwo"

          hello

          B Offline
          B Offline
          Bhaskar Shetty
          wrote on last edited by
          #4

          Error in your connectionstring statement, correct that, see this. server=servername;database=DatabaseName;uid=UserName;pwd=Password. Bhaskar Shetty

          1 Reply Last reply
          0
          • M mikeicbt

            how to direct from 1form to another form & when i try to connected to Database the following error msg displays "username not found" the code str ="username=hasitha;password=randika;databasemike;server=suntwo"

            hello

            V Offline
            V Offline
            Vimalsoft Pty Ltd
            wrote on last edited by
            #5

            hi mikeicbt if you want to learn you have to be Serious, you did not google, you just Posted. i suggest you google first, Buy a intro to VB.net or Programming books, get articles online,the guys are correct you cant try to learn Programming from Scratch here. here is something that might help you. http://www.eggheadcafe.com/community/aspnet/14/10010099/connection-strings.aspx[^]

            Vuyiswa Maseko

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups