Click here to Skip to main content
15,887,214 members
Home / Discussions / Database
   

Database

 
QuestionNeed help with updating columns Pin
Slow Learner23-Mar-11 3:15
Slow Learner23-Mar-11 3:15 
AnswerRe: Need help with updating columns Pin
David Mujica23-Mar-11 3:34
David Mujica23-Mar-11 3:34 
GeneralRe: Need help with updating columns Pin
musefan23-Mar-11 6:09
musefan23-Mar-11 6:09 
AnswerRe: Need help with updating columns [modified] Pin
Wendelius23-Mar-11 3:37
mentorWendelius23-Mar-11 3:37 
GeneralRe: Need help with updating columns Pin
musefan23-Mar-11 6:10
musefan23-Mar-11 6:10 
GeneralRe: Need help with updating columns Pin
Wendelius23-Mar-11 6:15
mentorWendelius23-Mar-11 6:15 
AnswerRe: Need help with updating columns Pin
Klaus-Werner Konrad25-Mar-11 7:23
Klaus-Werner Konrad25-Mar-11 7:23 
QuestionCapture error return by MS Sql Pin
Hum Dum22-Mar-11 20:28
Hum Dum22-Mar-11 20:28 
Reading excel file with OPENROWSET of sql server.
Working fine and getting values.

Now, if the file which i am reading is in use (opened), it gives error.

How should i capture this error, I tried
Declare @error varchar(50)
SELECT * 
FROM OPENROWSET('Microsoft.Jet.OLEDB.4.0',
                'Excel 8.0;Database=\\webex\cis\CIS overview.xls',
                'SELECT * FROM [CIS Overview$]')

IF(@@error <> 0 )
BEGIN
	Set @error = 'Error reading file'
	RETURN
END


But its not even reaching to IF clause,
terminate giving message
OLE DB error trace [OLE/DB Provider 'Microsoft.Jet.OLEDB.4.0' IDBInitialize::Initialize returned 0x80004005:  The provider did not give any information about the error.].
Msg 7399, Level 16, State 1, Line 3
OLE DB provider 'Microsoft.Jet.OLEDB.4.0' reported an error. The provider did not give any information about the error.


How can i capture this error ?

reagards
AnswerRe: Capture error return by MS Sql Pin
Wendelius22-Mar-11 21:11
mentorWendelius22-Mar-11 21:11 
GeneralRe: Capture error return by MS Sql Pin
Hum Dum22-Mar-11 21:29
Hum Dum22-Mar-11 21:29 
GeneralRe: Capture error return by MS Sql Pin
Wendelius22-Mar-11 21:45
mentorWendelius22-Mar-11 21:45 
GeneralRe: Capture error return by MS Sql Pin
Hum Dum22-Mar-11 22:51
Hum Dum22-Mar-11 22:51 
GeneralRe: Capture error return by MS Sql Pin
Wendelius22-Mar-11 23:19
mentorWendelius22-Mar-11 23:19 
QuestionHow to implement a dialog for updating DB with a Cancel (rollback) option Pin
crypto_rsa22-Mar-11 0:47
crypto_rsa22-Mar-11 0:47 
AnswerRe: How to implement a dialog for updating DB with a Cancel (rollback) option Pin
Johan Hakkesteegt22-Mar-11 1:01
Johan Hakkesteegt22-Mar-11 1:01 
GeneralRe: How to implement a dialog for updating DB with a Cancel (rollback) option Pin
crypto_rsa22-Mar-11 1:15
crypto_rsa22-Mar-11 1:15 
GeneralRe: How to implement a dialog for updating DB with a Cancel (rollback) option Pin
Johan Hakkesteegt22-Mar-11 1:38
Johan Hakkesteegt22-Mar-11 1:38 
GeneralRe: How to implement a dialog for updating DB with a Cancel (rollback) option Pin
crypto_rsa22-Mar-11 1:59
crypto_rsa22-Mar-11 1:59 
AnswerRe: How to implement a dialog for updating DB with a Cancel (rollback) option Pin
Wendelius22-Mar-11 2:06
mentorWendelius22-Mar-11 2:06 
QuestionHow to spread traffic on a table Pin
Johan Hakkesteegt21-Mar-11 23:24
Johan Hakkesteegt21-Mar-11 23:24 
AnswerRe: How to spread traffic on a table Pin
Corporal Agarn22-Mar-11 1:06
professionalCorporal Agarn22-Mar-11 1:06 
GeneralRe: How to spread traffic on a table Pin
Johan Hakkesteegt22-Mar-11 1:23
Johan Hakkesteegt22-Mar-11 1:23 
GeneralRe: How to spread traffic on a table Pin
Corporal Agarn22-Mar-11 1:27
professionalCorporal Agarn22-Mar-11 1:27 
GeneralRe: How to spread traffic on a table Pin
Johan Hakkesteegt22-Mar-11 2:11
Johan Hakkesteegt22-Mar-11 2:11 
AnswerRe: How to spread traffic on a table Pin
Mycroft Holmes22-Mar-11 1:32
professionalMycroft Holmes22-Mar-11 1:32 

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.