Click here to Skip to main content
15,896,118 members
Home / Discussions / C#
   

C#

 
GeneralRe: Memory leak Pin
zhang_ding18-Nov-03 15:34
zhang_ding18-Nov-03 15:34 
GeneralRe: Memory leak Pin
mhmoud rawas18-Nov-03 19:35
mhmoud rawas18-Nov-03 19:35 
GeneralRe: Memory leak Pin
zhang_ding18-Nov-03 19:52
zhang_ding18-Nov-03 19:52 
GeneralRe: Memory leak Pin
J. Dunlap18-Nov-03 20:04
J. Dunlap18-Nov-03 20:04 
GeneralCrystal reports Pin
Anonymous17-Nov-03 19:12
Anonymous17-Nov-03 19:12 
GeneralConnectionString Pin
lupa_842117-Nov-03 19:10
lupa_842117-Nov-03 19:10 
GeneralRe: ConnectionString Pin
Heath Stewart18-Nov-03 6:45
protectorHeath Stewart18-Nov-03 6:45 
GeneralRe: ConnectionString Pin
Husein21-Nov-03 23:27
Husein21-Nov-03 23:27 
This is not really what you want but you can still achieve a similar thing like this:
Add reference to
- Microsoft ActiveX Data Objects 2.7 Library
- Microsoft OLEDB Service Component 1.0 Type Library

In your code add this:
ADODB.Connection conn = new ADODB.ConnectionClass();<br />
MSDASC.DataLinks dLinks = new MSDASC.DataLinksClass();<br />
object cn = (object) conn;<br />
dLinks.PromptEdit(ref cn);<br />
string myConnStr = conn.ConnectionString;


The connection string returned cannot be used with SqlConnection. What you need to do is to parse the string and remove any occurence of Provider=SQLOLEDB.1 in order to pass this connection string to your SqlConnection. If you forget this, you will be blessed with the Exception.

Enjoy
GeneralMissing Windows Forms Designer Pin
bcox17-Nov-03 14:13
bcox17-Nov-03 14:13 
GeneralRe: Missing Windows Forms Designer Pin
leppie17-Nov-03 15:39
leppie17-Nov-03 15:39 
GeneralRe: Missing Windows Forms Designer Pin
Russell Morris18-Nov-03 7:13
Russell Morris18-Nov-03 7:13 
Generalxml data to database Pin
Kris{PL}17-Nov-03 10:50
Kris{PL}17-Nov-03 10:50 
GeneralRe: xml data to database Pin
jparsons17-Nov-03 11:00
jparsons17-Nov-03 11:00 
GeneralRe: xml data to database Pin
Kris{PL}17-Nov-03 11:52
Kris{PL}17-Nov-03 11:52 
GeneralRe: xml data to database Pin
jparsons17-Nov-03 18:43
jparsons17-Nov-03 18:43 
GeneralRe: xml data to database Pin
Kris{PL}17-Nov-03 23:57
Kris{PL}17-Nov-03 23:57 
GeneralRe: xml data to database (second prb) Pin
Kris{PL}18-Nov-03 1:50
Kris{PL}18-Nov-03 1:50 
GeneralReusing a thread Pin
Judah Gabriel Himango17-Nov-03 9:33
sponsorJudah Gabriel Himango17-Nov-03 9:33 
GeneralRe: Reusing a thread Pin
J. Dunlap17-Nov-03 10:19
J. Dunlap17-Nov-03 10:19 
GeneralRe: Reusing a thread Pin
Judah Gabriel Himango17-Nov-03 10:28
sponsorJudah Gabriel Himango17-Nov-03 10:28 
GeneralRe: Reusing a thread Pin
Heath Stewart18-Nov-03 8:48
protectorHeath Stewart18-Nov-03 8:48 
Generaldatabind checkedlistbox to arraylist Pin
zuhx17-Nov-03 9:27
zuhx17-Nov-03 9:27 
GeneralRe: databind checkedlistbox to arraylist Pin
John Arlen18-Nov-03 9:12
John Arlen18-Nov-03 9:12 
GeneralDetecting dependent DLLs Pin
Arash Sabet17-Nov-03 6:14
Arash Sabet17-Nov-03 6:14 
GeneralRe: Detecting dependent DLLs Pin
leppie17-Nov-03 6:42
leppie17-Nov-03 6:42 

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.