Click here to Skip to main content
15,891,864 members
Home / Discussions / C#
   

C#

 
GeneralRe: dll function Pin
Calla2-May-10 22:24
Calla2-May-10 22:24 
GeneralRe: dll function Pin
Abdul Rahman Hamidy2-May-10 22:39
Abdul Rahman Hamidy2-May-10 22:39 
GeneralRe: dll function Pin
ThatsAlok3-May-10 3:14
ThatsAlok3-May-10 3:14 
QuestionActive directory Group Enabled or Not Pin
Tiger4562-May-10 18:22
Tiger4562-May-10 18:22 
AnswerRe: Active directory Group Enabled or Not Pin
Michel Godfroid2-May-10 19:06
Michel Godfroid2-May-10 19:06 
QuestionNeed help on c# please Pin
kibr9872-May-10 13:34
kibr9872-May-10 13:34 
AnswerRe: Need help on c# please Pin
Luc Pattyn2-May-10 13:49
sitebuilderLuc Pattyn2-May-10 13:49 
QuestionBest way to access a database Pin
Terence van Schalkwyk2-May-10 9:09
Terence van Schalkwyk2-May-10 9:09 
I dont want to have to type this out every time I want to connect to the database. Can I put this in a class or something?

What would be the best way to do this so I can call myConnection from anywhere inside my application?


SqlConnection myConnection = new SqlConnection("user id=username;" +
"password=password;server=serverurl;" +
"Trusted_Connection=yes;" +
"database=database; " +
"connection timeout=30");

Thanks in advanced as I am pretty much learning.
AnswerRe: Best way to access a database [modified] Pin
PIEBALDconsult2-May-10 9:35
mvePIEBALDconsult2-May-10 9:35 
AnswerRe: Best way to access a database [modified] Pin
Pete O'Hanlon2-May-10 9:52
mvePete O'Hanlon2-May-10 9:52 
GeneralRe: Best way to access a database Pin
PIEBALDconsult2-May-10 9:56
mvePIEBALDconsult2-May-10 9:56 
GeneralRe: Best way to access a database Pin
Pete O'Hanlon2-May-10 10:10
mvePete O'Hanlon2-May-10 10:10 
GeneralRe: Best way to access a database Pin
PIEBALDconsult2-May-10 10:29
mvePIEBALDconsult2-May-10 10:29 
GeneralRe: Best way to access a database Pin
Pete O'Hanlon2-May-10 10:33
mvePete O'Hanlon2-May-10 10:33 
GeneralRe: Best way to access a database Pin
PIEBALDconsult2-May-10 10:53
mvePIEBALDconsult2-May-10 10:53 
GeneralRe: Best way to access a database Pin
Terence van Schalkwyk2-May-10 20:01
Terence van Schalkwyk2-May-10 20:01 
GeneralRe: Best way to access a database Pin
Pete O'Hanlon2-May-10 20:38
mvePete O'Hanlon2-May-10 20:38 
GeneralRe: Best way to access a database Pin
Terence van Schalkwyk2-May-10 20:58
Terence van Schalkwyk2-May-10 20:58 
GeneralRe: Best way to access a database Pin
Pete O'Hanlon2-May-10 21:21
mvePete O'Hanlon2-May-10 21:21 
QuestionRe: Best way to access a database [modified] Pin
Terence van Schalkwyk2-May-10 23:37
Terence van Schalkwyk2-May-10 23:37 
AnswerRe: Best way to access a database Pin
Pete O'Hanlon3-May-10 2:33
mvePete O'Hanlon3-May-10 2:33 
Questionimage protect Pin
hameduser2-May-10 4:40
hameduser2-May-10 4:40 
AnswerRe: image protect Pin
Dave Kreskowiak2-May-10 5:51
mveDave Kreskowiak2-May-10 5:51 
GeneralRe: image protect Pin
AspDotNetDev2-May-10 14:14
protectorAspDotNetDev2-May-10 14:14 
GeneralRe: image protect Pin
loyal ginger2-May-10 14:32
loyal ginger2-May-10 14:32 

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.