|
database
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
query timeout expiredI am performing a update to 2m+ records, when it reaches 200 records it
times out ? rsobj = db.execute("select * from Somefile where t2 is null;") do while db.commantimeout = 0 ******** newexp & newfactor are calculated ***** SQLLine = "UPDATE Australia..InProgress SET t2 = '" & NewExp & "',t3 ='" & NewFactor & "' where t1 = '" & business & "';" DBobj.Execute(SQLLine) Loop When I monitor the current processors they are all awaitting command Hi
Define timeout value on an application level. Set it to default Show quote "Tlink" <Tlink@online.nospam> wrote in message news:%23kBqCteWGHA.2080@TK2MSFTNGP05.phx.gbl... >I am performing a update to 2m+ records, when it reaches 200 records it >times out ? > > rsobj = db.execute("select * from Somefile where t2 is null;") > do while > db.commantimeout = 0 > ******** newexp & newfactor are calculated ***** > SQLLine = "UPDATE Australia..InProgress SET t2 = '" & NewExp & "',t3 > ='" & NewFactor & "' where t1 = '" & business & "';" > DBobj.Execute(SQLLine) > Loop > > When I monitor the current processors they are all awaitting command > I am unsure as to what this means and how to do it.
Show quote "Uri Dimant" <u***@iscar.co.il> wrote in message news:uV6ceweWGHA.3864@TK2MSFTNGP04.phx.gbl... > Hi > Define timeout value on an application level. Set it to default > > > > > > "Tlink" <Tlink@online.nospam> wrote in message > news:%23kBqCteWGHA.2080@TK2MSFTNGP05.phx.gbl... >>I am performing a update to 2m+ records, when it reaches 200 records it >>times out ? >> >> rsobj = db.execute("select * from Somefile where t2 is null;") >> do while >> db.commantimeout = 0 >> ******** newexp & newfactor are calculated ***** >> SQLLine = "UPDATE Australia..InProgress SET t2 = '" & NewExp & "',t3 >> ='" & NewFactor & "' where t1 = '" & business & "';" >> DBobj.Execute(SQLLine) >> Loop >> >> When I monitor the current processors they are all awaitting command >> > > Tlink
Set cnAdo = New ADODB.Connection strConnect = "driver={SQL Server};uid=...;pwd=...;server=..;database=.....;Network=dbmssocn" cnAdo.Provider = "SQLOLEDB" cnAdo.ConnectionString = strConnect cnAdo.CommandTimeout = 0---or what do you have here? cnAdo.CursorLocation = adUseServer cnAdo.Mode = adModeRead cnAdo.Open Show quote "Tlink" <Tlink@online.nospam> wrote in message news:uUUdQ4eWGHA.3624@TK2MSFTNGP04.phx.gbl... >I am unsure as to what this means and how to do it. > > "Uri Dimant" <u***@iscar.co.il> wrote in message > news:uV6ceweWGHA.3864@TK2MSFTNGP04.phx.gbl... >> Hi >> Define timeout value on an application level. Set it to default >> >> >> >> >> >> "Tlink" <Tlink@online.nospam> wrote in message >> news:%23kBqCteWGHA.2080@TK2MSFTNGP05.phx.gbl... >>>I am performing a update to 2m+ records, when it reaches 200 records it >>>times out ? >>> >>> rsobj = db.execute("select * from Somefile where t2 is null;") >>> do while >>> db.commantimeout = 0 >>> ******** newexp & newfactor are calculated ***** >>> SQLLine = "UPDATE Australia..InProgress SET t2 = '" & NewExp & "',t3 >>> ='" & NewFactor & "' where t1 = '" & business & "';" >>> DBobj.Execute(SQLLine) >>> Loop >>> >>> When I monitor the current processors they are all awaitting command >>> >> >> > > try this
SELECT subsnp_id,pop_id,allele_id FROM AlleleFreqBySsPop as A, (SELECT Omim_No FROM av WHERE Description LIKE '%LIVER%' ORDER BY Omim_No ASC UNION ALL SELECT Omim_No FROM cs WHERE CS_Description LIKE '%LIVER%' OR CS_DATA LIKE '%LIVER%' ORDER BY Omim_No ASC UNION ALL SELECT Omim_No FROM ti WHERE Omim_Titles LIKE '%LIVER%' ORDER BY Omim_No ASC UNION ALL SELECT Omim_No FROM ti_alt_title WHERE Omim_Alt_Titles LIKE '%LIVER%' ORDER BY Omim_No ASC UNION ALL SELECT Omim_No FROM tx WHERE Omim_Text LIKE '%LIVER%' ) as B WHERE A.source LIKE '%' + cast(B.Omim_no as varchar) + '%' Hi Omnibuzz
I think you are confused about this thread. See ,what does the OP ask for ? Show quote :-)))))))))))))))) "Omnibuzz" <Omnib***@discussions.microsoft.com> wrote in message news:4AF72CF7-A02E-423A-BF50-A1A95EF10D38@microsoft.com... > try this > > SELECT subsnp_id,pop_id,allele_id > FROM AlleleFreqBySsPop as A, > (SELECT Omim_No > FROM av > WHERE Description LIKE '%LIVER%' > ORDER BY Omim_No ASC > UNION ALL > SELECT Omim_No > FROM cs > WHERE CS_Description LIKE '%LIVER%' > OR CS_DATA LIKE '%LIVER%' > ORDER BY Omim_No ASC > UNION ALL > SELECT Omim_No > FROM ti > WHERE Omim_Titles LIKE '%LIVER%' > ORDER BY Omim_No ASC > UNION ALL > SELECT Omim_No > FROM ti_alt_title > WHERE Omim_Alt_Titles LIKE '%LIVER%' > ORDER BY Omim_No ASC > UNION ALL > SELECT Omim_No > FROM tx > WHERE Omim_Text LIKE '%LIVER%' ) as B > WHERE A.source LIKE '%' + cast(B.Omim_no as varchar) + '%' > Oops.. sorry wrong number :)
Show quote "Uri Dimant" wrote: > Hi Omnibuzz > I think you are confused about this thread. See ,what does the OP ask for ? > :-)))))))))))))))) > > > "Omnibuzz" <Omnib***@discussions.microsoft.com> wrote in message > news:4AF72CF7-A02E-423A-BF50-A1A95EF10D38@microsoft.com... > > try this > > > > SELECT subsnp_id,pop_id,allele_id > > FROM AlleleFreqBySsPop as A, > > (SELECT Omim_No > > FROM av > > WHERE Description LIKE '%LIVER%' > > ORDER BY Omim_No ASC > > UNION ALL > > SELECT Omim_No > > FROM cs > > WHERE CS_Description LIKE '%LIVER%' > > OR CS_DATA LIKE '%LIVER%' > > ORDER BY Omim_No ASC > > UNION ALL > > SELECT Omim_No > > FROM ti > > WHERE Omim_Titles LIKE '%LIVER%' > > ORDER BY Omim_No ASC > > UNION ALL > > SELECT Omim_No > > FROM ti_alt_title > > WHERE Omim_Alt_Titles LIKE '%LIVER%' > > ORDER BY Omim_No ASC > > UNION ALL > > SELECT Omim_No > > FROM tx > > WHERE Omim_Text LIKE '%LIVER%' ) as B > > WHERE A.source LIKE '%' + cast(B.Omim_no as varchar) + '%' > > > > > Error is still present, this happens to all connection types is this an
error with .net 2.0 perhaps ? Show quote "Tlink" <Tlink@online.nospam> wrote in message news:%23kBqCteWGHA.2080@TK2MSFTNGP05.phx.gbl... >I am performing a update to 2m+ records, when it reaches 200 records it >times out ? > > rsobj = db.execute("select * from Somefile where t2 is null;") > do while > db.commantimeout = 0 > ******** newexp & newfactor are calculated ***** > SQLLine = "UPDATE Australia..InProgress SET t2 = '" & NewExp & "',t3 > ='" & NewFactor & "' where t1 = '" & business & "';" > DBobj.Execute(SQLLine) > Loop > > When I monitor the current processors they are all awaitting command > |
|||||||||||||||||||||||