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

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 December 7th, 2001, 09:25 PM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,575 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
sql datatypes for stored procedures

Originally posted by : Drew (dfrank@san.rr.com)I want to create a stored procedure to inesrt text into a field of my MS Access 2000 database. I created the field as Memo type in access since that is supposed to be able to contain up to 65000 characters. In my stored procedure, however, i don't know what datatype to make the paramater that I am going to to insert into that field. I tried Text, and it threw an error if i tried over 256 characters. I also tried varchar(20000), and that allowed me to enter somewhere around 800 characters without throwing an error. What is the correct data type to use to support 10000 or so characters? thankS!

Reply With Quote
  #2  
Old January 7th, 2002, 03:40 PM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,575 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
Originally posted by : TheDude (TheDude@bananateam.nl)hi, if you manage to create a stored procedure in access, let me know, cause as far as I know, it's not possible..but to answere your question, try the field type"memo"regards The Dude------------Drew at 12/7/2001 7:25:50 PMI want to create a stored procedure to inesrt text into a field of my MS Access 2000 database. I created the field as Memo type in access since that is supposed to be able to contain up to 65000 characters. In my stored procedure, however, i don't know what datatype to make the paramater that I am going to to insert into that field. I tried Text, and it threw an error if i tried over 256 characters. I also tried varchar(20000), and that allowed me to enter somewhere around 800 characters without throwing an error. What is the correct data type to use to support 10000 or so characters? thankS!

Reply With Quote
  #3  
Old June 17th, 2002, 09:23 AM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,575 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
Originally posted by : Mike Hingley (mike.hingley@aquila-networks.co.uk)Why a Stored procedure? Could DTS do it beter? DTS orffers the ability to apply Data transformations to a plethora of datasources, wuthout even using SQL.Therefore it is possible to create a DTS package insert of move of even copy data between one data source and access. The Manual gives some good examples of this.In terms of memo - THis data type is not supported directly - However I believe that it is a TEXT (16) FIELD - Try getting a copy of the Access upsize wizard, which allows you to upload an Access DB to SQL Server.In terms of passing data to Access, then ther are many ways of doing this - However if you are going to use the SP approach, then TEXT seems to be the best way to ensure that the data is big enough.Question - Do you really need the memo? Can you use a better structure? The Memo is really inefficient? Perhaps a better storage type would be to allow multiple text fields to be stored against a parent record (Foreign key solution?)Mike Hingley - MCP------------TheDude at 1/7/2002 1:40:10 PMhi, if you manage to create a stored procedure in access, let me know, cause as far as I know, it's not possible..but to answere your question, try the field type"memo"regards The Dude------------Drew at 12/7/2001 7:25:50 PMI want to create a stored procedure to inesrt text into a field of my MS Access 2000 database. I created the field as Memo type in access since that is supposed to be able to contain up to 65000 characters. In my stored procedure, however, i don't know what datatype to make the paramater that I am going to to insert into that field. I tried Text, and it threw an error if i tried over 256 characters. I also tried varchar(20000), and that allowed me to enter somewhere around 800 characters without throwing an error. What is the correct data type to use to support 10000 or so characters? thankS!

Reply With Quote
Reply

Viewing: ASP Free ForumsDatabaseSQL Development > sql datatypes for stored procedures


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 1 hosted by Hostway
Stay green...Green IT