Click here to Skip to main content
15,907,395 members
Home / Discussions / Database
   

Database

 
GeneralRe: filling a M:N table foreign keys Pin
siaswar29-Jan-11 15:20
siaswar29-Jan-11 15:20 
GeneralRe: filling a M:N table foreign keys Pin
jschell30-Jan-11 9:45
jschell30-Jan-11 9:45 
QuestionData migration from Oracle to SQL server 2005 Pin
vanikanc28-Jan-11 10:36
vanikanc28-Jan-11 10:36 
AnswerRe: Data migration from Oracle to SQL server 2005 Pin
dan!sh 29-Jan-11 9:34
professional dan!sh 29-Jan-11 9:34 
AnswerRe: Data migration from Oracle to SQL server 2005 Pin
jschell29-Jan-11 11:01
jschell29-Jan-11 11:01 
AnswerRe: Data migration from Oracle to SQL server 2005 Pin
scottgp29-Jan-11 12:23
professionalscottgp29-Jan-11 12:23 
GeneralRe: Data migration from Oracle to SQL server 2005 Pin
EralperYilmaz30-Jan-11 3:12
EralperYilmaz30-Jan-11 3:12 
QuestionCan't connect to database file ( mdf ) Pin
Yanshof27-Jan-11 12:14
Yanshof27-Jan-11 12:14 
I wrote simple winform ( part of it with WPF ).
In the simple application i have some place that i get information from database ( from mdf file ).

The code ..

<br />
    public SomeDBObject : System.Data.Linq.DataContext<br />
    {<br />
         ... some code ...<br />
    }<br />
<br />
    List&lt; SomeDBObject &gt; listViewItem = null;<br />
    try<br />
    {<br />
        listViewItem = new List&lt; SomeDBObject &gt;();<br />
                <br />
        using( DBDataContext dBDataContext = new DBDataContext( mdf_File_Path_String ) )<br />
        {<br />
            listViewItem.AddRange( from item in dBDataContext.dBs<br />
                                   select ( SomeDBObject ) item );<br />
        }<br />
    }<br />
    catch( Exception e )<br />
    {<br />
         ... <br />
    }<br />


now, on my machine and on some other machine all work fine.

But some on some other machine that i install ( clean machine ) my application i get exception from the line

using( DBDataContext dBDataContext = new DBDataContext( mdfFilePathString ) )

and the exception is about some problem with the sql on the machine.


The exception:

a database with the same name exists, or specified file cannot be opened, or it is located on unc share.

This is happaning with win7 and win Xp also.

I try to re-install the sql 2008 express - but this is not halping.
QuestionMigrating From SQl 2005 to 2008 Pin
#realJSOP27-Jan-11 4:59
professional#realJSOP27-Jan-11 4:59 
AnswerRe: Migrating From SQl 2005 to 2008 PinPopular
leckey27-Jan-11 5:30
leckey27-Jan-11 5:30 
GeneralRe: Migrating From SQl 2005 to 2008 Pin
Corporal Agarn27-Jan-11 6:48
professionalCorporal Agarn27-Jan-11 6:48 
AnswerRe: Migrating From SQl 2005 to 2008 Pin
R. Giskard Reventlov27-Jan-11 9:22
R. Giskard Reventlov27-Jan-11 9:22 
AnswerRe: Migrating From SQl 2005 to 2008 Pin
Mycroft Holmes27-Jan-11 11:47
professionalMycroft Holmes27-Jan-11 11:47 
GeneralRe: Migrating From SQl 2005 to 2008 Pin
EralperYilmaz30-Jan-11 3:09
EralperYilmaz30-Jan-11 3:09 
QuestionRepRbld.exe SQL Server 7 Pin
Sean Cundiff25-Jan-11 9:11
Sean Cundiff25-Jan-11 9:11 
QuestionGetting records from excel into Access??? is it that annoyinnnnnngggg Pin
scorp_scorp24-Jan-11 19:13
scorp_scorp24-Jan-11 19:13 
AnswerRe: Getting records from excel into Access??? is it that annoyinnnnnngggg Pin
Mycroft Holmes24-Jan-11 19:16
professionalMycroft Holmes24-Jan-11 19:16 
QuestionRe: Getting records from excel into Access??? is it that annoyinnnnnngggg Pin
scorp_scorp24-Jan-11 21:11
scorp_scorp24-Jan-11 21:11 
AnswerRe: Getting records from excel into Access??? is it that annoyinnnnnngggg Pin
David Skelly25-Jan-11 3:44
David Skelly25-Jan-11 3:44 
AnswerRe: Getting records from excel into Access??? is it that annoyinnnnnngggg Pin
Blue_Boy24-Jan-11 23:50
Blue_Boy24-Jan-11 23:50 
GeneralRe: Getting records from excel into Access??? is it that annoyinnnnnngggg Pin
scorp_scorp24-Jan-11 23:56
scorp_scorp24-Jan-11 23:56 
AnswerRe: Getting records from excel into Access??? is it that annoyinnnnnngggg Pin
Richard MacCutchan25-Jan-11 4:55
mveRichard MacCutchan25-Jan-11 4:55 
QuestionRe: Getting records from excel into Access??? is it that annoyinnnnnngggg Pin
scorp_scorp25-Jan-11 16:46
scorp_scorp25-Jan-11 16:46 
AnswerRe: Getting records from excel into Access??? is it that annoyinnnnnngggg Pin
Richard MacCutchan25-Jan-11 20:53
mveRichard MacCutchan25-Jan-11 20:53 
AnswerRe: Getting records from excel into Access??? is it that annoyinnnnnngggg Pin
PIEBALDconsult25-Jan-11 15:26
mvePIEBALDconsult25-Jan-11 15:26 

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.