David Gardner wrote: > In my table creation script, I'm doing a bunch of inserts as well, to > populate the table. I also want to manually specify the primary key, > because I need to make sure it jives with another table I'm creating. > > Isn't there something I can turn "off", do my inserts, then turn back "on"?? >
I'm assuming that the PK is a identity field...look up "SET IDENTITY_INSERT" in books online. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Upgrade to Adobe ColdFusion MX7 Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/SQL/message.cfm/messageid:2694 Subscription: http://www.houseoffusion.com/groups/SQL/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.6
