Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changing in permissions causing "Unable to cast object of type 'System.DBNull' to type 'System.String'." error #184

Open
elijj opened this issue May 22, 2020 · 2 comments

Comments

@elijj
Copy link

elijj commented May 22, 2020

Hi,

I had been succesfully running schemazen routinely like this:

SchemaZen.exe script --server serverName --database dbName --scriptDir "c:\Users\.." -o

with no issues and finally today i am catching

"Unable to cast object of type 'System.DBNull' to type 'System.String'." error

any ideas what is going on? I am thinking possibly my permissions changed on the server. If so what permissions are required to run? Please let me know if I can provide any more helpful information.

@keith-hall
Copy link
Contributor

if you're able to run a sql trace you could maybe see which query is returning null and causing this problem, or if the stack trace shows any details like filename, line number etc. we could guess what sql object you need view permission on.

@PedroMiguelFigueiredo
Copy link

Hello. I have the exact same problem... any news on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants