Advanced SQL Generation Options

Last post 08-11-2009 11:10 AM by sudi11. 4 replies.

Sort Posts:

  • Advanced SQL Generation Options

    05-24-2006, 4:03 PM
    • Member
      131 point Member
    • Paul44
    • Member since 05-13-2006, 3:58 PM
    • Posts 50
    I am trying to use VisualWebDeveloper-2005-Express to modify / expand the Commerce Starter Kit.  So far the Kit site is working fine and I have managed to add a few new (my own) pages to the site and I have connected to another database for some of the data.  To access the other database I added a SqlDataSource to the page and configured it to connect to the new sql server data source.  I can NOT use the Advanced SQL Generation Options from the Configure Select Statement screen...(everything is set to disabled? cannot click on anything)...
    I copied the code from the Commerce Starter Kit to create Insert, Delete and Update commands, parameters, etc. into my new SqlDataSource...  The Select works fine to populate the Grid View and the Delete command works fine...
    The Insert and Update commands - do NOT work at all...

    Could this have anything to do with the Advanced SQL Generation Options NOT being available?

    Why are the Advanced SQL Generation Options NOT available?

    Any ideas why my new SqlDataSource Insert and Update commands don't work?

    Thanks,
    Paul


  • Re: Advanced SQL Generation Options

    05-25-2006, 12:56 AM
    • Member
      131 point Member
    • Paul44
    • Member since 05-13-2006, 3:58 PM
    • Posts 50

    I am soooo embarrassed, now that I have looked again in the FAQ – I had selected the Key but it was not marked Primary.  Works – just like it should.

    Sorry for the premature post.

    Paul  :(

  • Re: Advanced SQL Generation Options

    06-20-2006, 12:47 AM

    hi

    yes i also face the Same PRoblem

  • Re: Advanced SQL Generation Options

    06-20-2006, 1:11 AM

    Hi  you have to Re Design The Table make Sure You have Set Primary On your Table and any Nullable Columns are available. and Your Primary Key Column Should be there

     

    Happy Programming

  • Re: Advanced SQL Generation Options

    08-11-2009, 11:10 AM
    • Member
      2 point Member
    • sudi11
    • Member since 08-11-2009, 11:09 AM
    • Posts 1

    The key is the Primary Key Wink!

    Check your database and make sure that your table has a Primary Key! It will work!


    Sudi

Page 1 of 1 (5 items)