Results 1 to 5 of 5

Thread: VB and Generating SQL stored procedures

  1. #1

    Thread Starter
    Member
    Join Date
    Jun 2000
    Posts
    39

    Unhappy

    Hi All

    At the minute I have a VB6 programme that is generating and saving SQL stored procedures depending on the database and tables selected. The user selects the database they want to work with and then the tables they want to use. I have the programme running so I can insert and get fields but I can't figure out how to delete any fields or update old records. Its been suggested that I use SQL_DMO, but does anyone have any ideas as to how I can do this???? I'm using SQL Server 6.5 and am testing the generted procedures through this. Thanks in advance, Gin

  2. #2
    Fanatic Member Ianpbaker's Avatar
    Join Date
    Mar 2000
    Location
    Hastings
    Posts
    696

    Question

    Hi Gin_bee

    When you say Deleting and updating old records, do you mean creating a stored procedure to do theese or using the recordset in vb to delete and append the records.

    Ian
    Yeah, well I'm gonna build my own lunar space lander! With blackjack aaaaannd Hookers! Actually, forget the space lander, and the blackjack. Ahhhh forget the whole thing!

  3. #3

    Thread Starter
    Member
    Join Date
    Jun 2000
    Posts
    39
    Hi Ian

    I'm generating a stored procedure to alter records

  4. #4
    Fanatic Member Ianpbaker's Avatar
    Join Date
    Mar 2000
    Location
    Hastings
    Posts
    696
    In that Case
    Create a stired procedure with the diffterent variables that you need and use an UPdate table Set field1 = ... WHERE field1 == ...

    Hope this helps
    ian
    Yeah, well I'm gonna build my own lunar space lander! With blackjack aaaaannd Hookers! Actually, forget the space lander, and the blackjack. Ahhhh forget the whole thing!

  5. #5
    Lively Member
    Join Date
    Sep 2000
    Posts
    127

    I'm trying to do somehting semiliar

    Originally posted by Gin_bee
    Hi All

    At the minute I have a VB6 programme that is generating and saving SQL stored procedures depending on the database and tables selected. The user selects the database they want to work with and then the tables they want to use. I have the programme running so I can insert and get fields but I can't figure out how to delete any fields or update old records. Its been suggested that I use SQL_DMO, but does anyone have any ideas as to how I can do this???? I'm using SQL Server 6.5 and am testing the generted procedures through this. Thanks in advance, Gin
    I there i'm tying to do the same has you a SP generator, done that the problem that i have is how to Save th SP into the SQL server...

    P.S. Has i'm a bit old fashion i'm using DAO, sorry
    ASPWIZARD

    http://www.aspwizard.co.uk

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width