Linq2Sql issues

G

gerry

I am looking at Linq2Sql in VS2008 and have run into a couple of things :

<Short Version>
1 - Linq To Sql designer has problems with multi-level namespace. View
Code generates error "The name SimpleNS.SubNS is not a valid identifier.
Please choose a different name." code generated ignores namespace

2 - resetting DataContext.ConnectionString , the following code
generates exceptions :

DeleteDatabase(); // tries to delete db from original
ConnectionString

if ( !DatabaseExists() )
{
string path=DatabaseFilename(); // DatabaseFilename : method
to extract db file path from connection string
Directory.CreateDirectory( Path.GetDirectoryName( path ) );
CreateDatabase(); // db file already exists - I know it
doesn't & we just dropped through !DatabaseExists()
}

</Short Version>

<Long Version>

1 - the Linq to Sql designer seems to have problems bringing up the code
window when using a 'multi-level' namespace.

using a namespace of SimpleNS, everything works fine - we get :
namespace SimpleNS
{
partial class Linq2SqlDataContext
{
}
}

setting the namespace to SimpleNS.SubNS & selecting 'View Code' causes
the error "The name SimpleNS.SubNS is not a valid identifier. Please choose
a different name."
using a single level namespace, we get :
partial class Linq2SqlDataContext
{
}

if I fix the code manually everything works fine, until I do another
'View Code' where i get the same error message again and this code is
generated :
partial class Linq2SqlDataContext
{
}
namespace SimpleNS.SubNS
{
partial class Linq2SqlDataContext
{
}
}


2 - I have my LinqToSql in a library.

I have an SqlExpress database setup for library development, the
DataContext has the Applications Settings property set to true.
I tried to create an app setting that would override the library setting
but the DataContext continued to reference the library connection string.
So instead I added modified the DataContext.OnCreated() method to change
the Connection.ConnectionString to the proper connection string for the
application.
This worked fine.
My next step was to have the DataContext check for the existance of the
database file and if it wasn't found then create it. as :

if ( !DatabaseExists() )
{
string path=DatabaseFilename(); // DatabaseFilename :
method to extract db file path from connection string
Directory.CreateDirectory( Path.GetDirectoryName( path ) );
CreateDatabase();
}

this worked fine.
Then I deleted the app db.
When I reran the app the CreateDatabase() generated an exception stating
that the db file already existed, which I know it didn't because I
completely deleted the file & parent folder and DatabaseExists() had just
returned false !

I rebooted assuming this was some type of caching issue.
After reboot the problem persisted.So I changed my code to be :

try
{
DeleteDatabase();
} catch(Exception e) { }
if ( !DatabaseExists() )
{
string path=DatabaseFilename(); // DatabaseFilename :
method to extract db file path from connection string
Directory.CreateDirectory( Path.GetDirectoryName( path ) );
CreateDatabase();
}

Now the DeleteDatabase() generated an exception : db file does not exist.
This would be fine except that the filename in the exception message was for
the db file in the library and not the application !!!

So I add the following to the DataContext to get the proper db files deleted
:
public new void DeleteDatabase()
{
File.Delete( DatabaseFilename() );
File.Delete( DatabaseFilename().Replace(".mdf","_log.LDF") );
}

I changed the App db location and the create worked fine.
Running this again, the delete deleted the proper files BUT the create threw
the same file exists exception.

</Long Version>


Maybe this Linq To Sql / DataContext stuff is not quite ready for prime time
?

Anyone know if the source for System.Data.Linq.DataContext is available
somehwere ?
I'd like to follow through the CreateDatabase/DeleteDatabase/DatabaseExists
methods to see what is going on.

Gerry
 
W

WenYuan Wang [MSFT]

Hello Gerry,

#1
I reproduced this behavior on my VS 2008. The reproduce steps is as blow:
1. Created a Winform application.
2. Add new item LinqToSQL.
3. Drag-drop a table from Sever Explorer to LinqToSQl designer interface.
4. Change the "Entity Namespace" property of DataContext to
"SimpleTest.subtest"
5. After I click "View Code" on Table, I get the error message "The name
SimpleNS.SubNS is not a valid identifier. Please choose a different name."
6. If I fix the code manually, it works fine. But if I do 'View Code'
again, I get the same error message.
Please feel free to correct me if I'm missing anything here.

This seems like a product issue. I think I need consult product team. I
will reply you as soon as possible. If you have any more concerns on it,
please feel free to post here. Thanks for your understanding.

