![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
#3
| |||
| |||
|
#4
| |||
| |||
|
|
Hi, I have a .NET application that I want to save the Config.EXE contents to my SQL database for remote review/testing. This config file is 3700+ bytes long. I created a field in one of my tables with a VARCHAR 4800 and then created a stored procedure that receives a parameter (also VARCHAR(4800). However it fails to write anything if the length of the value that I pass is anything greater than 900. If I pass exactly 900 characters or less - the data is written to the field. If I pass 901 characters I get nothing. I'm suspicious since it is exactly 900. I seriously doubt it's some limitation of MS-SQL so I need a nudge in the right direction. Thanks |
#5
| |||
| |||
|
#6
| |||
| |||
|
|
Thanks Denis - you had my hopes up but nope - this field is not an index. I am able to cut and paste any size into this field through SQL Enterprise Manager . It's just when I try to pass a chunk of data over 900 bytes through a strored procedure parameter. I hate to build a direct SQL Update into my application but ...... |
#7
| |||
| |||
|
|
Hi Have you checked the length of the parameter defined in the .Net application? -- -Dick Christoph "ZRexRider" <jerryg (AT) ptd (DOT) net> wrote in message news:1144419858.910381.155540 (AT) g10g2000cwb (DOT) googlegroups.com... Thanks Denis - you had my hopes up but nope - this field is not an index. I am able to cut and paste any size into this field through SQL Enterprise Manager . It's just when I try to pass a chunk of data over 900 bytes through a strored procedure parameter. I hate to build a direct SQL Update into my application but ...... |
#8
| |||
| |||
|
#9
| |||
| |||
|
|
The parameters are fine. As I said earlier - everthing in my code and stored procedures are working perfectly. The problem was, for some odd reason when you use Visual Studio to view the table it shows a blank field but if you look at the exact same field using SQL Server Enterprise you see that the data really is there. So the "issue" turns out to be - Microsoft Visual Studio 2003 will not display the contents of a varchar field that has more than 900 bytes. And in my case, I tried to fix everything else!! DickChristoph wrote: Hi Have you checked the length of the parameter defined in the .Net application? -- -Dick Christoph "ZRexRider" <jerryg (AT) ptd (DOT) net> wrote in message news:1144419858.910381.155540 (AT) g10g2000cwb (DOT) googlegroups.com... Thanks Denis - you had my hopes up but nope - this field is not an index. I am able to cut and paste any size into this field through SQL Enterprise Manager . It's just when I try to pass a chunk of data over 900 bytes through a strored procedure parameter. I hate to build a direct SQL Update into my application but ...... |
![]() |
| Thread Tools | |
| Display Modes | |
| |