473,508 Members | 2,088 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

SQL Server DataType for articles

I am using SQL Server Express Edition with ASP.NET. I want to know
which data type to use for storing large articles.

Sep 18 '07 #1
3 1341
Well, that depends on what you mean by an 'Article' Articles are composed of
many things. And can be stored in a variety of ways.

If your question is as simple as how do I store a resonably large amount of
text, then the 'Text' DataType may do it. Perhaps you could be more
specific about precicely what it is you indent to store. This would be more
helpful in answering your question.

HTH

"Rohit" <rp*********@gmail.comwrote in message
news:11**********************@19g2000hsx.googlegro ups.com...
>I am using SQL Server Express Edition with ASP.NET. I want to know
which data type to use for storing large articles.

Sep 18 '07 #2
depends on the datatype of the articles. if text or html, use
nvarchar(max), if xml use xml or if binary use varbinary(max).
note: image and text are obsolete

-- bruce (sqlwork.com)
Rohit wrote:
I am using SQL Server Express Edition with ASP.NET. I want to know
which data type to use for storing large articles.
Sep 18 '07 #3
Does nvarchar(max) allots space according to the text entered or it
reserves the max space by default? I want the former.

On Sep 18, 8:31 pm, bruce barker <nos...@nospam.comwrote:
depends on the datatype of the articles. if text or html, use
nvarchar(max), if xml use xml or if binary use varbinary(max).
Sep 18 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
677
by: Mike Hillyer | last post by:
Hi Everyone; As I was perusing the MySQL documentation, I noticed that there is a lack of documentation regarding the MySQL SET datatype and the queries used to manipulate it. In fact, the...
11
13243
by: Ellen K | last post by:
Hi all, I set up our Oracle Financials as a linked server to one of my SQL Server boxes. On running a test query, I got the following error message: OLE DB provider 'MSDAORA' supplied...
1
4567
by: Davor | last post by:
I have to migrate database from AIX DB2 to MS Sql Server 2000. In one table there is field with GIF image. I have tried with "Import/Export Data" wizard on SQL server to import that table. All...
2
3795
by: Johan Delimon | last post by:
"The active directory datatype cannot be converted to/from a native DS datatype" I have an ASP.NET web page that uses queries to AD to identify current users. Delegation is configured in AD and...
0
4649
by: Macca | last post by:
Hi, I am writing an asychronous socket server to handle 20+ simulataneous connections. I have used the example in MSDN as a base. The code is shown at end of question. Each connection has a...
1
2145
by: joe | last post by:
Any articles relating with Uploading images files to server and resize the image by asp.net 2.0
8
3659
by: Jeppe Dige Jespersen | last post by:
I am building a page that takes a single parameter: documentId. I have documents stored in a SQL Server 2005 database. Storing and retrieving these from a WinForms application works fine. No...
0
894
by: aryaferari | last post by:
Hi I have an XML file with the following data pattern <xml xmlns:s='uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882' xmlns:dt='uuid:C2F41010-65B3-11d1-A29F-00AA00C14882' ...
12
1479
by: Andy B | last post by:
I need to custom build and use a dataset in c# to use with xml. Does anybody know where I can find out how to do something like this? I was going to create a class that generated the dataset and...
0
7125
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7328
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7388
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
5631
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4709
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3186
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1561
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
767
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
422
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.