Drop Table

Support Forum for database administrators and web based access to important newsgroups related to databases
Register on Database Support Forum Edit your profileCalendarFind other Database Support forum membersFrequently Asked QuestionsSearch this forum -> 
For Database admins: Free Database-related Magazines Now Free shipping to Texas


Post New Thread










Thread
Author

How to type a multiline text in a column?
I can't find how to enter a multiline text in a row...
I use SQL Server Management Studio, Table >> Open Table. I have a text
column (varchar) and I want to type some text containing CRLF. I alos tried
to copy / paste from notepad a multiline, but it insert only the first line.
Please help!
Thanks


Report this thread to moderator Post Follow-up to this message
Old Post
Catalin NASTAC
03-10-06 02:25 PM


Re: How to type a multiline text in a column?
Catalin NASTAC  (CatalinNASTAC@discu
ssions.microsoft.com)  writes:
> I can't find how to enter a multiline text in a row... I use SQL Server
> Management Studio, Table >> Open Table. I have a text column (varchar)
> and I want to type some text containing CRLF. I alos tried to copy /
> paste from notepad a multiline, but it insert only the first line.

Do it from a query window:

INSERT tbl(a, b, c)
VALUES (1, 2, 'This text
has a newline it')




--
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pr...oads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodin...ions/books.mspx

Report this thread to moderator Post Follow-up to this message
Old Post
Erland Sommarskog
03-12-06 01:23 AM


Re: How to type a multiline text in a column?
Thanks, but should I understand that I have no way to enter it by SQLSMS?
Like CTRL+Enter in EM 2000? It was "discontinued"?

"Erland Sommarskog" wrote:

> Catalin NASTAC  (CatalinNASTAC@discu
ssions.microsoft.com) writes: 
>
> Do it from a query window:
>
> INSERT tbl(a, b, c)
>    VALUES (1, 2, 'This text
> has a newline it')
>
>
>
>
> --
> Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se
>
> Books Online for SQL Server 2005 at
> http://www.microsoft.com/technet/pr...oads/books.mspx
> Books Online for SQL Server 2000 at
> http://www.microsoft.com/sql/prodin...ions/books.mspx
>

Report this thread to moderator Post Follow-up to this message
Old Post
Catalin NASTAC
03-13-06 02:24 PM


Re: How to type a multiline text in a column?
Catalin NASTAC  (CatalinNASTAC@discu
ssions.microsoft.com)  writes:
> Thanks, but should I understand that I have no way to enter it by SQLSMS?
> Like CTRL+Enter in EM 2000? It was "discontinued"?

It may be that you don't have that possibility. Plenty of features were
dropped from EM and QA when Mgmt Studio was created. This may be one of
them.

Personally, I don't use Open Table, so I don't know. I find that writing
SQL statements to insert data is more productive in the long run.


--
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pr...oads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodin...ions/books.mspx

Report this thread to moderator Post Follow-up to this message
Old Post
Erland Sommarskog
03-14-06 01:24 AM


Sponsored Links





Last Thread Next Thread
Post New Thread

MS SQL Server Tools archive

Show a Printable Version Email This Page to Someone! Receive updates to this thread
Microsoft SQL Server
Access database support
PostgreSQL Replication
SQL Server ODBC
FoxPro Support
PostgreSQL pgAdmin
SQL Server Clustering
MySQL ODBC
Web Applications with dBASE
SQL Server CE
MySQL++
Sybase Database Support
MS SQL Full Text Search
PostgreSQL Administration
SQL Anywhere support
DB2 UDB Database
Paradox Database Support
Filemaker Database
Berkley DB
SQL 2000/2000i database
ASE Database
Forum Jump:
All times are GMT. The time now is 08:36 AM.

 
Mobile devices forum | Database support forum archive




Copyrights DropTable.com Database Support Forum 2004 - 2006