Click here to Skip to main content
15,889,931 members
Home / Discussions / Database
   

Database

 
QuestionHyperlink Column in SQL Server Pin
R. A. Abbasi29-Nov-05 19:17
R. A. Abbasi29-Nov-05 19:17 
AnswerRe: Hyperlink Column in SQL Server Pin
Mekong River1-Dec-05 14:04
Mekong River1-Dec-05 14:04 
QuestionComparing only Time in Sql? Pin
majidbhutta29-Nov-05 18:41
majidbhutta29-Nov-05 18:41 
AnswerRe: Comparing only Time in Sql? Pin
Michael Potter30-Nov-05 3:46
Michael Potter30-Nov-05 3:46 
QuestionError when install sql server sp4 Pin
Mekong River29-Nov-05 14:02
Mekong River29-Nov-05 14:02 
AnswerRe: Error when install sql server sp4 Pin
Mike Dimmick30-Nov-05 3:10
Mike Dimmick30-Nov-05 3:10 
GeneralRe: Error when install sql server sp4 Pin
Mekong River30-Nov-05 5:36
Mekong River30-Nov-05 5:36 
QuestionRecordset Open method error IDispatch error #3121 Pin
flyflyfly29-Nov-05 9:24
flyflyfly29-Nov-05 9:24 
Hello

I seriously need help on this. Please take time listen to my problem.

We have a SQL 2000 database running for a year. the main table called 'datatable' has grown to 1.8GB. Now we want to change the old database name to a different name without losing all the data in it. We made full backup of the old database and create a new empty database and restore the old database to it.

After I done that the program that populates the "datatable" in the newly restored database always give me error (IDispatch error #3121: [Microsoft][ODBC SQL Server Driver]Timeout expired :Microsoft OLE DB Provider for ODBC Drivers)
when rs->Open("DataTable", _variant_t((IDispatch *)conn,true), adOpenKeyset, adLockOptimistic,adCmdTable); excuted.

I have tried to recreate table index. It still doesn't work.
The datatable has first column "ID" as integer AutoNumber.

If I truncate the table, the program works fine. If I delete most of the data
for example only keep last a few hundred rows, the program also works.
If I don't use rs->open and rs->addNew() method to insert data, instead of using a simple insert SQL query, it works fine.

I believe the problem is that when we do restore something got messed up, but
how? If the datatable is too big and need more time to process when we call rs->open, but why the old database doesn't have this problem. The same program are running on those two databases. Any ideas?

Please help me out.

AnswerRe: Recordset Open method error IDispatch error #3121 Pin
Farhan Noor Qureshi29-Nov-05 12:04
Farhan Noor Qureshi29-Nov-05 12:04 
GeneralRe: Recordset Open method error IDispatch error #3121 Pin
flyflyfly30-Nov-05 6:42
flyflyfly30-Nov-05 6:42 
GeneralRe: Recordset Open method error IDispatch error #3121 Pin
Farhan Noor Qureshi30-Nov-05 7:48
Farhan Noor Qureshi30-Nov-05 7:48 
GeneralRe: Recordset Open method error IDispatch error #3121 Pin
flyflyfly30-Nov-05 8:30
flyflyfly30-Nov-05 8:30 
GeneralRe: Recordset Open method error IDispatch error #3121 Pin
Farhan Noor Qureshi30-Nov-05 9:04
Farhan Noor Qureshi30-Nov-05 9:04 
GeneralRe: Recordset Open method error IDispatch error #3121 Pin
flyflyfly1-Dec-05 6:24
flyflyfly1-Dec-05 6:24 
GeneralRe: Recordset Open method error IDispatch error #3121 Pin
Farhan Noor Qureshi1-Dec-05 7:17
Farhan Noor Qureshi1-Dec-05 7:17 
AnswerRe: Recordset Open method error IDispatch error #3121 Pin
S Douglas30-Nov-05 22:38
professionalS Douglas30-Nov-05 22:38 
GeneralRe: Recordset Open method error IDispatch error #3121 Pin
flyflyfly1-Dec-05 6:19
flyflyfly1-Dec-05 6:19 
GeneralRe: Recordset Open method error IDispatch error #3121 Pin
Farhan Noor Qureshi1-Dec-05 7:20
Farhan Noor Qureshi1-Dec-05 7:20 
GeneralRe: Recordset Open method error IDispatch error #3121 Pin
flyflyfly1-Dec-05 7:49
flyflyfly1-Dec-05 7:49 
GeneralRe: Recordset Open method error IDispatch error #3121 Pin
Farhan Noor Qureshi1-Dec-05 8:55
Farhan Noor Qureshi1-Dec-05 8:55 
QuestionFailed to compare Time portion of DateTime when read ACCESS database Pin
Roman Muntyanu29-Nov-05 8:35
Roman Muntyanu29-Nov-05 8:35 
QuestionMSDE and SQL SErver Express 2005 Pin
inphone29-Nov-05 4:52
inphone29-Nov-05 4:52 
AnswerRe: MSDE and SQL SErver Express 2005 Pin
Paul Conrad29-Nov-05 5:07
professionalPaul Conrad29-Nov-05 5:07 
QuestionInserting a record into a database with a front web form Pin
bhumber29-Nov-05 1:45
bhumber29-Nov-05 1:45 
AnswerRe: Inserting a record into a database with a front web form Pin
dwatkins@dirq.net29-Nov-05 11:06
dwatkins@dirq.net29-Nov-05 11:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.