You are here: Re: Using a trigger to generate an ID value « MsSQL Server « IT news, forums, messages
Re: Using a trigger to generate an ID value

Posted by imani_technology_spam@yahoo.com on 09/21/06 23:49

Speaking of testing, what would happen if I inserted a bunch of rows
into the table that already have LabID's? Would that cause a problem
with the trigger? I'm thinking about future data migration.

Erland Sommarskog wrote:
> imani_technology_spam@yahoo.com (imani_technology_spam@yahoo.com) writes:
> > Again, thank you very much. Am I right to assume that the following
> > section is unnecessary, just for testing?
> >
> >> INSERT nisse (somemoredata)
> >> SELECT 8
> >> UNION ALL SELECT 188
> >> UNION ALL SELECT 234
> >> go
> >> select * from nisse
> >> INSERT nisse (somemoredata)
> >> SELECT 18
> >> UNION ALL SELECT 5188
> >> UNION ALL SELECT 9234
> >> go
> >> select * from nisse
> >> drop table nisse
>
> Well, testing is never unnecessary. :-)
>
> But you are right that this is not part of the solution.
>
>
> --
> Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se
>
> Books Online for SQL Server 2005 at
> http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
> Books Online for SQL Server 2000 at
> http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация