Click here to Skip to main content
15,916,288 members
Home / Discussions / Database
   

Database

 
GeneralRe: Random Search Pin
Red Lake21-Jun-07 2:35
Red Lake21-Jun-07 2:35 
Questionselect stataement Pin
seemamltn20-Jun-07 10:22
seemamltn20-Jun-07 10:22 
AnswerRe: select stataement Pin
gauthee20-Jun-07 18:13
gauthee20-Jun-07 18:13 
AnswerRe: select stataement Pin
vimal_yet20-Jun-07 18:27
vimal_yet20-Jun-07 18:27 
QuestionConnection Strings & App.config with class libaries Pin
g18c20-Jun-07 9:48
g18c20-Jun-07 9:48 
AnswerRe: Connection Strings & App.config with class libaries Pin
Not Active20-Jun-07 10:02
mentorNot Active20-Jun-07 10:02 
GeneralRe: Connection Strings & App.config with class libaries Pin
g18c20-Jun-07 10:22
g18c20-Jun-07 10:22 
GeneralRe: Connection Strings & App.config with class libaries Pin
Not Active20-Jun-07 11:47
mentorNot Active20-Jun-07 11:47 
Yes will need to use 'AppDatabase.Properties.Settings.dbConnectionString' because that is the name, not 'dbConnectionString'

<connectionStrings>
<add name="AppDatabase.Properties.Settings.dbConnectionString"
connectionString="Data Source =D:\Chris\Debug\db.sdf"
providerName="Microsoft.SqlServerCe.Client" />
</connectionStrings>


ConfigurationManager.ConnectionString["dbConnectionString"] will search the configuration file of the same name as the assembly if it exists, then the one in the next folder, if any, then web.config, etc.

So if the above entry was in myassembly.dll.config and this one was in app.config (or web.cofig)

<connectionStrings>
<add name="dbConnectionString"
connectionString="Data Source =D:\Chris\Debug\db.sdf"
providerName="Microsoft.SqlServerCe.Client" />
</connectionStrings>

Then ConfigurationManager.ConnectionString["dbConnectionString"] would use the app.cofing entry not the one in myassembly.dll.config.


only two letters away from being an asset

GeneralRe: Connection Strings & App.config with class libaries Pin
g18c20-Jun-07 20:17
g18c20-Jun-07 20:17 
QuestionSQL Server Question: How do I view the database log? [modified] Pin
Xiangyang Liu 刘向阳20-Jun-07 8:12
Xiangyang Liu 刘向阳20-Jun-07 8:12 
AnswerRe: SQL Server Question: How do I view the database log? Pin
Sathesh Sakthivel20-Jun-07 8:42
Sathesh Sakthivel20-Jun-07 8:42 
GeneralRe: SQL Server Question: How do I view the database log? Pin
Xiangyang Liu 刘向阳20-Jun-07 12:26
Xiangyang Liu 刘向阳20-Jun-07 12:26 
AnswerRe: SQL Server Question: How do I view the database log? Pin
Mike Dimmick21-Jun-07 5:25
Mike Dimmick21-Jun-07 5:25 
GeneralRe: SQL Server Question: How do I view the database log? Pin
Xiangyang Liu 刘向阳21-Jun-07 13:25
Xiangyang Liu 刘向阳21-Jun-07 13:25 
QuestionHow to backup a database Pin
lune1220-Jun-07 6:27
lune1220-Jun-07 6:27 
AnswerRe: How to backup a database Pin
Sathesh Sakthivel20-Jun-07 8:39
Sathesh Sakthivel20-Jun-07 8:39 
Questionembedding a sql DB in a win32 app Pin
TintinV3ck20-Jun-07 6:26
TintinV3ck20-Jun-07 6:26 
AnswerRe: embedding a sql DB in a win32 app Pin
originSH20-Jun-07 21:52
originSH20-Jun-07 21:52 
GeneralRe: embedding a sql DB in a win32 app Pin
TintinV3ck21-Jun-07 5:32
TintinV3ck21-Jun-07 5:32 
AnswerRe: embedding a sql DB in a win32 app Pin
Mike Dimmick21-Jun-07 5:33
Mike Dimmick21-Jun-07 5:33 
Questionblob with sql server Pin
WhiteGirl2320-Jun-07 3:09
WhiteGirl2320-Jun-07 3:09 
AnswerRe: blob with sql server Pin
Giorgi Dalakishvili20-Jun-07 4:00
mentorGiorgi Dalakishvili20-Jun-07 4:00 
Questionproblem connecting to SQL database Pin
NewYork20-Jun-07 1:48
NewYork20-Jun-07 1:48 
AnswerRe: problem connecting to SQL database Pin
Hulicat20-Jun-07 2:19
Hulicat20-Jun-07 2:19 
GeneralRe: problem connecting to SQL database Pin
NewYork20-Jun-07 4:19
NewYork20-Jun-07 4:19 

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.