Click here to Skip to main content
15,921,548 members
Home / Discussions / Database
   

Database

 
GeneralRe: primary keys in MS SQL Pin
VenkatFor.NET17-Jun-04 4:31
VenkatFor.NET17-Jun-04 4:31 
GeneralRe: primary keys in MS SQL Pin
VenkatFor.NET17-Jun-04 4:33
VenkatFor.NET17-Jun-04 4:33 
GeneralRe: primary keys in MS SQL Pin
Grimolfr28-Jun-04 9:03
Grimolfr28-Jun-04 9:03 
QuestionRunning SQL commands in a batch-file? Pin
matthias s.17-Jun-04 1:30
matthias s.17-Jun-04 1:30 
QuestionHow to create DSN at RUN time Pin
Zeeshan Bilal17-Jun-04 0:09
Zeeshan Bilal17-Jun-04 0:09 
AnswerRe: How to create DSN at RUN time Pin
RichardGrimmer17-Jun-04 3:43
RichardGrimmer17-Jun-04 3:43 
GeneralRe: How to create DSN at RUN time Pin
Zeeshan Bilal17-Jun-04 21:58
Zeeshan Bilal17-Jun-04 21:58 
GeneralRe: How to create DSN at RUN time Pin
RichardGrimmer17-Jun-04 22:27
RichardGrimmer17-Jun-04 22:27 
OK - to make a DSN, you need to make some keys in the registry. This can be acheived using the WIN32API function RegCreateKeyEx. (There is probably a simpler method in .NET).

If you open regedit, and navigate to HKEY_LOCAL_MACHINE\Software\ODBC\ODBC.ini, then you will see several keys.

The simplest way to find out what you need to add, is to use the UI to create the DSN that you need, and then look at what it adds to this key. (since different sources need different information). Once you know what needs adding, you can write some code to add the keys.....



"Now I guess I'll sit back and watch people misinterpret what I just said......"
Christian Graus At The Soapbox
GeneralRe: How to create DSN at RUN time Pin
Anonymous19-Jun-04 1:43
Anonymous19-Jun-04 1:43 
Generalhelp needed to create table for MS Access Pin
FASTian16-Jun-04 22:06
FASTian16-Jun-04 22:06 
GeneralRe: help needed to create table for MS Access Pin
Hesham Amin16-Jun-04 22:21
Hesham Amin16-Jun-04 22:21 
GeneralRe: help needed to create table for MS Access Pin
FASTian17-Jun-04 21:03
FASTian17-Jun-04 21:03 
GeneralRe: help needed to create table for MS Access Pin
Hesham Amin17-Jun-04 22:21
Hesham Amin17-Jun-04 22:21 
GeneralRe: help needed to create table for MS Access Pin
FASTian18-Jun-04 3:02
FASTian18-Jun-04 3:02 
Generalauto number generated Pin
viviansm16-Jun-04 21:40
viviansm16-Jun-04 21:40 
GeneralRe: auto number generated Pin
Tarakeshwar Reddy16-Jun-04 22:57
professionalTarakeshwar Reddy16-Jun-04 22:57 
GeneralRe: auto number generated Pin
WoutL16-Jun-04 23:09
WoutL16-Jun-04 23:09 
GeneralRe: auto number generated Pin
VenkatFor.NET17-Jun-04 4:57
VenkatFor.NET17-Jun-04 4:57 
QuestionHow to use a DataSet on a form, in another form. Pin
Member 114126616-Jun-04 21:23
Member 114126616-Jun-04 21:23 
AnswerRe: How to use a DataSet on a form, in another form. Pin
Tarakeshwar Reddy16-Jun-04 23:01
professionalTarakeshwar Reddy16-Jun-04 23:01 
AnswerRe: How to use a DataSet on a form, in another form. Pin
VenkatFor.NET17-Jun-04 5:00
VenkatFor.NET17-Jun-04 5:00 
QuestionHow to Fetch records Between two Dates Pin
Zeeshan Bilal16-Jun-04 20:03
Zeeshan Bilal16-Jun-04 20:03 
AnswerRe: How to Fetch records Between two Dates Pin
Anonymous16-Jun-04 21:06
Anonymous16-Jun-04 21:06 
GeneralRe: How to Fetch records Between two Dates Pin
Zeeshan Bilal16-Jun-04 21:29
Zeeshan Bilal16-Jun-04 21:29 
GeneralRe: How to Fetch records Between two Dates Pin
EdbertP17-Jun-04 13:06
EdbertP17-Jun-04 13:06 

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.