Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 42220

Computed Column in sql 2008 R2

$
0
0
I have a persisted computed column in my sql table, which has the following computed specification: ('W'+CONVERT([varchar](10),[WONum],0))

WONum is my auto-increment and primary key field. So basically it is a copy of that integer with a W in front of it like W1504.

My problem is when I insert a new record from my winform it puts the auto-increment number in it's textbox but it doesn't also show the computed value in it's textbox. It is in the table because when I leave the form and go back in it shows up. Does anyone know how to get it to put both of those values in their respective textboxes on addnew from a winform?

Thanks,
Stacy

Viewing all articles
Browse latest Browse all 42220

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>