Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sqlconnect -- invalid string or buffer length

Status
Not open for further replies.

BlackDice

Programmer
Mar 1, 2004
257
US
I'm trying to use the SQLConnect() function , but I keep getting the above error message. I've tried using SQL_NTS as the string length, and even the actual number but I can't seem to get this to work. Please help! Thanks in advance!!!

bdiamond
 
you should alloc connect before connect

Ion Filipski
1c.bmp
 
by the way, what is your string what you pass to SQLConnect?

Ion Filipski
1c.bmp
 
If your string uses single and double quotes, make sure to form the query properly. You may need to escape the quotes.

Matt
 
I have it taken care of now, thank you all for your help

bdiamond
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top