473,661 Members | 2,429 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 1347
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*********@gm ail.comwrote in message
news:11******** **************@ 19g2000hsx.goog legroups.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 comments are longer than the documentation. A google search shows a similar lack up information regarding SET. I have therefore added a new article to my site for those interested in the MySQL SET datatype, which can be found at: ...
11
13269
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 inconsistent metadata for a column. Metadata information was changed at execution time. OLE DB error trace . The Oracle datatype of the column with the supposedly inconsistent
1
4582
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 other fields are successfully migrated except for that field with gif image (I get only "GIF89A" as value in that field on MS SQL). Also, "Import/Export Data" wizard on SQL server "sees" that field as LONG VARCHAR???? (isn't this supposed to be...
2
3820
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 works as expected. But sometimes I get an error : "The active directory datatype cannot be converted to/from a native DS datatype" And the only way to resolve this error is to kill the aspnet_wp.exe manually.
0
4670
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 number of different types of data coming in. I have a databuffer for each type of data coming in.
1
2157
by: joe | last post by:
Any articles relating with Uploading images files to server and resize the image by asp.net 2.0
8
3665
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 problemo there. But, when retrieving the docs from my asp.net page, the docs are somehow corrupted, and I cannot open them using MS Word. Documents are stored in the "data" field of my Documents table. The "data" fields is of datatype Image. The...
0
898
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' xmlns:rs='urn:schemas-microsoft-com:rowset' xmlns:z='#RowsetSchema'> <s:Schema id='RowsetSchema'> <s:ElementType name='row' content='eltOnly'> <s:AttributeType name='seq' rs:number='1' rs:writeunknown='true'> <s:datatype dt:type='number'...
12
1496
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 its data to hide all of the complex (or should I say the huge chuncks of code) from the page itself.
0
8851
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8754
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8542
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7362
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5650
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4177
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4343
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2760
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 we have to send another system
2
1740
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.