void Thread::run(){ QSqlDatabase udb; udb = QSqlDatabase::addDatabase( "QODBC", "conn" ); udb.setDatabaseName( "Driver={SQL Server Native Client 10.0};Server=(local);Database=ks;UID=sa;PWD=1;" ); udb.open(); QStringList l; QSqlQuery query( udb ); query.setForwardOnly(true); query.prepare("EXEC dbo.get_initial_data '56FEB471-37A7-494E-AF87-8FC03174C74F'"); query.exec(); while (query.next()) { l.append(query.value(1).toString()); }}
void Thread::run(){ QString l; while (l.length() < 200000000) { l.append("1111111111111"); }}