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!
  • Students Click Here

*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.

Students Click Here


SQL Server '' Value is Null in SPT Query?

SQL Server '' Value is Null in SPT Query?

SQL Server '' Value is Null in SPT Query?

That pretty much sums it up, I have a field that contains a zero length field in SQL server and by the time the result is passed back through a procedure call and SPT query it is null.

Only noteworthy thing I can think of is the field is nvarchar(max) on the SQL side. I would ideally like to address this without wrapping the value in my report code with NZ as in a perfect world I am justifying jumping to SQL backend and this would represent one more change that has to be applied. Technically I/we would be migrating a number of databases with similar functionality and this would be one more change to all of them. I suspect it is more than this one field and may be in more than one place.

Any insights would be appreciated.

FWIW, my connection string looks like below with obvious substitutions.


ODBC;DRIVER=SQL Server Native Client 11.0;SERVER=MyServer\MyConnection,1433;Trusted_Connection=Yes;APP=Microsoft Office 2013;DATABASE=MyDatabase 

RE: SQL Server '' Value is Null in SPT Query?

This question(?) has been out for a while with no response. If others are like me, I have no idea what you are asking or why. Can you boil this down to a question?

Hook'D on Access
MS Access MVP 2001-2016

RE: SQL Server '' Value is Null in SPT Query?

i.e., you have a connection string which really has nothing to do with the field data types or their values.

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!

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