#2
It sounds like what you need is the soure code for
System.Data.Linq.DataContext , correct? If I misunderstood anything, please
don't hesitate to correct me.

If this case, I suggest you can use Reflector. It is a free and powerful
tool which could be used for decompiling .net assemblies. You can download
it at http://www.aisto.com/roeder/dotnet/
You can load data.linq.dll into Reflector for analyse.
System.data.linq.dll is located in C:\Program Files\Reference
Assemblies\Microsoft\Framework\v3.5\System.Data.Linq.dll.

Hope this helps. Please feel free to update here again, if there is
anything unclear. We are glad to assist you.

Have a great day,
Best regards,

Wen Yuan
Microsoft Online Community Support
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
 
G

gerry

update :

1 - Linq To Sql designer has problems with multi-level namespace. View
Code generates error "The name SimpleNS.SubNS is not a valid identifier.
Please choose a different name." code generated ignores namespace

2 - DataContext does not seem to be doing |DataDirectory| subsitution on
connection string.
Added new constructor to do proper substitution ( fragile, will break if
property setting name changes & doesn't fix other contructors )

public Linq2SqlDataContext( bool FixDataDirectory ) :
base(
(global::Test.Linq.Properties.Settings.Default.Linq2SqlConnectionString).Replace(
"|DataDirectory|" , AppDomain.CurrentDomain.GetData( "DataDirectory" ) as
string ) , mappingSource )
{
OnCreated();
}

3 - CreateDatabase() generating aleady exists exceptions even though
DatabaseExists() returns falsed ( and db file definitely does not exist )
Supposedly this problem occurs when a user instance specifies an initial
catalog in the connection string.
I do not specify an initial catalog in my connection string.

There is disconnect here between DataContext and SqlServer regarding
when/where a database does/doesn't exist.

For whatever reason sql server express is associating the database file in
the connection string with a cached database instance - how do we see/delete
such associations ?

Gerry
 
G

gerry

Thanks for the reply.

Please see my second post under this thread.

I agree that #1 looks like a bug in the VS2008 Link2Sql Designer

for #2 I have found this to be multiple issues :
a) DataContext is not performing literal substitution on the connection
string as I beleive it should - ie |DataDirectory| is not being replaced
resulting in 'Invalid character' exceptions.
b) Modifying the DataContext.Connection.ConnectionString anywhere but in
the constructor does not properly propgate the change through out the
DataContext ie. DeleteDatabase()
c) it looks like somehow, sql server express has made a permanent
association between the database filename& location with an existing
database with the same name in another project.
changing the database name or location fixes the
DatabaseExists()/CreateDatabase()/DeleteDatabase() problems.

A new question comes out of this - how do I find/delete these database
name/location associations within Sql Server Express 2005 ?

Gerry
 
W

WenYuan Wang [MSFT]

Hello Gerry,
Thanks for your reply.

First of all, I'd like to summary what I understood.

a) I understood you received an "Invalid Character" exception when the
connection for DataContext includes "|DataDirectory|". Please don't
hesitate to correct me if I misunderstood anything here.

If this is the case, do you have any simple code to reproduce this issue? I
have tried it on my side. But, it seems works fine. I follow the steps as
below:

1) Add linqtosql into my project.
2) Add a new connection (attached file) in Server Explorer.
3) Drag-drop a table into linqtosql designer interface.
4) The connection of datacontext is
[Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\testDB.mdf;Integrated
Security=True;User Instance=True]
5) At last, I add the following code in my application.

private void button1_Click(object sender, EventArgs e)
{
ClassLibrary1.DataClasses1DataContext dccdc = new
ClassLibrary1.DataClasses1DataContext();
bool f = dccdc.DatabaseExists();

}

It works file. The value retried by DataExists method is true. I didn't get
any error message. If I'm missing anything here, please correct me.

b) I understood the issue is that change the
DataConext.connection.connectionstring anywhere but in constructor doesn't
take effect, correct? Please correct me if I misunderstood anything here.

I made change on DataContext.connecton in my application, and check that
property again. It really takes effect. Did I miss anything here? please
correct me.

ClassLibrary1.DataClasses1DataContext dccdc = new
ClassLibrary1.DataClasses1DataContext();
dccdc.Connection.ConnectionString = @"Data Source=.\sqlexpress;Initial
Catalog=test;Integrated Security=True";
System.Windows.Forms.MessageBox.Show(dccdc.Connection.ConnectionString);

c) It seems what your main concern is that CreatDatabase() method throws
"already exists" exception even though DatabaseExists return false (and the
db file doesn't exists). If I misunderstood anything here, please correct
me. I'm not a SQL guy, but I'm sorry to say I don't think SQL Express makes
a permanent association between the database filename and location. Do you
have any reproduce steps for us? It will help on research very much. Thanks.

Please feel free to update here again, if you have any more concern. We are
glad to assist you.

Have a great day,
Best regards,

Wen Yuan
Microsoft Online Community Support
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
 
G

gerry

a - DatabaseExists() in this case does not cause an error but always
returning false, CreateDatabase() will throw Invalid Character exception
b - same as above - DatabaseExists() will not error out but Create/Delete
will at the very least reference the incorrect connectionstring
c - again DatabaseExists() does not throw the exception CreateDatabase()
does.


Please see http://dev.gerzio.ca/Linq.zip for a simple but complete solution
that demonstrates 3 apparent
issues :

1 - |DataDirectory| substitution is not occuring
2 - non-existant databases resulting in database already exists errors
on CreateDatabase()
3 - ( a new one ) CreateDatabase modifies the
Connection.ConnectionString causing some subsequent commands to fail

Gerry



WenYuan Wang said:
Hello Gerry,
Thanks for your reply.

First of all, I'd like to summary what I understood.

a) I understood you received an "Invalid Character" exception when the
connection for DataContext includes "|DataDirectory|". Please don't
hesitate to correct me if I misunderstood anything here.

If this is the case, do you have any simple code to reproduce this issue?
I
have tried it on my side. But, it seems works fine. I follow the steps as
below:

1) Add linqtosql into my project.
2) Add a new connection (attached file) in Server Explorer.
3) Drag-drop a table into linqtosql designer interface.
4) The connection of datacontext is
[Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\testDB.mdf;Integrated
Security=True;User Instance=True]
5) At last, I add the following code in my application.

private void button1_Click(object sender, EventArgs e)
{
ClassLibrary1.DataClasses1DataContext dccdc = new
ClassLibrary1.DataClasses1DataContext();
bool f = dccdc.DatabaseExists();

}

It works file. The value retried by DataExists method is true. I didn't
get
any error message. If I'm missing anything here, please correct me.

b) I understood the issue is that change the
DataConext.connection.connectionstring anywhere but in constructor doesn't
take effect, correct? Please correct me if I misunderstood anything here.

I made change on DataContext.connecton in my application, and check that
property again. It really takes effect. Did I miss anything here? please
correct me.

ClassLibrary1.DataClasses1DataContext dccdc = new
ClassLibrary1.DataClasses1DataContext();
dccdc.Connection.ConnectionString = @"Data Source=.\sqlexpress;Initial
Catalog=test;Integrated Security=True";
System.Windows.Forms.MessageBox.Show(dccdc.Connection.ConnectionString);

c) It seems what your main concern is that CreatDatabase() method throws
"already exists" exception even though DatabaseExists return false (and
the
db file doesn't exists). If I misunderstood anything here, please correct
me. I'm not a SQL guy, but I'm sorry to say I don't think SQL Express
makes
a permanent association between the database filename and location. Do you
have any reproduce steps for us? It will help on research very much.
Thanks.

Please feel free to update here again, if you have any more concern. We
are
glad to assist you.

Have a great day,
Best regards,

Wen Yuan
Microsoft Online Community Support
==================================================
This posting is provided "AS IS" with no warranties, and confers no
rights.
 
G

gerry

I added a 4th issue to the sample solution :
4 - changing the ConnectionString after the base constructor - results
in mixed usage of original & current connection strings.
CreateDatabase() - uses current connection string
DeleteDatabase() - uses original connection string
DatabaseExists() - uses original connection string


gerry said:
a - DatabaseExists() in this case does not cause an error but always
returning false, CreateDatabase() will throw Invalid Character exception
b - same as above - DatabaseExists() will not error out but Create/Delete
will at the very least reference the incorrect connectionstring
c - again DatabaseExists() does not throw the exception CreateDatabase()
does.


Please see http://dev.gerzio.ca/Linq.zip for a simple but complete
solution that demonstrates 3 apparent
issues :

1 - |DataDirectory| substitution is not occuring
2 - non-existant databases resulting in database already exists errors
on CreateDatabase()
3 - ( a new one ) CreateDatabase modifies the
Connection.ConnectionString causing some subsequent commands to fail

Gerry



WenYuan Wang said:
Hello Gerry,
Thanks for your reply.

First of all, I'd like to summary what I understood.

a) I understood you received an "Invalid Character" exception when the
connection for DataContext includes "|DataDirectory|". Please don't
hesitate to correct me if I misunderstood anything here.

