Register Blogs FAQ Members List Social Groups Calendar Search Today's Posts Mark Forums Read

Go Back   DeveloperBarn Forums > Programming & Scripting > ASP Development

Sponsored Links

Discuss "Help with handling sql insert error" in the ASP Development forum.

ASP Development - Learn coding practices and tips to get the best out of your Active Server Pages (ASP). Visit the ASP Development forum for help with ASP/VBScript and ASP/JScript applications.


Reply
 
LinkBack Thread Tools Display Modes
  #11  
Old August 29th, 2008, 09:14 AM
Wolffy's Avatar
Slaprentice of Wolves
 
Join Date: Mar 2008
Location: Peoria, IL
Posts: 176
Thanks: 3
Thanked 24 Times in 21 Posts
Rep Power: 1
Wolffy is on a distinguished road

Awards Showcase
Microsoft .Net 
Total Awards: 1

Default

1 - Have the same problem right now. It kind of depends on if the old table is still being updated or used by other applications. The best solution would be to retire the old table and put it's data into the new format; tho I fully realize that it may not be possible if other system rely on its format. Consider creating a VIEW that UNIONs the two tables together.

2 - I really don't see much issue using the Equipment Number as the PK since it's a single field and is unique -- you're probably going to create a Unique Index on it anyway.

3 - Same answer as #1 -- create a VIEW that makes the old format look like the new one and UNION ALL the tables together.
__________________
Wolffy
------------------------
Opinions expressed are my own and do not necessity reflect those of any sane person. Any code provided is intended to be an example and is provided AS IS. Rework for your specific environment may be required. Void where prohibited by law. Not valid in California. Your mileage may vary.
Reply With Quote
Sponsored Links
  #12  
Old August 29th, 2008, 01:20 PM
Rebelle's Avatar
Barn Enthusiast
 
Join Date: Mar 2008
Posts: 295
Thanks: 54
Thanked 1 Time in 1 Post
Rep Power: 1
Rebelle is on a distinguished road
Default

Quote:
Originally Posted by Wolffy View Post
1 - Have the same problem right now. It kind of depends on if the old table is still being updated or used by other applications. The best solution would be to retire the old table and put it's data into the new format; tho I fully realize that it may not be possible if other system rely on its format. Consider creating a VIEW that UNIONs the two tables together.

2 - I really don't see much issue using the Equipment Number as the PK since it's a single field and is unique -- you're probably going to create a Unique Index on it anyway.

3 - Same answer as #1 -- create a VIEW that makes the old format look like the new one and UNION ALL the tables together.
on # 1 - cool...thanks for the advice...i think i would rather retire the old table and move that data to the new....i'll look at the data to check if thats a good possibility. then that would take care of #3.

on #2 - won't I need an autonumber ID to lock the recordset? or can i still do that off the equipment # since it can be the primary key?

Thanks!
Reply With Quote
Reply

  DeveloperBarn Forums > Programming & Scripting > ASP Development

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Free ASP Upload (insert issue) Rebelle ASP Development 3 July 31st, 2008 09:36 AM
query error todd2006 SQL Development 1 June 24th, 2008 12:05 PM
XML Node Error noFriends Visual Basic Programming 4 June 3rd, 2008 08:57 AM
dynamically created dropdowns insert to sql peebman2000 .Net Development 14 May 19th, 2008 11:00 AM


All times are GMT -4. The time now is 09:16 AM.



Content Relevant URLs by vBSEO 3.2.0