Converting another part of my site 2 ms sql and came across this error, after adjusting the connection. I've imported the db tables into the forum ms sql database and I can read out the data, but cannot write to the database using the sql statement below.
Does anyone know what the issue is here?
Microsoft OLE DB Provider for ODBC Drivers error '80004005'
[Microsoft][ODBC Driver Manager] Data source name too long.
Dim yYellName, yYellArray, tempstr, yYellMessage, yYellDate
yYellName = Trim(Replace(Replace(Replace(request.form("yellname"),"<" ,"["),">","]"),"'","APOS"))
tempstr = Replace(Replace(Replace(request.form("yellmessage"),"<","["),">","]"),"'","APOS")
yYellArray = Split(tempstr, " ")
for x = LBound(yYellArray) to UBound(yYellArray)
yYellMessage = yYellMessage & Excerpt(yYellArray(x),1,20) & ""
next
yYellDate = now()
' compiling SQL statement with variables.
set yYell = Server.CreateObject("ADODB.Connection")
strSQL = "INSERT INTO Yells (YellName,YellMessage,YellDate) VALUES ('" & yYellName & "','" & yYellMessage & "','" & yYellDate & "');"
yYell.Open strSQL, adoCon
Edited by Badaboem