If this is the case, do you have any simple code to reproduce this issue?
I
have tried it on my side. But, it seems works fine. I follow the steps as
below:

1) Add linqtosql into my project.
2) Add a new connection (attached file) in Server Explorer.
3) Drag-drop a table into linqtosql designer interface.
4) The connection of datacontext is
[Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\testDB.mdf;Integrated
Security=True;User Instance=True]
5) At last, I add the following code in my application.

private void button1_Click(object sender, EventArgs e)
{
ClassLibrary1.DataClasses1DataContext dccdc = new
ClassLibrary1.DataClasses1DataContext();
bool f = dccdc.DatabaseExists();

}

It works file. The value retried by DataExists method is true. I didn't
get
any error message. If I'm missing anything here, please correct me.

b) I understood the issue is that change the
DataConext.connection.connectionstring anywhere but in constructor
doesn't
take effect, correct? Please correct me if I misunderstood anything here.

I made change on DataContext.connecton in my application, and check that
property again. It really takes effect. Did I miss anything here? please
correct me.

ClassLibrary1.DataClasses1DataContext dccdc = new
ClassLibrary1.DataClasses1DataContext();
dccdc.Connection.ConnectionString = @"Data Source=.\sqlexpress;Initial
Catalog=test;Integrated Security=True";
System.Windows.Forms.MessageBox.Show(dccdc.Connection.ConnectionString);

c) It seems what your main concern is that CreatDatabase() method throws
"already exists" exception even though DatabaseExists return false (and
the
db file doesn't exists). If I misunderstood anything here, please correct
me. I'm not a SQL guy, but I'm sorry to say I don't think SQL Express
makes
a permanent association between the database filename and location. Do
you
have any reproduce steps for us? It will help on research very much.
Thanks.

Please feel free to update here again, if you have any more concern. We
are
glad to assist you.

Have a great day,
Best regards,

Wen Yuan
Microsoft Online Community Support
==================================================
This posting is provided "AS IS" with no warranties, and confers no
rights.
 
G

gerry

work arround for #1 -
use following as base class for DataContext

namespace Gms.Data.Linq
{
public class DataContext : System.Data.Linq.DataContext
{
public DataContext(string connection,
System.Data.Linq.Mapping.MappingSource mappingSource) :
base( Gms.Util.Config.FixDataDirectory( connection ) ,
mappingSource )
{ }
public DataContext( System.Data.IDbConnection connection ,
System.Data.Linq.Mapping.MappingSource mappingSource ) :
base(connection, mappingSource)
{ }
}
}


gerry said:
I added a 4th issue to the sample solution :
4 - changing the ConnectionString after the base constructor - results
in mixed usage of original & current connection strings.
CreateDatabase() - uses current connection string
DeleteDatabase() - uses original connection string
DatabaseExists() - uses original connection string


gerry said:
a - DatabaseExists() in this case does not cause an error but always
returning false, CreateDatabase() will throw Invalid Character exception
b - same as above - DatabaseExists() will not error out but Create/Delete
will at the very least reference the incorrect connectionstring
c - again DatabaseExists() does not throw the exception CreateDatabase()
does.


Please see http://dev.gerzio.ca/Linq.zip for a simple but complete
solution that demonstrates 3 apparent
issues :

1 - |DataDirectory| substitution is not occuring
2 - non-existant databases resulting in database already exists errors
on CreateDatabase()
3 - ( a new one ) CreateDatabase modifies the
Connection.ConnectionString causing some subsequent commands to fail

Gerry



WenYuan Wang said:
Hello Gerry,
Thanks for your reply.

First of all, I'd like to summary what I understood.

a) I understood you received an "Invalid Character" exception when the
connection for DataContext includes "|DataDirectory|". Please don't
hesitate to correct me if I misunderstood anything here.

If this is the case, do you have any simple code to reproduce this
issue?
I
have tried it on my side. But, it seems works fine. I follow the steps
as
below:

1) Add linqtosql into my project.
2) Add a new connection (attached file) in Server Explorer.
3) Drag-drop a table into linqtosql designer interface.
4) The connection of datacontext is
[Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\testDB.mdf;Integrated
Security=True;User Instance=True]
5) At last, I add the following code in my application.

