Hi there!
I upgraded from Access Database to SQL Server.
Everything went fine. But now I have a big problem. Using ASP Scripts (and ODBC) to get all data from my database I connect to the database like
set dbConnect = Server.CreateObject("ADODB.Connection"
dbConnect.open "ODBC_entry", "user", "pass"
set RecordSet=dbConnect.execute("select * from table"
(or alternatively)
Set RecordSet = Server.CreateObject( "ADODB.Recordset" )
RecordSet.Open "select * from table", dbConnect
Now: This table consists of 38 columns. If I do things like
response.write RecordSet("Column1"&"<BR>"
response.write RecordSet("Column2"&"<BR>"
response.write RecordSet("Column3"&"<BR>"
response.write RecordSet("Column4"&"<BR>"
response.write RecordSet("Column5"&"<BR>"
response.write RecordSet("Column6"&"<BR>"
everything wents OK. But if I do something like:
response.write RecordSet("Column10"&"<BR>"
response.write RecordSet("Column1"&"<BR>"
response.write RecordSet("Column20"&"<BR>"
response.write RecordSet("Column7"&"<BR>"
it gets weird. RecordSet seems to be empty BEFORE the record I recently accessed. So after printing column 10 there's no more column 1 to column 9. Everything empty. Mostly I get an error when accessing f.e. Column1 then.
But if I do something like
select Column10, Column1, Column20, Column7 from Table
and then use
response.write RecordSet("Column10"&"<BR>"
response.write RecordSet("Column1"&"<BR>"
response.write RecordSet("Column20"&"<BR>"
response.write RecordSet("Column7"&"<BR>"
there's NO ERROR! Hence it's the column order!
Anybody ever had such a problem too? I can't carry on with my scripts since I alway get errors or empty lines. And changing every Select-Statement in every script is nearly impossible since the project consists of more than 400 different scripts and huge databases!
Anybody help me? Do you know any sollution or encountered the same failure?
Thank you for your help.
I upgraded from Access Database to SQL Server.
Everything went fine. But now I have a big problem. Using ASP Scripts (and ODBC) to get all data from my database I connect to the database like
set dbConnect = Server.CreateObject("ADODB.Connection"
dbConnect.open "ODBC_entry", "user", "pass"
set RecordSet=dbConnect.execute("select * from table"
(or alternatively)
Set RecordSet = Server.CreateObject( "ADODB.Recordset" )
RecordSet.Open "select * from table", dbConnect
Now: This table consists of 38 columns. If I do things like
response.write RecordSet("Column1"&"<BR>"
response.write RecordSet("Column2"&"<BR>"
response.write RecordSet("Column3"&"<BR>"
response.write RecordSet("Column4"&"<BR>"
response.write RecordSet("Column5"&"<BR>"
response.write RecordSet("Column6"&"<BR>"
everything wents OK. But if I do something like:
response.write RecordSet("Column10"&"<BR>"
response.write RecordSet("Column1"&"<BR>"
response.write RecordSet("Column20"&"<BR>"
response.write RecordSet("Column7"&"<BR>"
it gets weird. RecordSet seems to be empty BEFORE the record I recently accessed. So after printing column 10 there's no more column 1 to column 9. Everything empty. Mostly I get an error when accessing f.e. Column1 then.
But if I do something like
select Column10, Column1, Column20, Column7 from Table
and then use
response.write RecordSet("Column10"&"<BR>"
response.write RecordSet("Column1"&"<BR>"
response.write RecordSet("Column20"&"<BR>"
response.write RecordSet("Column7"&"<BR>"
there's NO ERROR! Hence it's the column order!
Anybody ever had such a problem too? I can't carry on with my scripts since I alway get errors or empty lines. And changing every Select-Statement in every script is nearly impossible since the project consists of more than 400 different scripts and huge databases!
Anybody help me? Do you know any sollution or encountered the same failure?
Thank you for your help.