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
  1. Home
  2. General Programming
  3. Visual Basic
  4. can we create table in SQL server or Ms Access using VB 6.0?

can we create table in SQL server or Ms Access using VB 6.0?

Scheduled Pinned Locked Moved Visual Basic
databasesql-serversysadminquestion
2 Posts 2 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.
  • V Offline
    V Offline
    vijay04
    wrote on last edited by
    #1

    Hi Everyone, I have one query in VB 6.0, My query is " can we create table in SQl Server or Ms Acsess using VB 6.0 ? " If yes then, how ist possible ?

    R 1 Reply Last reply
    0
    • V vijay04

      Hi Everyone, I have one query in VB 6.0, My query is " can we create table in SQl Server or Ms Acsess using VB 6.0 ? " If yes then, how ist possible ?

      R Offline
      R Offline
      Rana Muhammad Javed Khan
      wrote on last edited by
      #2

      Yes, but if the table will already exists you will get an error. you can create table as: Dim cn as new Connection cn.ConnectionString ="Connectionstring" cn.open cn.Execute("CREATE TABLE tNewTable( Field1 Int NOT NULL , Field2 Int NOT NULL )") Regards, Javed -- modified at 0:37 Monday 27th February, 2006

      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