private void button1_Click(object sender, EventArgs e)
{
ClassLibrary1.DataClasses1DataContext dccdc = new
ClassLibrary1.DataClasses1DataContext();
bool f = dccdc.DatabaseExists();

}

It works file. The value retried by DataExists method is true. I didn't
get
any error message. If I'm missing anything here, please correct me.

b) I understood the issue is that change the
DataConext.connection.connectionstring anywhere but in constructor
doesn't
take effect, correct? Please correct me if I misunderstood anything
here.

I made change on DataContext.connecton in my application, and check that
property again. It really takes effect. Did I miss anything here? please
correct me.

ClassLibrary1.DataClasses1DataContext dccdc = new
ClassLibrary1.DataClasses1DataContext();
dccdc.Connection.ConnectionString = @"Data Source=.\sqlexpress;Initial
Catalog=test;Integrated Security=True";
System.Windows.Forms.MessageBox.Show(dccdc.Connection.ConnectionString);

c) It seems what your main concern is that CreatDatabase() method throws
"already exists" exception even though DatabaseExists return false (and
the
db file doesn't exists). If I misunderstood anything here, please
correct
me. I'm not a SQL guy, but I'm sorry to say I don't think SQL Express
makes
a permanent association between the database filename and location. Do
you
have any reproduce steps for us? It will help on research very much.
Thanks.

Please feel free to update here again, if you have any more concern. We
are
glad to assist you.

Have a great day,
Best regards,

Wen Yuan
Microsoft Online Community Support
==================================================
This posting is provided "AS IS" with no warranties, and confers no
rights.
 
W

WenYuan Wang [MSFT]

Hello Gerry,
Thanks for your reply.

I do appreciate your time and effort! I have reproduced all these issues
with your Great sample project.
Below is my investigation:

I opened Reflector, followed through the
CreateDatabase/DeleteDatabase/DatabaseExists methods to see what is going
on. What I find is that DataContext doesn't create/delete/check database by
itself. It calls SqlProvider to achieve that In turn.

public void CreateDatabase()
{ this.CheckDispose();
this.provider.CreateDatabase();}

public bool DatabaseExists()
{ this.CheckDispose();
return this.provider.DatabaseExists();}


public void DeleteDatabase()
{ this.CheckDispose();
this.provider.DeleteDatabase();}

However, the problem is that SQLProvider use it own connection string
(SQLProvider.Connection) to connect underlying database. Thereby, we need
some issue after change the DataContext.connection property. It seems
SQLProvider.connection doesn't update on time.
Issue #1 - |DataDirectory| substitution not being performed
N Without Substitution - nothing works.
E Exists - always returns false
C Create - invalid character error
D Delete

I agree with you. |DataDirectory| is not being replaced automatic in
DataContext.

SQLProvider.DatabaseExists() method doesn't helpful.The implement of this
method just try to Connect/Change/Release current connection. If there is
no expection, it retruns ture. Otherwise, it results false.

bool IProvider.DatabaseExists()
{....
bool flag = false;
try {
this.conManager.UseConnection(this);
this.conManager.Connection.ChangeDatabase(this.dbName);
this.conManager.ReleaseConnection(this);
flag = true;
}
catch (Exception) { }
finally { }
return flag;
}

I think "conManager.Connection.ChangeDatabase(this.dbName) method" should
failed with "|DataDirectory|". Thereby, if the connection string involved
"|DataDirectory|", DatabaseExists always retrun false.

The same as above, "|" is an illegal character in
System.IO.Path.CheckInvalidPathChars() method. It always throw invalid
character error.

internal static void CheckInvalidPathChars(string path)
{ for (int i = 0; i < path.Length; i++) {
int num2 = path;
if (((num2 == 0x22) || (num2 == 60)) || (((num2 == 0x3e) || (num2
== 0x7c)) || (num2 < 0x20))) {
throw new
ArgumentException(Environment.GetResourceString("Argument_InvalidPathChars")
);
}
}
}
Issue #2 - exception for existant database when none exists if files
deleted rather db dropped something is 'remembering' databases
as created rather than looking for physical files
I With Immediate Substitution
E Exists - false - correct
C Create - database exists exception for non-existant database
D Delete - file does not exist exception - correct


It seems the error message doesn't help. According the StackTrace,
createDatabase() method failed when running some SQLCommand. But I'm not
sure which SQLCommand is the root cause. We may have to perform a memory
dump anaylse.

Regarding to the issue #3 and #4, I suspect SQLProvider.connection doesn't
update on time.

This issue seems like a code defect. I will perform further research and
log this issue in our DB for product team to investigate. If I got any
other information I will update here as soon as possible. Let me know if
you have any more concern. We are glad to assist you.

Have a great day,
Best regards,

Wen Yuan
Microsoft Online Community Support
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights
 
G

gerry

thanks for looking into this :)


