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

Error running the program. #1

Open
pvwowkfn opened this issue Feb 16, 2015 · 0 comments
Open

Error running the program. #1

pvwowkfn opened this issue Feb 16, 2015 · 0 comments

Comments

@pvwowkfn
Copy link

I was testing this program, and I get a SqlTraceException. It appears to look for ordinal "DatabaseID", but doesn't find it. It throws an exception and hangs after execution. Below is the stack trace.

It is not clear what is causing this error. I am unsure if it is a bug in the system or if it is user error (using a invalid trace file).

What would be the cause of this and how would I fix this error?

Thanks,
Paul Wowk

Microsoft.SqlServer.Management.Trace.SqlTraceException was unhandled by user code
HResult=-2146233088
Message=Failed to find column ordinal.
Source=Microsoft.SqlServer.ConnectionInfoExtended
StackTrace:
at Microsoft.SqlServer.Management.Trace.TraceReader.GetOrdinal(String name)
at SqlPermissions.Core.Utility.DataExtensions.TryGetOrdinal(IDataRecord record, String fieldName, Nullable1& ordinal) in c:\Users\pvwowk\Source\Repos\sqlperms\SqlPermissions.Core\Utility\DataExtensions.cs:line 234 at SqlPermissions.Core.Trace.Event.LogoutEventLoaderInfo..ctor(IDataRecord record) in c:\Users\pvwowk\Source\Repos\sqlperms\SqlPermissions.Core\Trace\Event\LogoutEventLoaderInfo.g.cs:line 37 at SqlPermissions.Core.Trace.Event.EventFactory.<.cctor>b__4(IDataRecord record) in c:\Users\pvwowk\Source\Repos\sqlperms\SqlPermissions.Core\Trace\Event\EventFactory.g.cs:line 42 at SqlPermissions.Core.Trace.Event.EventFactory.Build(IDataRecord record) in c:\Users\pvwowk\Source\Repos\sqlperms\SqlPermissions.Core\Trace\Event\EventFactory.cs:line 82 at SqlPermissions.Core.Trace.TraceSource.<>c__DisplayClass6.<GetEvents>b__4(IObserver1 o, CancellationToken c) in c:\Users\pvwowk\Source\Repos\sqlperms\SqlPermissions.Core\Trace\TraceSource.cs:line 95
at System.Reactive.Linq.QueryLanguage.<>c__DisplayClass1f31.<Create>b__1f1(IObserver1 observer)
at System.Reactive.AnonymousObservable1.SubscribeCore(IObserver1 observer)
at System.Reactive.ObservableBase1.Subscribe(IObserver1 observer)
InnerException:

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

1 participant