Click here to Skip to main content
15,887,485 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Reflection question Pin
econy14-Aug-15 23:50
econy14-Aug-15 23:50 
GeneralRe: Reflection question Pin
Wendelius15-Aug-15 0:54
mentorWendelius15-Aug-15 0:54 
Questionencryption and decryption Pin
Member 1190959114-Aug-15 4:12
Member 1190959114-Aug-15 4:12 
SuggestionRe: encryption and decryption Pin
Richard Deeming14-Aug-15 4:41
mveRichard Deeming14-Aug-15 4:41 
QuestionRe: encryption and decryption Pin
Richard MacCutchan14-Aug-15 20:53
mveRichard MacCutchan14-Aug-15 20:53 
QuestionVS 2010 Combobox Not Populating Access Dropdown List Data Pin
VSForEver13-Aug-15 19:32
VSForEver13-Aug-15 19:32 
QuestionRe: VS 2010 Combobox Not Populating Access Dropdown List Data Pin
Paul Conrad7-Sep-15 7:25
professionalPaul Conrad7-Sep-15 7:25 
QuestionEntity framework connection string on SQL server and on SQL server Express Pin
satc12-Aug-15 5:37
satc12-Aug-15 5:37 
I'm using entity Framework 6 DBContext , Database First.

I have created the Model using wizard form an existing SQL server database.
Now on the app.config file , this connection string :

 <connectionStrings>

<add name="MyEntities" connectionString="metadata=res://*/Model1.csdl|res://*/Model1.ssdl|    res://*/Model1.msl;provider=System.Data.SqlClient;provider connection string="data source=My_PC;initial catalog=MyDatabase;integrated     security=True;MultipleActiveResultSets=True;App=EntityFramework"" providerName="System.Data.EntityClient" />

</connectionStrings>


This is working on a PC with SQL server installed.
But if I try on a pc with SQL server Express , this is not working ( of course I have changed in the connection string the PC name. The database name is the same ).

What should I change in the above connection string in order to make it work on a SQL server express ?

My goal is to make this programmatically , so when my application is start , to test if is a SQL server or SQL server express environment and to make the changes on the app.config file .

Thank you !
AnswerRe: Entity framework connection string on SQL server and on SQL server Express Pin
Wendelius12-Aug-15 6:00
mentorWendelius12-Aug-15 6:00 
GeneralRe: Entity framework connection string on SQL server and on SQL server Express Pin
satc12-Aug-15 6:40
satc12-Aug-15 6:40 
GeneralRe: Entity framework connection string on SQL server and on SQL server Express Pin
Wendelius12-Aug-15 7:01
mentorWendelius12-Aug-15 7:01 
GeneralRe: Entity framework connection string on SQL server and on SQL server Express Pin
satc12-Aug-15 10:52
satc12-Aug-15 10:52 
GeneralRe: Entity framework connection string on SQL server and on SQL server Express Pin
Wendelius12-Aug-15 11:04
mentorWendelius12-Aug-15 11:04 
QuestionSQL server :Compressed string occupy more space than original string Pin
satc11-Aug-15 4:36
satc11-Aug-15 4:36 
AnswerRe: SQL server :Compressed string occupy more space than original string Pin
Richard MacCutchan11-Aug-15 5:37
mveRichard MacCutchan11-Aug-15 5:37 
GeneralRe: SQL server :Compressed string occupy more space than original string Pin
satc11-Aug-15 6:25
satc11-Aug-15 6:25 
GeneralRe: SQL server :Compressed string occupy more space than original string Pin
Richard MacCutchan11-Aug-15 6:53
mveRichard MacCutchan11-Aug-15 6:53 
GeneralRe: SQL server :Compressed string occupy more space than original string Pin
satc11-Aug-15 6:59
satc11-Aug-15 6:59 
AnswerRe: SQL server :Compressed string occupy more space than original string Pin
Richard Deeming11-Aug-15 7:29
mveRichard Deeming11-Aug-15 7:29 
GeneralRe: SQL server :Compressed string occupy more space than original string Pin
satc11-Aug-15 7:58
satc11-Aug-15 7:58 
GeneralRe: SQL server :Compressed string occupy more space than original string Pin
Richard Deeming11-Aug-15 8:17
mveRichard Deeming11-Aug-15 8:17 
GeneralRe: SQL server :Compressed string occupy more space than original string Pin
satc11-Aug-15 10:06
satc11-Aug-15 10:06 
GeneralRe: SQL server :Compressed string occupy more space than original string Pin
Richard Deeming11-Aug-15 10:37
mveRichard Deeming11-Aug-15 10:37 
GeneralRe: SQL server :Compressed string occupy more space than original string Pin
satc11-Aug-15 11:42
satc11-Aug-15 11:42 
GeneralRe: SQL server :Compressed string occupy more space than original string Pin
Richard Deeming13-Aug-15 1:35
mveRichard Deeming13-Aug-15 1:35 

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.