Microsoft SQL Server
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsDatabaseMicrosoft SQL Server

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old January 15th, 2005, 11:56 AM
Graham Reeds Graham Reeds is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 28 Graham Reeds User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 36 m 24 sec
Reputation Power: 0
The very small and the very large

Couple of questions:

There isn't a boolean data type. Currently I have it set up as a tinyint. Is there a better way of handling this or is tinyint the way to go?

Also I want to use a blob data type to store Word Documents that can be anywhere up to 100KiloBytes in size. However none of the datatypes will allow me to use beyond 8000bytes. However I have seen by searching that you can get past that if you run a various scripts. However I am not that techie and just want a ticky-box to do the same job. Is there a ticky-box in SQL Server Enterprise Manager to do this?

Thanks, Graham Reeds

Reply With Quote
  #2  
Old January 15th, 2005, 09:49 PM
Doug G Doug G is offline
Grumpier Old Moderator
ASP Free God 11th Plane (10000 - 10499 posts)
 
Join Date: Sep 2003
Posts: 10,143 Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 3 Weeks 4 Days 23 h 9 m 23 sec
Reputation Power: 181
I use tinyint for boolean, I got in the habit with older versions of sql server that didn't support a null in a bit field (so tri-state checkboxes didn't work). I believe newer sql versions allow nulls in a bit field, and that would be the desired datatype for boolean data.

The sql server text and image datatypes support blob storage. I don't know what scripts you are thinking about.
__________________
======
Doug G
======
I didn't attend the funeral, but I sent a nice letter saying I approved of it. --Mark Twain

Reply With Quote
  #3  
Old January 16th, 2005, 04:39 PM
Graham Reeds Graham Reeds is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 28 Graham Reeds User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 36 m 24 sec
Reputation Power: 0
Quote:
Originally Posted by Doug G
I use tinyint for boolean, I got in the habit with older versions of sql server that didn't support a null in a bit field (so tri-state checkboxes didn't work). I believe newer sql versions allow nulls in a bit field, and that would be the desired datatype for boolean data.


I will stick with tinyint for boolean.

Quote:
Originally Posted by Doug G
The sql server text and image datatypes support blob storage. I don't know what scripts you are thinking about.


I found some scripts in the MS SQL Server Resource Kit (available on the MSDN website) that would allow you to go past the 8000 byte limit. However I don't want to create a script that will allow me to do that, I want to load my data into a blob. At the firm that I previously worked for we loaded 15kb images into blobs and never had to run a script to allow that. I simply want to load 50-100kb Word documents into the database. They aren't going to be accessed that frequently so speed isn't that important.

Is there an easy way of going past the 8000byte limit?

Reply With Quote
Reply

Viewing: ASP Free ForumsDatabaseMicrosoft SQL Server > The very small and the very large


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT