nevets2001uk
IS-IT--Management
I have just rebuilt my website using .NET 2 and SQL 2005. Everything works perfectly on my development machine using a local .MDF database. It uses the same database for membership and roles also.
I have now tried to move everything to the production server at my web host. Web files are fine and working. I use SQL Management Studio to move the export my database data from the MDF file to my web-hosts SQL Server. I can then view the pages which load the data as expected.
Since moving the database I cannot login as the stored procedures didn't come across. How do I migrate these? Also I assume the views need to come across also?
Finally some of my pages that load data are into datagrids are throwing errors such as "Failed to enable constraints. One or more rows contain values violating non-null, unique, or foreign-key constraints" and "Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is used as an expression." Is there any reason before diggin into the querys etc that these would work on a development machine and not a production machine. Queries etc are all identical!
Steve G (MCSE / MCSA:Messaging)
I have now tried to move everything to the production server at my web host. Web files are fine and working. I use SQL Management Studio to move the export my database data from the MDF file to my web-hosts SQL Server. I can then view the pages which load the data as expected.
Since moving the database I cannot login as the stored procedures didn't come across. How do I migrate these? Also I assume the views need to come across also?
Finally some of my pages that load data are into datagrids are throwing errors such as "Failed to enable constraints. One or more rows contain values violating non-null, unique, or foreign-key constraints" and "Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is used as an expression." Is there any reason before diggin into the querys etc that these would work on a development machine and not a production machine. Queries etc are all identical!
Steve G (MCSE / MCSA:Messaging)