If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Delphi, C etc > Field IDENTITY and ADOBD.RecordSet

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-22-02, 08:51
Melian Melian is offline
Registered User
 
Join Date: Mar 2002
Posts: 15
Question Field IDENTITY and ADOBD.RecordSet

Hi,

I need help.

I'm using Sybase OLEDB Provider 2.1, Visual Basic 6.0 and Microsoft Activex Data Object 2.5.

How can to know if a field is of type IDENTITY in a RecordSet?

I know that using the property Type of Field, for example:

RS.Field.Type = adNUMERIC, but I would like to know when is IDENTITY not NUMERIC.

Bye.
Reply With Quote
  #2 (permalink)  
Old 04-25-02, 04:04
Tim G Tim G is offline
Registered User
 
Join Date: Dec 2001
Location: Belgium
Posts: 6
This is not a solution, but might help

I don't know why you need to know if a fieldtype is set to IDENTITY, but here is how to put the IDENTY to on or off..

YourConnection.Execute "SET IDENTITY_INSERT [yourtable] ON"
YourConnection.Execute "SET IDENTITY_INSERT [yourtable] OFF"

This will set all the fields that have an Identity to off or on...
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On