-
Driver's SQLSetConnectAttr failed???
I have the page set up with a form that tells ASPdb what table to show, and I keep it in a session variable, problem is when it is a new session. I am trying to set up a default table to show when it is a new session, but can't seem to get it to work, and I have never seen this error code before:
<---- ERROR ---->
Error # = 0
Description = [Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr failed
Source = Microsoft OLE DB Provider for ODBC Drivers
SQL State = IM006
NativeError = 0
<---- CODE ---->
<%
Set Admin=Server.CreateObject("ASPdb.Pro"
Admin.dbmdb="D:Websdatavolzcpa.mdb"
Admin.DBColor = "10,auto,lightblue"
Admin.dbGridTableTag = "border=3 cellspacing=3 cellpadding=3"
'Admin.dbDebug=True
Admin.DbMode = "Dual"
if isempty(Request.Form("TableID") then <----Start of "show table" code
F = todo
else
F = Request("TableID"
end if
If F <> "" then
Admin.dbReset(1)
Session("FR" = F
End If
If F = "games" then
Admin.dbMemoTextSize=0
else
Admin.dbMemoTextSize=40
End If
If F = "links" then
Admin.dbMemoTextSize=0
else
Admin.dbMemoTextSize=40
End If
Admin.dbSQL = "Select * from " & Session("FR" & ""
Admin.dbImageDir="images/"
Admin.dbGridInc=10
Admin.dbNavigation="bottom"
Admin.dbNavigationItem="top, bottom, next, prev, gridrow, color, filter, download, add, update, edit, delete"
Admin.dbNavigationIcon="std"
Admin.dbUnit = 1
Admin.dbEditHideFlds="ID"
Admin.dbFilterHideFlds="ID"
Admin.dbFormHideFlds="ID"
Admin.dbOptions = "Heading=<B>#tablename#</B><BR>"
Admin.dbEditParams="TableName=" & Session("FR" & ",BookMarkFlds=0,InputSize=7x70,TableTag=BORDE R=2"
Admin.aspDBPro
%>
<---- END CODE ---->
I would be grateful for any help!
Michael
-
Driver's SQLSetConnectAttr failed??? (reply)
hi michael,
this is what i just found ...
haven't tried it yet, however
'Workaround for SQLSetCOnnectAttrib problem, clear this non-real error
if cnnIntranet.errors.count > 0 then
if cnnIntranet.errors(0).number = 0 then
cnnIntranet.errors.clear
end if
end if
also see: http://support.microsoft.com/support/kb/articles/Q197/4/59.ASP
------------
Michael at 9/26/00 3:24:48 PM
I have the page set up with a form that tells ASPdb what table to show, and I keep it in a session variable, problem is when it is a new session. I am trying to set up a default table to show when it is a new session, but can't seem to get it to work, and I have never seen this error code before:
<---- ERROR ---->
Error # = 0
Description = [Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr failed
Source = Microsoft OLE DB Provider for ODBC Drivers
SQL State = IM006
NativeError = 0
<---- CODE ---->
<%
Set Admin=Server.CreateObject("ASPdb.Pro"
Admin.dbmdb="D:Websdatavolzcpa.mdb"
Admin.DBColor = "10,auto,lightblue"
Admin.dbGridTableTag = "border=3 cellspacing=3 cellpadding=3"
'Admin.dbDebug=True
Admin.DbMode = "Dual"
if isempty(Request.Form("TableID") then <----Start of "show table" code
F = todo
else
F = Request("TableID"
end if
If F <> "" then
Admin.dbReset(1)
Session("FR" = F
End If
If F = "games" then
Admin.dbMemoTextSize=0
else
Admin.dbMemoTextSize=40
End If
If F = "links" then
Admin.dbMemoTextSize=0
else
Admin.dbMemoTextSize=40
End If
Admin.dbSQL = "Select * from " & Session("FR" & ""
Admin.dbImageDir="images/"
Admin.dbGridInc=10
Admin.dbNavigation="bottom"
Admin.dbNavigationItem="top, bottom, next, prev, gridrow, color, filter, download, add, update, edit, delete"
Admin.dbNavigationIcon="std"
Admin.dbUnit = 1
Admin.dbEditHideFlds="ID"
Admin.dbFilterHideFlds="ID"
Admin.dbFormHideFlds="ID"
Admin.dbOptions = "Heading=<B>#tablename#</B><BR>"
Admin.dbEditParams="TableName=" & Session("FR" & ",BookMarkFlds=0,InputSize=7x70,TableTag=BORDE R=2"
Admin.aspDBPro
%>
<---- END CODE ---->
I would be grateful for any help!
Michael
-
Driver's SQLSetConnectAttr failed??? (reply)
Thanks! But i just found my error! I forgot to enclose todo in "F = todo" with "".
------------
no fuss at 9/26/00 3:34:32 PM
hi michael,
this is what i just found ...
haven't tried it yet, however
'Workaround for SQLSetCOnnectAttrib problem, clear this non-real error
if cnnIntranet.errors.count > 0 then
if cnnIntranet.errors(0).number = 0 then
cnnIntranet.errors.clear
end if
end if
also see: http://support.microsoft.com/support/kb/articles/Q197/4/59.ASP
------------
Michael at 9/26/00 3:24:48 PM
I have the page set up with a form that tells ASPdb what table to show, and I keep it in a session variable, problem is when it is a new session. I am trying to set up a default table to show when it is a new session, but can't seem to get it to work, and I have never seen this error code before:
<---- ERROR ---->
Error # = 0
Description = [Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr failed
Source = Microsoft OLE DB Provider for ODBC Drivers
SQL State = IM006
NativeError = 0
<---- CODE ---->
<%
Set Admin=Server.CreateObject("ASPdb.Pro"
Admin.dbmdb="D:Websdatavolzcpa.mdb"
Admin.DBColor = "10,auto,lightblue"
Admin.dbGridTableTag = "border=3 cellspacing=3 cellpadding=3"
'Admin.dbDebug=True
Admin.DbMode = "Dual"
if isempty(Request.Form("TableID") then <----Start of "show table" code
F = todo
else
F = Request("TableID"
end if
If F <> "" then
Admin.dbReset(1)
Session("FR" = F
End If
If F = "games" then
Admin.dbMemoTextSize=0
else
Admin.dbMemoTextSize=40
End If
If F = "links" then
Admin.dbMemoTextSize=0
else
Admin.dbMemoTextSize=40
End If
Admin.dbSQL = "Select * from " & Session("FR" & ""
Admin.dbImageDir="images/"
Admin.dbGridInc=10
Admin.dbNavigation="bottom"
Admin.dbNavigationItem="top, bottom, next, prev, gridrow, color, filter, download, add, update, edit, delete"
Admin.dbNavigationIcon="std"
Admin.dbUnit = 1
Admin.dbEditHideFlds="ID"
Admin.dbFilterHideFlds="ID"
Admin.dbFormHideFlds="ID"
Admin.dbOptions = "Heading=<B>#tablename#</B><BR>"
Admin.dbEditParams="TableName=" & Session("FR" & ",BookMarkFlds=0,InputSize=7x70,TableTag=BORDE R=2"
Admin.aspDBPro
%>
<---- END CODE ---->
I would be grateful for any help!
Michael
-
I spoke too soon!
Well... I spoke too soon! I tried to update it and I got the error again. And the fix that no fuss suggested doesn't seem to work with ASPdb. Any other suggestions?
------------
Michael at 9/26/00 3:39:29 PM
Thanks! But i just found my error! I forgot to enclose todo in "F = todo" with "".
------------
no fuss at 9/26/00 3:34:32 PM
hi michael,
this is what i just found ...
haven't tried it yet, however
'Workaround for SQLSetCOnnectAttrib problem, clear this non-real error
if cnnIntranet.errors.count > 0 then
if cnnIntranet.errors(0).number = 0 then
cnnIntranet.errors.clear
end if
end if
also see: http://support.microsoft.com/support/kb/articles/Q197/4/59.ASP
------------
Michael at 9/26/00 3:24:48 PM
I have the page set up with a form that tells ASPdb what table to show, and I keep it in a session variable, problem is when it is a new session. I am trying to set up a default table to show when it is a new session, but can't seem to get it to work, and I have never seen this error code before:
<---- ERROR ---->
Error # = 0
Description = [Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr failed
Source = Microsoft OLE DB Provider for ODBC Drivers
SQL State = IM006
NativeError = 0
<---- CODE ---->
<%
Set Admin=Server.CreateObject("ASPdb.Pro"
Admin.dbmdb="D:Websdatavolzcpa.mdb"
Admin.DBColor = "10,auto,lightblue"
Admin.dbGridTableTag = "border=3 cellspacing=3 cellpadding=3"
'Admin.dbDebug=True
Admin.DbMode = "Dual"
if isempty(Request.Form("TableID") then <----Start of "show table" code
F = todo
else
F = Request("TableID"
end if
If F <> "" then
Admin.dbReset(1)
Session("FR" = F
End If
If F = "games" then
Admin.dbMemoTextSize=0
else
Admin.dbMemoTextSize=40
End If
If F = "links" then
Admin.dbMemoTextSize=0
else
Admin.dbMemoTextSize=40
End If
Admin.dbSQL = "Select * from " & Session("FR" & ""
Admin.dbImageDir="images/"
Admin.dbGridInc=10
Admin.dbNavigation="bottom"
Admin.dbNavigationItem="top, bottom, next, prev, gridrow, color, filter, download, add, update, edit, delete"
Admin.dbNavigationIcon="std"
Admin.dbUnit = 1
Admin.dbEditHideFlds="ID"
Admin.dbFilterHideFlds="ID"
Admin.dbFormHideFlds="ID"
Admin.dbOptions = "Heading=<B>#tablename#</B><BR>"
Admin.dbEditParams="TableName=" & Session("FR" & ",BookMarkFlds=0,InputSize=7x70,TableTag=BORDE R=2"
Admin.aspDBPro
%>
<---- END CODE ---->
I would be grateful for any help!
Michael
-
I spoke too soon! (reply)
Michael,
Be sure to read Tech Tip #5 at:
http://www.aspdb.com/techtips
What version of ASP-db are you running?
What is the date on the dll file?
It looks like you have an old copy of Pro.
Mark.
------------
Michael at 9/26/00 3:54:08 PM
Well... I spoke too soon! I tried to update it and I got the error again. And the fix that no fuss suggested doesn't seem to work with ASPdb. Any other suggestions?
------------
Michael at 9/26/00 3:39:29 PM
Thanks! But i just found my error! I forgot to enclose todo in "F = todo" with "".
------------
no fuss at 9/26/00 3:34:32 PM
hi michael,
this is what i just found ...
haven't tried it yet, however
'Workaround for SQLSetCOnnectAttrib problem, clear this non-real error
if cnnIntranet.errors.count > 0 then
if cnnIntranet.errors(0).number = 0 then
cnnIntranet.errors.clear
end if
end if
also see: http://support.microsoft.com/support/kb/articles/Q197/4/59.ASP
------------
Michael at 9/26/00 3:24:48 PM
I have the page set up with a form that tells ASPdb what table to show, and I keep it in a session variable, problem is when it is a new session. I am trying to set up a default table to show when it is a new session, but can't seem to get it to work, and I have never seen this error code before:
<---- ERROR ---->
Error # = 0
Description = [Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr failed
Source = Microsoft OLE DB Provider for ODBC Drivers
SQL State = IM006
NativeError = 0
<---- CODE ---->
<%
Set Admin=Server.CreateObject("ASPdb.Pro"
Admin.dbmdb="D:Websdatavolzcpa.mdb"
Admin.DBColor = "10,auto,lightblue"
Admin.dbGridTableTag = "border=3 cellspacing=3 cellpadding=3"
'Admin.dbDebug=True
Admin.DbMode = "Dual"
if isempty(Request.Form("TableID") then <----Start of "show table" code
F = todo
else
F = Request("TableID"
end if
If F <> "" then
Admin.dbReset(1)
Session("FR" = F
End If
If F = "games" then
Admin.dbMemoTextSize=0
else
Admin.dbMemoTextSize=40
End If
If F = "links" then
Admin.dbMemoTextSize=0
else
Admin.dbMemoTextSize=40
End If
Admin.dbSQL = "Select * from " & Session("FR" & ""
Admin.dbImageDir="images/"
Admin.dbGridInc=10
Admin.dbNavigation="bottom"
Admin.dbNavigationItem="top, bottom, next, prev, gridrow, color, filter, download, add, update, edit, delete"
Admin.dbNavigationIcon="std"
Admin.dbUnit = 1
Admin.dbEditHideFlds="ID"
Admin.dbFilterHideFlds="ID"
Admin.dbFormHideFlds="ID"
Admin.dbOptions = "Heading=<B>#tablename#</B><BR>"
Admin.dbEditParams="TableName=" & Session("FR" & ",BookMarkFlds=0,InputSize=7x70,TableTag=BORDE R=2"
Admin.aspDBPro
%>
<---- END CODE ---->
I would be grateful for any help!
Michael
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|