Dear SHEBERT,
Error: Import Database Schema error: Invalid length parameter passed to the
substring function.
This is an exception thrown by SQL server.
Accoding to your description, this is the first time for you to get the
database schema in the vs2005
database project. You may check the following document. Please make sure
you do the same steps as the document mentioned.
a) You can import a database to an empty database project.
http://msdn2.microsoft.com/en-us/library/aa833177(VS.80).aspx
[How to: Import a Database Schema ]
b) You can import a database when creating database project.
http://msdn2.microsoft.com/en-us/library/aa833235(VS.80).aspx
[How to: Create Database Project]
If the issue still persists, even through you follow the steps as the
document.
In order to narrow down the issue, could you please provide some further
information?
1. Have you installed the latest sp (sp4) on your SQL 2000?
2. Have you installed the latest sp (sp1) on your VS 2005?
3. Have you tested with other database (such as the sample database
NORTHWIND)? Did you meet the same issue? If false, I think the issue is
related to your special database.
Is it possible for you to packet your database and send it to me? Thus we
can reproduce the issue on my side and perform the further analyze.
My aliasis v-wywang@microsoft.com.
http://technet.microsoft.com/en-us/sqlserver/bb331729.aspx [SQL Server 2000 Downloads]
http://msdn2.microsoft.com/en-us/vstudio/bb265237.aspx [Visual Studio 2005 Service Pack 1 (SP1)]
Hope this helps.
Sincerely,
Wen Yuan
Microsoft Online Community Support
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.