Re: Text file inported to sql2005 table



It's not the issue of display length.
Only when I click that row the data after / disappeared. If I move
cursor out, it shows the entire row again.

Thanks,

"Erland Sommarskog" <esquel@xxxxxxxxxxxxx> wrote in message
news:Xns9CDCF3DBCEFFEYazorman@xxxxxxxxxxxx
Mecn (mecn@xxxxxxxxx) writes:
I've bulk inserted a text file into SQL2005 table (1 big varcahr field).
I use SSMS open the table I see records --OK.
When I clicked any row, the rare part of record disappeared.
When I use sql query analyzer to select, I don't see the who field.
There are some strange chars there like /.... anythiong after it won't
show...

Run

SELECT datelength(col) FROM tbl

to display the length of the column in bytes. You can also use substring
to look at select parts.

By default SSMS does not display all text. You can control this under
Tools->Options->Query Results.


--
Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx

Links for SQL Server Books Online:
SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx
SQL 2000:
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx



.



Relevant Pages

  • DES 2.6 Released
    ... Also, top-n SQL ... TAPI has been extended for some commands. ... A novel proposal for hypothetical SQL queries which allow to ... Display of strata is first ordered by strata and then by predicate ...
    (comp.lang.prolog)
  • Re: ODBC Timeout problems but very hard to pin down
    ... APP 1: Access 2000 database ... I ran SQL Profiler to capture the ... validated by SQL Server. ... As it happens, the default display contains ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Problem Executing a Stored Proc within a cursor
    ... I will never use Exists again, current versions of SQL server may have ... that you have a strange way of running the cursor loop. ... DECLARE cur CURSOR STATIC LOCAL FOR ...
    (microsoft.public.sqlserver.programming)
  • Accessing a weak refcursor
    ... I've got to the stage where I can generate the required SQL and I'll ... to get the data into variables that I can display or process. ... PROCEDURE showme (p_owner IN VARCHAR2, ... CURSOR c_get_cols (pc_owner IN VARCHAR2, ...
    (comp.databases.oracle.misc)
  • Accessing a weak Refcursor
    ... I've got to the stage where I can generate the required SQL and I'll ... to get the data into variables that I can display or process. ... PROCEDURE showme (p_owner IN VARCHAR2, ... CURSOR c_get_cols (pc_owner IN VARCHAR2, ...
    (comp.databases.oracle.misc)