Does anyone know of a way to print out the contents of the OSQL buffer? I have written some scripts which, when I run via OSQL, simply return the status of each command. I would like to show the user the sql statement which is being executed.
e.g. osql -d dbname
1> select * from table
2> go...
Cheers for that, it is basically a bug in SQL server. It uses 1 byte to designate the length (i.e. max 255). I have used TEXT instead and it is now OK.
Thanks again.
Does anyone know if the following is a bug or am I simple.
I have a table with a varchar (500), I use Enterprise manager to fill it with '#'s.
When I select the field into my sqc (embedded sql) program I get 255 charachters and the rest is spaces.
osql returns all 500 characters, isql returns...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.