Click here to Skip to main content
15,889,808 members
Home / Discussions / C#
   

C#

 
QuestionServer 2012 remote powershell with C# Pin
JD8612-Jun-13 9:26
JD8612-Jun-13 9:26 
QuestionDB Connection Pin
mynamearan12-Jun-13 3:25
mynamearan12-Jun-13 3:25 
AnswerRe: DB Connection Pin
V.12-Jun-13 3:31
professionalV.12-Jun-13 3:31 
GeneralRe: DB Connection Pin
mynamearan13-Jun-13 4:05
mynamearan13-Jun-13 4:05 
GeneralRe: DB Connection Pin
V.13-Jun-13 20:02
professionalV.13-Jun-13 20:02 
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 

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.