Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Accused of violations I'm not committing
Message
From
07/02/2005 10:40:31
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00983795
Message ID:
00984454
Views:
32
>>>Thanks. That did the trick. Please could I trouble you as to any thoughts on the second part of my proble: re: NewID() disabling while I'm doing the import?
>>
>>Can you use DBSETPROP() function to disable default before import and enable it thereafter?
>
>Thanks, Sergey - that seems like a good idea. It made me think as well - I can probably use Alter Table ... drop/set default too. I'm just wondering which might be better.
>On the other hand, I originally thought that I was getting this violation error because I had the default value, which turned out to be not the case, so now I'm wondering if my Insert Into statement wouldn't just override the NewID() function anyway, given that I'm stipulating the value of Zone #.

The dbsetprop("alias.field","field","DefaultValue","any value") will not work because DefaultValue is read-only for DbSetProp() function when applied to tables. It's read/write for views, however - which may help you, who knows.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform