Click here to Skip to main content
16,009,057 members
Home / Discussions / Database
   

Database

 
GeneralRe: oledb and table with no key Pin
Alex Deem26-Jul-02 2:25
Alex Deem26-Jul-02 2:25 
GeneralCreating Login Pin
Mazdak22-Jul-02 19:14
Mazdak22-Jul-02 19:14 
GeneralRe: Creating Login Pin
Richard Deeming22-Jul-02 23:39
mveRichard Deeming22-Jul-02 23:39 
GeneralRe: Creating Login Pin
Mazdak25-Jul-02 7:14
Mazdak25-Jul-02 7:14 
GeneralDatagrid columns Pin
Ryan284522-Jul-02 5:37
Ryan284522-Jul-02 5:37 
GeneralTyped DataSets and casting problems... Pin
Andrew Connell22-Jul-02 4:36
Andrew Connell22-Jul-02 4:36 
GeneralRe: Typed DataSets and casting problems... Pin
Anonymous24-Jul-02 16:57
Anonymous24-Jul-02 16:57 
GeneralCreating an index with ADOX Pin
ijprest21-Jul-02 20:40
ijprest21-Jul-02 20:40 
I'm having some trouble creating an index with ADOX (against MSJet as the provider).

For the life of me, I can't figure out how to make the index *unique*. Sure, there is a pIndex->PutUnique() function on the Index object, but it doesn't seem to work, since the resulting database still lists the field as "duplicates OK" when I open it in Access.

I've also tried 'pIndex->Properties("Unique")->PutValue(true)', but that only results in an exception being thrown (with some unhelpful error message). But PutValue(false) doesn't result in an error. Am I missing some prerequisites for a unique index?

If I change the index in Access to "no duplicates" and reopen the database, both the pIndex->GetUnique() and Properties("Unique")->GetValue() return true.

Any help is much appreciated.
GeneralCREATE DATABASE Pin
Mazdak20-Jul-02 20:56
Mazdak20-Jul-02 20:56 
GeneralRe: CREATE DATABASE Pin
Ravi_Shankar25-Jul-02 0:54
Ravi_Shankar25-Jul-02 0:54 
GeneralCollation Name Pin
Mazdak20-Jul-02 20:37
Mazdak20-Jul-02 20:37 
GeneralRe: Collation Name Pin
Martin Ziacek22-Jul-02 1:33
Martin Ziacek22-Jul-02 1:33 
GeneralRe: Collation Name Pin
Mazdak22-Jul-02 9:39
Mazdak22-Jul-02 9:39 
GeneralRe: Collation Name Pin
Martin Ziacek22-Jul-02 9:54
Martin Ziacek22-Jul-02 9:54 
GeneralSubstring searching in SQL Pin
Byteman19-Jul-02 8:55
Byteman19-Jul-02 8:55 
GeneralRe: Substring searching in SQL Pin
AndyG19-Jul-02 9:44
AndyG19-Jul-02 9:44 
GeneralRe: Substring searching in SQL Pin
Byteman22-Jul-02 9:20
Byteman22-Jul-02 9:20 
GeneralRe: Substring searching in SQL Pin
Gerald Schwab20-Jul-02 21:43
Gerald Schwab20-Jul-02 21:43 
GeneralCreate database schema for distribution Pin
scrozier19-Jul-02 5:28
scrozier19-Jul-02 5:28 
GeneralRe: Create database schema for distribution Pin
Ravi_Shankar25-Jul-02 1:05
Ravi_Shankar25-Jul-02 1:05 
GeneralRe: Create database schema for distribution Pin
scrozier25-Jul-02 5:39
scrozier25-Jul-02 5:39 
GeneralRe: Create database schema for distribution Pin
Ravi_Shankar25-Jul-02 22:59
Ravi_Shankar25-Jul-02 22:59 
GeneralMSDE distribution Pin
scrozier19-Jul-02 5:26
scrozier19-Jul-02 5:26 
GeneralRe: MSDE distribution Pin
Anonymous25-Jul-02 3:40
Anonymous25-Jul-02 3:40 
GeneralRe: MSDE distribution Pin
James T. Johnson25-Jul-02 3:50
James T. Johnson25-Jul-02 3:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.