Welcome to dbFreaks.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

SQL text string too long ??? (from excel to SQL server)

 
   Database Help (Home) -> Visual Basic -> ODBC RSS
Next:  SQL INSERT INTO  
Author Message
Mara

External


Since: May 10, 2004
Posts: 2



(Msg. 1) Posted: Mon May 10, 2004 10:45 pm
Post subject: SQL text string too long ??? (from excel to SQL server)
Archived from groups: microsoft>public>vb>database>odbc (more info?)

Hello everybody

I have a problem when I try to execute a store procedure in a sql server
from a VBA application made in excell, and when the string (SQL sentence) is
more than 255 caracters

simplify my program is like:

SQL_MIS = SQLOpen("DSN=name_of_the_ODBC_conexion") // opening the ODBC
connection

queryString = " bla bla bla ... "
// SQL sentence

text_SQLoutput = SQLExecQuery(SQL_MIS, queryString)
//execturion os the SQL sentence in the ODBC connection

If Not IsNumeric(text_SQLoutput) Then MsgBox ("Fallo: " + queryString)
//check if it has been ok

MsgBox (Len(queryString))
// check the length of the SQL sentence



and the SQL text string like: (two cases)


queryString = " dbo.EntityNEW 'new customer','','','','New
Customer','Aldioinert','ARGENTINA','que
impo','l','l','e','1','1','w','Discount stores','End User','Food
retail','Food retail refrigeration','non.applicable','','End
Users','¿?','A12345','2004-05-06','17:48:32' "

queryString = " dbo.EntityNEW 'new customer','','','','New
Customer','Aldioinert','ARGENTINA','que
impor','l','l','e','1','1','w','Discount stores','End User','Food
retail','Food retail refrigeration','non.applicable','','End
Users','¿?','A12345','2004-05-06','17:48:32' "


the first one is working, the second no, diferences??


queryString = " dbo.EntityNEW 'new customer','','','','New
Customer','Aldioinert','ARGENTINA','que impo'... ->255
caracteres
queryString = " dbo.EntityNEW 'new customer','','','','New
Customer','Aldioinert','ARGENTINA','que impor'... -> 256
caracteres


is it a limitation of the SQL-server?? is it of the ODBC
driver???
is there any way to solve it??




System spscification:
Windows Wxp
SQL-server 8.00.760 (SQL-server_2000)
driver ODBC: Microsoft SQL Server ODBC Driver Version 03.81.9042



thanks fot it.

 >> Stay informed about: SQL text string too long ??? (from excel to SQL server) 
Back to top
Login to vote
Display posts from previous:   
   Database Help (Home) -> Visual Basic -> ODBC All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]