Click here to Skip to main content
15,896,912 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I am working on Stored Procedure generator Project on .NET and SQL server 2008.

In that I check whether the given column is Primary key or not. Fot that I Used
SQLSERVER.SMO namespace.

Project works properly on my machine but gives error on machine on which SQL server 2005.
The Error is like this .....
"Property Schema is not define for available database."
"If I used dbo.databaseName then object reference is not allowed null!"

Before some time this error was not fired......


Give me solution as soon as possible.....plssssssss
Posted
Updated 16-Apr-12 8:33am
v2
Comments
[no name] 15-Apr-12 17:36pm    
Don't ask for ASAP help, it is very rude. This is a volunteer site and people will answer on their time, not yours.
Nelek 15-Apr-12 18:27pm    
It would not be bad if you click on "improve question" and add a bit of the code triggering the error. If not, it is going to be a bit difficult to help you.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900