P
Phil
Hi all,
1st post here so................
I am using VS.Net and coding in VB. I am following some examples from a book
that shows a connection string as:-
sqlcnn = new sqlconnection("data source=(local);initial
catalog=Northwind;integrated security=SSPI")
My server is the VS.Net default, ie. \\computername\NetSDK, therefore the
above in my code becomes:-
sqlcnn = new sqlconnection("data source=MyComputer\NetSDK;initial
catalog=Northwind;integrated security=SSPI")
I have used this in two different examples. On one it appears to work
sporadically and on the most recent I am receiving an 'Access is Denied'
runtime error and the handler refers to an UnauthorisedAccessException at
the point in code that refers to the Class where the connection is being
made. Therefore I am assuming that it is a problem with connecting to the
sql database......but not sure how to be certain or what the problem might
be. The dB is located properly and uses the default Windows Authentication.
It is not as simple to step through this as the 'example' is a client/host
example with Object Pooling.
Any thoughts?????
Cheers,
Phil
1st post here so................
I am using VS.Net and coding in VB. I am following some examples from a book
that shows a connection string as:-
sqlcnn = new sqlconnection("data source=(local);initial
catalog=Northwind;integrated security=SSPI")
My server is the VS.Net default, ie. \\computername\NetSDK, therefore the
above in my code becomes:-
sqlcnn = new sqlconnection("data source=MyComputer\NetSDK;initial
catalog=Northwind;integrated security=SSPI")
I have used this in two different examples. On one it appears to work
sporadically and on the most recent I am receiving an 'Access is Denied'
runtime error and the handler refers to an UnauthorisedAccessException at
the point in code that refers to the Class where the connection is being
made. Therefore I am assuming that it is a problem with connecting to the
sql database......but not sure how to be certain or what the problem might
be. The dB is located properly and uses the default Windows Authentication.
It is not as simple to step through this as the 'example' is a client/host
example with Object Pooling.
Any thoughts?????
Cheers,
Phil