INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

Application or SQL Server

Application or SQL Server

(OP)
HI There,

i am dealing with an app vendor that is adement that the errors being recieved by users is sql server related. some details:

app user gets an error:

"Object variable or with block variable not set"

I immediately check the sql server error logs and server logs but no errors stand out so i forward to the app vendor, their reply is always that is is a N/W or sql server issue.

I initially thought maybe auto close was enabled but its not and i would not have though the keep alive would have been the issue as this is enabled on alot of server and they maintain connections.

has anyone ever dealt with a similar issue or how i maybe able to pinpoint where the connection is failing?

Thanks,

Niall


RE: Application or SQL Server

The first thing I would check is with the user...is the user entering all the proper data? It looks like some expected data isn't being entered.

-SQLBill

The following is part of my signature block and is only intended to be informational.
Posting advice: FAQ481-4875: What should I know before I post?

RE: Application or SQL Server

(OP)
HI SQLBill,

Unfortunately the user is not very IT literate and has no idea of the app apart from doing their daily workload. the user works as normal but gets the error intermittently. when the error occurs she just closes the app, logs back in and resumes working.

RE: Application or SQL Server

Are you in charge of the network? Seems like the vendor is saying that a network issue can cause a problem too.

Although I must add that in a commercial product where they know that a connection failed, allowing that type of error to be sent instead of a useful one is a bit poor... I mean why aren't they trapping a failed connection and trying to reconnect?

RE: Application or SQL Server

"Object variable or with block variable not set" is not a SQL Server error. This is almost certainly a .NET error. Whether this is caused by a query returning no rows, is another matter.

If the process the user goes through to get the error is not destructive, or can be replicated in QA, then you can set up a Profiler trace to monitor what the application is sending to the database. For yuks and grins, you can also add the User Error Message, and Exception classes, to see if the application is quietly swallowing errors along the way. You will want to get a "normal" run, as well as an error run, to make sure that you are not looking at pre-existing problems.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close