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. Database & SysAdmin
  3. Database
  4. "Copy Project" and SQL ???

"Copy Project" and SQL ???

Scheduled Pinned Locked Moved Database
databaseasp-netsysadminquestion
6 Posts 3 Posters 2 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.
  • G Offline
    G Offline
    gman44
    wrote on last edited by
    #1

    Using "Copy Project" has it's drawbacks. It's nice if I only have very simple web pages without any database. Now in real world asp programming, that is using databases and web forms, the "Copy Project" will not reconnect any database connections or even ask me. Seems like a rather dumb idea by Microsoft. Any suggestions on simply transfering a finished web from a development server to an Internet web server??? ps. What's the point in having "automatic" features like "server explorer" to write all the code behind the scenes if its nearly impossible to make a simple web transfer??? The old fashioned way of coding all languages on a single asp page seems more dependable and easier to move.

    M 1 Reply Last reply
    0
    • G gman44

      Using "Copy Project" has it's drawbacks. It's nice if I only have very simple web pages without any database. Now in real world asp programming, that is using databases and web forms, the "Copy Project" will not reconnect any database connections or even ask me. Seems like a rather dumb idea by Microsoft. Any suggestions on simply transfering a finished web from a development server to an Internet web server??? ps. What's the point in having "automatic" features like "server explorer" to write all the code behind the scenes if its nearly impossible to make a simple web transfer??? The old fashioned way of coding all languages on a single asp page seems more dependable and easier to move.

      M Offline
      M Offline
      Member 96
      wrote on last edited by
      #2

      For any serious project, don't use the drag and drop features to build queries or views / datasets etc, or at least, only use it to get an idea of what code you will need to add, then remove it and add it back yourself by hand. Reason being that I've found from experience is that the code built for database access (other than the connection string itself)by the wizard is often very strange and in many cases badly inefficient. In terms of moving a web that accesses a database server, all the normal things that apply to deploying any database project (web based or not) have to be taken into consideration. For example your app would normally build all the database objects it requires when it first connects to the server or as part of the installation script. In terms of a web built (for example in c# and asp.net with vs 2002/2003) I've never come across a case where it couldn't be simply copied to the production web server so I don't agree with you there. "Things are more like they are now than they ever were before." -- Dwight Eisenhower

      J G 2 Replies Last reply
      0
      • M Member 96

        For any serious project, don't use the drag and drop features to build queries or views / datasets etc, or at least, only use it to get an idea of what code you will need to add, then remove it and add it back yourself by hand. Reason being that I've found from experience is that the code built for database access (other than the connection string itself)by the wizard is often very strange and in many cases badly inefficient. In terms of moving a web that accesses a database server, all the normal things that apply to deploying any database project (web based or not) have to be taken into consideration. For example your app would normally build all the database objects it requires when it first connects to the server or as part of the installation script. In terms of a web built (for example in c# and asp.net with vs 2002/2003) I've never come across a case where it couldn't be simply copied to the production web server so I don't agree with you there. "Things are more like they are now than they ever were before." -- Dwight Eisenhower

        J Offline
        J Offline
        J Dunlap
        wrote on last edited by
        #3

        J Cardinal wrote: For any serious project, don't use the drag and drop features to build queries or views / datasets etc Good advice. BTW, those things actually confuse me, so I head straight for the SQL view. Nothing like good ol' code! ;)

        "Do unto others as you would have them do unto you." - Jesus
        "An eye for an eye only makes the whole world blind." - Mahatma Gandhi

        1 Reply Last reply
        0
        • M Member 96

          For any serious project, don't use the drag and drop features to build queries or views / datasets etc, or at least, only use it to get an idea of what code you will need to add, then remove it and add it back yourself by hand. Reason being that I've found from experience is that the code built for database access (other than the connection string itself)by the wizard is often very strange and in many cases badly inefficient. In terms of moving a web that accesses a database server, all the normal things that apply to deploying any database project (web based or not) have to be taken into consideration. For example your app would normally build all the database objects it requires when it first connects to the server or as part of the installation script. In terms of a web built (for example in c# and asp.net with vs 2002/2003) I've never come across a case where it couldn't be simply copied to the production web server so I don't agree with you there. "Things are more like they are now than they ever were before." -- Dwight Eisenhower

          G Offline
          G Offline
          gman44
          wrote on last edited by
          #4

          Indeed this is the most insane software I've ever used. You see, when I move a perfectly running asp.net web project to another server, the computer names are different. So I changed those to make sure the database connections are correct. However upon this attempt nothing works. Oh yes the server is quite capable of running asp.net pages. I suppose I would have to either develop all web projects on the actual Internet server to begin with or go back to the old fashioned way of writing all the code on a single .asp form including all c# scripts. I'm very dissapointed after spendng countless hours learning various drag-n-drop features only to find it's too complicated to be moved.:(

          M 1 Reply Last reply
          0
          • G gman44

            Indeed this is the most insane software I've ever used. You see, when I move a perfectly running asp.net web project to another server, the computer names are different. So I changed those to make sure the database connections are correct. However upon this attempt nothing works. Oh yes the server is quite capable of running asp.net pages. I suppose I would have to either develop all web projects on the actual Internet server to begin with or go back to the old fashioned way of writing all the code on a single .asp form including all c# scripts. I'm very dissapointed after spendng countless hours learning various drag-n-drop features only to find it's too complicated to be moved.:(

            M Offline
            M Offline
            Member 96
            wrote on last edited by
            #5

            kvnsdr wrote: You see, when I move a perfectly running asp.net web project to another server, the computer names are different. So I changed those to make sure the database connections are correct. However upon this attempt nothing works. It's normal practice to put the connection string in an externally configurable place if it's production software or at least in only one place in your code if it's internal use for just this reason. Then you only need to update one place. As you found out, when you use the drag and drop features it will happily make a new connection string over and over and over again. I think that the drag and drop is an excellent way for a beginner to learn what is required to get the task accomplished, but then most would quickly move beyond that if they are programming more than a very simple application. "Things are more like they are now than they ever were before." -- Dwight Eisenhower

            J 1 Reply Last reply
            0
            • M Member 96

              kvnsdr wrote: You see, when I move a perfectly running asp.net web project to another server, the computer names are different. So I changed those to make sure the database connections are correct. However upon this attempt nothing works. It's normal practice to put the connection string in an externally configurable place if it's production software or at least in only one place in your code if it's internal use for just this reason. Then you only need to update one place. As you found out, when you use the drag and drop features it will happily make a new connection string over and over and over again. I think that the drag and drop is an excellent way for a beginner to learn what is required to get the task accomplished, but then most would quickly move beyond that if they are programming more than a very simple application. "Things are more like they are now than they ever were before." -- Dwight Eisenhower

              J Offline
              J Offline
              J Dunlap
              wrote on last edited by
              #6

              J Cardinal wrote: I think that the drag and drop is an excellent way for a beginner to learn what is required to get the task accomplished, but then most would quickly move beyond that if they are programming more than a very simple application. Goes for most visual designers). I always like to learn the ropes by doing things with the designers and then looking at the code they generate. :) That gives you a beginning foundation, but then of course you'll always need to go far beyond that.

              "Do unto others as you would have them do unto you." - Jesus
              "An eye for an eye only makes the whole world blind." - Mahatma Gandhi

              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