Click here to Skip to main content
15,903,362 members
Home / Discussions / C#
   

C#

 
AnswerRe: DB Connection Pin
Dave Kreskowiak12-Jun-13 3:54
mveDave Kreskowiak12-Jun-13 3:54 
QuestionRe: DB Connection Pin
mynamearan13-Jun-13 4:11
mynamearan13-Jun-13 4:11 
AnswerRe: DB Connection Pin
Dave Kreskowiak13-Jun-13 8:14
mveDave Kreskowiak13-Jun-13 8:14 
A connection string is just a string of characters. If you need to change the userId and password used to connect to the database, just create your connection string and inclue easily replacable tabs where the username and password would normally go. Then it's just a very simple search and replace for those tags. For example:
Server=SomeSqlServer;Initial Catalog=SomeDatabase;Username={USERNAME};Password={PASSWORD}


Then you just replace the "{USERNAME}" and "{PASSWORD}" strings with their actual values:
string connString = configurationConnectionString.Replace("{USERNAME}", username).Replace("{PASSWORD}", password);


Questioncan I use root in MySQL? Pin
Jassim Rahma12-Jun-13 0:23
Jassim Rahma12-Jun-13 0:23 
SuggestionRe: can I use root in MySQL? Pin
Eddy Vluggen12-Jun-13 1:29
professionalEddy Vluggen12-Jun-13 1:29 
AnswerRe: can I use root in MySQL? Pin
Dave Kreskowiak12-Jun-13 3:56
mveDave Kreskowiak12-Jun-13 3:56 
AnswerRe: can I use root in MySQL? Pin
jschell12-Jun-13 8:48
jschell12-Jun-13 8:48 
QuestionC# Attributes Pin
jeramyRR11-Jun-13 22:24
jeramyRR11-Jun-13 22:24 
AnswerRe: C# Attributes Pin
Bernhard Hiller11-Jun-13 22:51
Bernhard Hiller11-Jun-13 22:51 
Question/r is removed from string parameter Pin
Rock Star.11-Jun-13 21:30
Rock Star.11-Jun-13 21:30 
AnswerRe: /r is removed from string parameter Pin
Bernhard Hiller11-Jun-13 22:54
Bernhard Hiller11-Jun-13 22:54 
AnswerRe: /r is removed from string parameter Pin
Ron Beyer12-Jun-13 5:48
professionalRon Beyer12-Jun-13 5:48 
AnswerRe: /r is removed from string parameter Pin
jschell12-Jun-13 8:53
jschell12-Jun-13 8:53 
QuestionC# obtain values from windows form Pin
classy_dog11-Jun-13 10:53
classy_dog11-Jun-13 10:53 
AnswerRe: C# obtain values from windows form Pin
Rob Philpott11-Jun-13 10:59
Rob Philpott11-Jun-13 10:59 
AnswerRe: C# obtain values from windows form Pin
Eddy Vluggen11-Jun-13 11:47
professionalEddy Vluggen11-Jun-13 11:47 
GeneralRe: C# obtain values from windows form Pin
classy_dog11-Jun-13 17:51
classy_dog11-Jun-13 17:51 
AnswerRe: C# obtain values from windows form Pin
Eddy Vluggen11-Jun-13 22:28
professionalEddy Vluggen11-Jun-13 22:28 
AnswerRe: C# obtain values from windows form Pin
Caldazar8712-Jun-13 10:45
Caldazar8712-Jun-13 10:45 
GeneralRe: C# obtain values from windows form Pin
Eddy Vluggen12-Jun-13 10:53
professionalEddy Vluggen12-Jun-13 10:53 
QuestionForm-Designer-like application needed. Help appreciated. Pin
Member 1004349811-Jun-13 10:22
Member 1004349811-Jun-13 10:22 
AnswerRe: Form-Designer-like application needed. Help appreciated. Pin
Eddy Vluggen11-Jun-13 10:38
professionalEddy Vluggen11-Jun-13 10:38 
GeneralRe: Form-Designer-like application needed. Help appreciated. Pin
Member 1004349811-Jun-13 12:16
Member 1004349811-Jun-13 12:16 
AnswerRe: Form-Designer-like application needed. Help appreciated. Pin
Ron Beyer11-Jun-13 12:25
professionalRon Beyer11-Jun-13 12:25 
GeneralRe: Form-Designer-like application needed. Help appreciated. Pin
Member 1004349811-Jun-13 12:34
Member 1004349811-Jun-13 12:34 

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.