Click here to Skip to main content
15,900,511 members
Home / Discussions / C#
   

C#

 
GeneralOk i need help, but you knew that didn't you Pin
MeterMan3-Jun-04 20:27
MeterMan3-Jun-04 20:27 
GeneralRe: Ok i need help, but you knew that didn't you Pin
Heath Stewart4-Jun-04 4:39
protectorHeath Stewart4-Jun-04 4:39 
GeneralAdd Ins Pin
SatyaDY3-Jun-04 18:47
SatyaDY3-Jun-04 18:47 
GeneralRe: Add Ins Pin
Wackatronic4-Jun-04 1:06
Wackatronic4-Jun-04 1:06 
Generalversion Pin
sreejith ss nair3-Jun-04 17:20
sreejith ss nair3-Jun-04 17:20 
GeneralRe: version Pin
Heath Stewart3-Jun-04 17:59
protectorHeath Stewart3-Jun-04 17:59 
GeneralMSDASC.DataLinks PromptNew() Pin
inyoursadachine3-Jun-04 16:44
inyoursadachine3-Jun-04 16:44 
GeneralRe: MSDASC.DataLinks PromptNew() Pin
Heath Stewart3-Jun-04 18:28
protectorHeath Stewart3-Jun-04 18:28 
All you need is a valid connection string. I created an RCW from the MSDASC typelib and imported the PIA for ADODB (ADODB.dll). My sample code below worked fine (except that I changed the computer name in the ConnectionString):
using System;
using ADODB;
using MSDASC;

public class EditDSN
{
  static void Main()
  {
    ConnectionClass conn = new ConnectionClass();
    conn.ConnectionString = "Provider=SQLOLEDB.1;Integrated Security=SSPI;"
      + "Data Source=MACHINE;Initial Catalog=master";

    object o = conn;
    DataLinksClass links = new DataLinksClass();
    links.PromptEdit(ref o);
  }
}


 

Microsoft MVP, Visual C#
My Articles
GeneralRe: MSDASC.DataLinks PromptNew() Pin
inyoursadachine3-Jun-04 18:44
inyoursadachine3-Jun-04 18:44 
GeneralControll Scrolling Programactically Pin
TaoLi3-Jun-04 16:36
TaoLi3-Jun-04 16:36 
GeneralRe: Controll Scrolling Programactically Pin
Heath Stewart3-Jun-04 17:51
protectorHeath Stewart3-Jun-04 17:51 
QuestionNotifyIcon app: how to show the context menu? Pin
wangdave3-Jun-04 15:56
wangdave3-Jun-04 15:56 
AnswerRe: NotifyIcon app: how to show the context menu? Pin
Heath Stewart3-Jun-04 17:46
protectorHeath Stewart3-Jun-04 17:46 
QuestionDrawing in different ways ??? Pin
sachinkalse3-Jun-04 15:21
sachinkalse3-Jun-04 15:21 
AnswerRe: Drawing in different ways ??? Pin
Heath Stewart3-Jun-04 17:39
protectorHeath Stewart3-Jun-04 17:39 
GeneralNice antialiased icons Pin
XanderSon3-Jun-04 14:38
XanderSon3-Jun-04 14:38 
GeneralRe: Nice antialiased icons Pin
Heath Stewart3-Jun-04 17:16
protectorHeath Stewart3-Jun-04 17:16 
GeneralRe: Nice antialiased icons Pin
leppie4-Jun-04 7:20
leppie4-Jun-04 7:20 
GeneralRe: Nice antialiased icons Pin
Heath Stewart4-Jun-04 9:24
protectorHeath Stewart4-Jun-04 9:24 
GeneralRe: Nice antialiased icons Pin
leppie4-Jun-04 10:10
leppie4-Jun-04 10:10 
GeneralRe: Nice antialiased icons Pin
Heath Stewart4-Jun-04 10:12
protectorHeath Stewart4-Jun-04 10:12 
GeneralRe: Nice antialiased icons Pin
XanderSon4-Jun-04 12:57
XanderSon4-Jun-04 12:57 
GeneralRe: Nice antialiased icons Pin
Heath Stewart4-Jun-04 13:32
protectorHeath Stewart4-Jun-04 13:32 
GeneralEscape characters and regex Pin
cardboard423-Jun-04 14:34
cardboard423-Jun-04 14:34 
GeneralRe: Escape characters and regex Pin
Heath Stewart3-Jun-04 17:10
protectorHeath Stewart3-Jun-04 17:10 

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.