WenYuan Wang said:
Hello Gerry,
Thanks for your reply.

I do appreciate your time and effort! I have reproduced all these issues
with your Great sample project.
Below is my investigation:

I opened Reflector, followed through the
CreateDatabase/DeleteDatabase/DatabaseExists methods to see what is going
on. What I find is that DataContext doesn't create/delete/check database
by
itself. It calls SqlProvider to achieve that In turn.

public void CreateDatabase()
{ this.CheckDispose();
this.provider.CreateDatabase();}

public bool DatabaseExists()
{ this.CheckDispose();
return this.provider.DatabaseExists();}


public void DeleteDatabase()
{ this.CheckDispose();
this.provider.DeleteDatabase();}

However, the problem is that SQLProvider use it own connection string
(SQLProvider.Connection) to connect underlying database. Thereby, we need
some issue after change the DataContext.connection property. It seems
SQLProvider.connection doesn't update on time.
Issue #1 - |DataDirectory| substitution not being performed
N Without Substitution - nothing works.
E Exists - always returns false
C Create - invalid character error
D Delete

I agree with you. |DataDirectory| is not being replaced automatic in
DataContext.

SQLProvider.DatabaseExists() method doesn't helpful.The implement of this
method just try to Connect/Change/Release current connection. If there is
no expection, it retruns ture. Otherwise, it results false.

bool IProvider.DatabaseExists()
{....
bool flag = false;
try {
this.conManager.UseConnection(this);
this.conManager.Connection.ChangeDatabase(this.dbName);
this.conManager.ReleaseConnection(this);
flag = true;
}
catch (Exception) { }
finally { }
return flag;
}

I think "conManager.Connection.ChangeDatabase(this.dbName) method" should
failed with "|DataDirectory|". Thereby, if the connection string involved
"|DataDirectory|", DatabaseExists always retrun false.

The same as above, "|" is an illegal character in
System.IO.Path.CheckInvalidPathChars() method. It always throw invalid
character error.

internal static void CheckInvalidPathChars(string path)
{ for (int i = 0; i < path.Length; i++) {
int num2 = path;
if (((num2 == 0x22) || (num2 == 60)) || (((num2 == 0x3e) || (num2
== 0x7c)) || (num2 < 0x20))) {
throw new
ArgumentException(Environment.GetResourceString("Argument_InvalidPathChars")
);
}
}
}
Issue #2 - exception for existant database when none exists if files
deleted rather db dropped something is 'remembering' databases
as created rather than looking for physical files
I With Immediate Substitution
E Exists - false - correct
C Create - database exists exception for non-existant database
D Delete - file does not exist exception - correct


It seems the error message doesn't help. According the StackTrace,
createDatabase() method failed when running some SQLCommand. But I'm not
sure which SQLCommand is the root cause. We may have to perform a memory
dump anaylse.

Regarding to the issue #3 and #4, I suspect SQLProvider.connection doesn't
update on time.

This issue seems like a code defect. I will perform further research and
log this issue in our DB for product team to investigate. If I got any
other information I will update here as soon as possible. Let me know if
you have any more concern. We are glad to assist you.

Have a great day,
Best regards,

Wen Yuan
Microsoft Online Community Support
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights
 
W

WenYuan Wang [MSFT]

Hello Gerry,
Thanks for your reply.

I consulted Product Team yesterday. It seems like a product issue. I have
logged this issue in our DB for product team to investigate. This will
benefit our product quality improvement. Thanks.

But I'm afraid this issue may not be fixed very soon.
For urgent issues, we can contact Microsoft CSS directly.
If the problem is confirmed to be a product bug, the case charge will be
free.
You can check http://support.microsoft.com for regional support phone
numbers.

You can also post the issue to our Connect feedback portal. Our developer
will evaluate them seriously and communicate with you directly on the issue
there.
http://connect.microsoft.com/VisualStudio/
Improving the quality of our products and services is a never ending
process for Microsoft .

Thanks again for your posting. If you have any more concern, please feel
free to update here again. We are glad to assist you.

Have a great day,
Best regards,

Wen Yuan
Microsoft Online Community Support
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top