Showing posts with label following. Show all posts
Showing posts with label following. Show all posts

Friday, March 30, 2012

JOBS

Hi All,
I am currently running a job that backs up a database using
the following code
BACKUP DATABASE [Leads] TO DISK = N'\\mymachine\d$\backup\leads.bak' WITH INIT , NOUNLOAD ,
NAME = N'Leads backup2', SKIP , STATS = 10, noFORMAT
this most of the time works fine but every now and again it
complete's fine but keeps the database locked open, is
there any way to fix this'
Thanks PhilWhat exactly do you mean by "Locked Open"?
--
Andrew J. Kelly SQL MVP
"Phil" <harlequintp@.blazemail.com> wrote in message
news:051801c3fabf$38fedc30$a101280a@.phx.gbl...
> Hi All,
> I am currently running a job that backs up a database using
> the following code
> BACKUP DATABASE [Leads] TO DISK => N'\\mymachine\d$\backup\leads.bak' WITH INIT , NOUNLOAD ,
> NAME = N'Leads backup2', SKIP , STATS = 10, noFORMAT
> this most of the time works fine but every now and again it
> complete's fine but keeps the database locked open, is
> there any way to fix this'
> Thanks Phil|||Sorry I should of been a little clearer, what I mean is
although the job says that it has completed, if you look
at the locks section in the SQL Enterprise Window, you
can still see a lock on the database showing the code
featured below.
Thanks again for your help!
Phil
>--Original Message--
>What exactly do you mean by "Locked Open"?
>--
>Andrew J. Kelly SQL MVP
>
>"Phil" <harlequintp@.blazemail.com> wrote in message
>news:051801c3fabf$38fedc30$a101280a@.phx.gbl...
>> Hi All,
>> I am currently running a job that backs up a database
using
>> the following code
>> BACKUP DATABASE [Leads] TO DISK =>> N'\\mymachine\d$\backup\leads.bak' WITH INIT ,
NOUNLOAD ,
>> NAME = N'Leads backup2', SKIP , STATS = 10,
noFORMAT
>> this most of the time works fine but every now and
again it
>> complete's fine but keeps the database locked open, is
>> there any way to fix this'
>> Thanks Phil
>
>.
>|||You have to be even clear than that<g>. What type of lock does it have?
Are these locks causing problems? It is normal for any connection to a db
to have at least a shared lock on the db. You also have to refresh EM in
order for most of the windows to show up to date information.
--
Andrew J. Kelly SQL MVP
<anonymous@.discussions.microsoft.com> wrote in message
news:0bd801c3fb1f$b4c51a40$a401280a@.phx.gbl...
> Sorry I should of been a little clearer, what I mean is
> although the job says that it has completed, if you look
> at the locks section in the SQL Enterprise Window, you
> can still see a lock on the database showing the code
> featured below.
> Thanks again for your help!
> Phil
> >--Original Message--
> >What exactly do you mean by "Locked Open"?
> >
> >--
> >Andrew J. Kelly SQL MVP
> >
> >
> >"Phil" <harlequintp@.blazemail.com> wrote in message
> >news:051801c3fabf$38fedc30$a101280a@.phx.gbl...
> >> Hi All,
> >>
> >> I am currently running a job that backs up a database
> using
> >> the following code
> >>
> >> BACKUP DATABASE [Leads] TO DISK => >> N'\\mymachine\d$\backup\leads.bak' WITH INIT ,
> NOUNLOAD ,
> >> NAME = N'Leads backup2', SKIP , STATS = 10,
> noFORMAT
> >>
> >> this most of the time works fine but every now and
> again it
> >> complete's fine but keeps the database locked open, is
> >> there any way to fix this'
> >>
> >> Thanks Phil
> >
> >
> >.
> >sql

JOBS

Hi All,
I am currently running a job that backs up a database using
the following code
BACKUP DATABASE [Leads] TO DISK =
N'\\mymachine\d$\backup\leads.bak' WITH INIT , NOUNLOAD ,
NAME = N'Leads backup2', SKIP , STATS = 10, noFORMAT
this most of the time works fine but every now and again it
complete's fine but keeps the database locked open, is
there any way to fix this'
Thanks PhilWhat exactly do you mean by "Locked Open"?
Andrew J. Kelly SQL MVP
"Phil" <harlequintp@.blazemail.com> wrote in message
news:051801c3fabf$38fedc30$a101280a@.phx.gbl...
> Hi All,
> I am currently running a job that backs up a database using
> the following code
> BACKUP DATABASE [Leads] TO DISK =
> N'\\mymachine\d$\backup\leads.bak' WITH INIT , NOUNLOAD ,
> NAME = N'Leads backup2', SKIP , STATS = 10, noFORMAT
> this most of the time works fine but every now and again it
> complete's fine but keeps the database locked open, is
> there any way to fix this'
> Thanks Phil|||Sorry I should of been a little clearer, what I mean is
although the job says that it has completed, if you look
at the locks section in the SQL Enterprise Window, you
can still see a lock on the database showing the code
featured below.
Thanks again for your help!
Phil
>--Original Message--
>What exactly do you mean by "Locked Open"?
>--
>Andrew J. Kelly SQL MVP
>
>"Phil" <harlequintp@.blazemail.com> wrote in message
>news:051801c3fabf$38fedc30$a101280a@.phx.gbl...
using
NOUNLOAD ,
noFORMAT
again it
>
>.
>|||You have to be even clear than that<g>. What type of lock does it have?
Are these locks causing problems? It is normal for any connection to a db
to have at least a shared lock on the db. You also have to refresh EM in
order for most of the windows to show up to date information.
Andrew J. Kelly SQL MVP
<anonymous@.discussions.microsoft.com> wrote in message
news:0bd801c3fb1f$b4c51a40$a401280a@.phx.gbl...
> Sorry I should of been a little clearer, what I mean is
> although the job says that it has completed, if you look
> at the locks section in the SQL Enterprise Window, you
> can still see a lock on the database showing the code
> featured below.
> Thanks again for your help!
> Phil
> using
> NOUNLOAD ,
> noFORMAT
> again itsql

job to run a remote process

I have a question regard the scheduling of a database job. I want to run a job that executes the following steps:

1) backup an entire database from DB server A

2) restore the database on DB Sever B

3) run a non database process on Server C (with xp_cmdshell)

Step 1 and 2 are easy enough but how do I start a process on an remote machine (Step 3)?

In my case the process in step 3 is will execute a Cognos DecisionStream job (rundsjob.exe)

My environment is

SQL Server 2000.

Windows Server 2003

Paul

If you are trying to do something like run a batch file remotely, you may want to look at WMIC.

Prior to Windows 2003, you'd use RCMD. This link might help you get started:

http://www.microsoft.com/technet/prodtechnol/windows2000serv/maintain/featusability/wmic.mspx

-Sue

Monday, March 26, 2012

Job Schedules Not Schedu;ling

I can execute the following file to create jobs/ job
steps/ and related job schedules in SQL Analyzer ...
however the job is never scheduled. I can not identify
anything that is incorrect.
The commands process properly... and I can browse the
resulting msdb table entries in sys_jobs, sys_jobsteps,
and sys_jobschedules... however nothing ever gets
scheduled.
Please provide assistance where appropriate.
USE MSDB
EXEC sp_add_job
@.job_name='MailPointDBEmailFTCTPopulation',
@.enabled=1,
@.notify_level_eventlog=3
EXEC sp_add_jobstep
@.job_name='MailPointDBEmailFTCTPopulation',
@.step_name='EmailFTCTPopulation',
@.subsystem='TSQL',
@.command='EXEC sp_fulltext_table Email, ''update_index'''
EXEC sp_add_jobschedule
@.job_name='MailPointDBEmailFTCTPopulation',
@.name='MailPointDBEmailFTCTPopulation',
@.enabled=1,
@.freq_type=4,
@.freq_interval=1,
@.active_start_time=183000
EXEC sp_add_job
@.job_name='MailPointDBDocumentFTCTPopulation',
@.enabled=1,
@.notify_level_eventlog=3
EXEC sp_add_jobstep
@.job_name='MailPointDBDocumentFTCTPopulation',
@.step_name='DocumentFTCTPopulation',
@.subsystem='TSQL',
@.command='EXEC sp_fulltext_table
Document, ''update_index'''
EXEC sp_add_jobschedule
@.job_name='MailPointDBDocumentFTCTPopulation',
@.name='MailPointDBDocumentFTCTPopulation',
@.enabled=1,
@.freq_type=4,
@.freq_interval=1,
@.active_start_time=183000
GOis agent running on your server ?
jobi
"Philip" <plippard@.nc.rr.com> wrote in message
news:154f01c35247$39bb07a0$a001280a@.phx.gbl...
> I can execute the following file to create jobs/ job
> steps/ and related job schedules in SQL Analyzer ...
> however the job is never scheduled. I can not identify
> anything that is incorrect.
> The commands process properly... and I can browse the
> resulting msdb table entries in sys_jobs, sys_jobsteps,
> and sys_jobschedules... however nothing ever gets
> scheduled.
> Please provide assistance where appropriate.
> USE MSDB
> EXEC sp_add_job
> @.job_name='MailPointDBEmailFTCTPopulation',
> @.enabled=1,
> @.notify_level_eventlog=3
> EXEC sp_add_jobstep
> @.job_name='MailPointDBEmailFTCTPopulation',
> @.step_name='EmailFTCTPopulation',
> @.subsystem='TSQL',
> @.command='EXEC sp_fulltext_table Email, ''update_index'''
> EXEC sp_add_jobschedule
> @.job_name='MailPointDBEmailFTCTPopulation',
> @.name='MailPointDBEmailFTCTPopulation',
> @.enabled=1,
> @.freq_type=4,
> @.freq_interval=1,
> @.active_start_time=183000
> EXEC sp_add_job
> @.job_name='MailPointDBDocumentFTCTPopulation',
> @.enabled=1,
> @.notify_level_eventlog=3
> EXEC sp_add_jobstep
> @.job_name='MailPointDBDocumentFTCTPopulation',
> @.step_name='DocumentFTCTPopulation',
> @.subsystem='TSQL',
> @.command='EXEC sp_fulltext_table
> Document, ''update_index'''
> EXEC sp_add_jobschedule
> @.job_name='MailPointDBDocumentFTCTPopulation',
> @.name='MailPointDBDocumentFTCTPopulation',
> @.enabled=1,
> @.freq_type=4,
> @.freq_interval=1,
> @.active_start_time=183000
> GO
>

Wednesday, March 21, 2012

Job notification

Hi!

I had the following problem: I had a job that should run at last December 31th, but the server machine was shut down the friday before. Is there anyway I could be notified that this job didn't run because the machine was shut down?

Thank you!

Hi,

there is no built-in functionality for this, you would have to add an additional step writing to a logging table and check this peridiocally and send out mails (or whatever you want to do for notifications) or send out mails at successfull job execution and monitor this for missing mails (which will indicate the failed execution).

HTH, Jens K. Suessmeyer.


http://www.sqlserver2005.de

Monday, March 19, 2012

Job Hang

Hi,

I am running the following TSQL command and it hangs. These commands are running from SQL 2000 server and it is querying information for SQL20005 database.

Running simple EXEC command work fine but running using Insert hangs.

Set @.Cmd = @.ServerName + '.' + @.dbname + '.dbo.sp_helpntgroup'
Print @.Cmd
Insert into dbo.DBSecurity ( NTGroupName, NTGroupID, SID, HasDbAccess)
Exec (@.Cmd)

Any idea,

Is the SQL Server 2005 server configured as a linked server or remote server?

If the SQL Server 2005 server is configured as a remote server and SET REMOTE_PROC_TRANSACTIONS is ON/the option is set then the insert...exec will start a distributed transaction automatically. So depending on your network configuration and setup you might be incurring delays there. See BOL for more details on this.

If the SQL Server 2005 server is configured as linked server then the REMOTE_PROC_TRANSACTIONS setting doesn't apply but insert...exec will always start a distribured transaction.

First, you can look for the wait type when the insert..exec statement hangs by querying sysprocesses. Search for the MSKB article that documents how to use this information. Finding the waittype will help you identify the source of the problem - network related, SQL Server or IO etc. If it is network related then can you please check the MSDTC configuration. You can also use the MSDTC console from Administrative Tools\Component Services (will differ based on OS but this is for Windows Server 2003) to see the transaction statisitics/configuration of MSDTC.

|||

SQL Server 2005 is configured as Linked Server in SQL 2000. last wait type is OLEDB
Component Services saying 1 Active transaction and 1 aborted.

Thanks

Shafiq

Job Hang

Hi,

I am running the following TSQL command and it hangs. These commands are running from SQL 2000 server and it is querying information for SQL20005 database.

Running simple EXEC command work fine but running using Insert hangs.

Set @.Cmd = @.ServerName + '.' + @.dbname + '.dbo.sp_helpntgroup'
Print @.Cmd
Insert into dbo.DBSecurity ( NTGroupName, NTGroupID, SID, HasDbAccess)
Exec (@.Cmd)

Any idea,

Is the SQL Server 2005 server configured as a linked server or remote server?

If the SQL Server 2005 server is configured as a remote server and SET REMOTE_PROC_TRANSACTIONS is ON/the option is set then the insert...exec will start a distributed transaction automatically. So depending on your network configuration and setup you might be incurring delays there. See BOL for more details on this.

If the SQL Server 2005 server is configured as linked server then the REMOTE_PROC_TRANSACTIONS setting doesn't apply but insert...exec will always start a distribured transaction.

First, you can look for the wait type when the insert..exec statement hangs by querying sysprocesses. Search for the MSKB article that documents how to use this information. Finding the waittype will help you identify the source of the problem - network related, SQL Server or IO etc. If it is network related then can you please check the MSDTC configuration. You can also use the MSDTC console from Administrative Tools\Component Services (will differ based on OS but this is for Windows Server 2003) to see the transaction statisitics/configuration of MSDTC.

|||

SQL Server 2005 is configured as Linked Server in SQL 2000. last wait type is OLEDB
Component Services saying 1 Active transaction and 1 aborted.

Thanks

Shafiq

JOB Failure!

Hi,
I've a question related to JOB failure in the DTS package.
The following is the error from the LOG file.Could some one help me in this
regard,as how i can find the easy way out.
LOG FILE ERROR:
--
Execution Started: 2/24/2005 11:34:06 PM
Execution Completed: 2/25/2005 12:17:56 AM
Total Execution Time: 2629.937 seconds
Package Steps execution information:
Step 'DTSStep_DTSActiveScriptTask_1' failed
Step Error Source: Microsoft Data Transformation Services (DTS) Package
Step Error Description:Error Code: 0
Error Source= Microsoft XML Extensions to SQL Server
Error Description: [DBNETLIB][ConnectionRead (recv()).]General netwo
rk
error. Check your network documentation.
Thanks,
ShyamShyam,
This usually means that there was an actual network problem. A switch or
router may have out of service, a cable disconnected, etc.
RLF
"Shyam" <Shyam@.discussions.microsoft.com> wrote in message
news:25D54BB1-7605-4654-ADBE-7C08CF3901B8@.microsoft.com...
> Hi,
> I've a question related to JOB failure in the DTS package.
> The following is the error from the LOG file.Could some one help me in
> this
> regard,as how i can find the easy way out.
> LOG FILE ERROR:
> --
> Execution Started: 2/24/2005 11:34:06 PM
> Execution Completed: 2/25/2005 12:17:56 AM
> Total Execution Time: 2629.937 seconds
> Package Steps execution information:
> Step 'DTSStep_DTSActiveScriptTask_1' failed
> Step Error Source: Microsoft Data Transformation Services (DTS) Package
> Step Error Description:Error Code: 0
> Error Source= Microsoft XML Extensions to SQL Server
> Error Description: [DBNETLIB][ConnectionRead (recv()).]General net
work
> error. Check your network documentation.
> Thanks,
> Shyam
>

JOB Failure!

Hi,
I've a question related to JOB failure in the DTS package.
The following is the error from the LOG file.Could some one help me in this
regard,as how i can find the easy way out.
LOG FILE ERROR:
--
Execution Started: 2/24/2005 11:34:06 PM
Execution Completed: 2/25/2005 12:17:56 AM
Total Execution Time: 2629.937 seconds
Package Steps execution information:
Step 'DTSStep_DTSActiveScriptTask_1' failed
Step Error Source: Microsoft Data Transformation Services (DTS) Package
Step Error Description:Error Code: 0
Error Source= Microsoft XML Extensions to SQL Server
Error Description: [DBNETLIB][ConnectionRead (recv()).]General network
error. Check your network documentation.
Thanks,
ShyamShyam,
This usually means that there was an actual network problem. A switch or
router may have out of service, a cable disconnected, etc.
RLF
"Shyam" <Shyam@.discussions.microsoft.com> wrote in message
news:25D54BB1-7605-4654-ADBE-7C08CF3901B8@.microsoft.com...
> Hi,
> I've a question related to JOB failure in the DTS package.
> The following is the error from the LOG file.Could some one help me in
> this
> regard,as how i can find the easy way out.
> LOG FILE ERROR:
> --
> Execution Started: 2/24/2005 11:34:06 PM
> Execution Completed: 2/25/2005 12:17:56 AM
> Total Execution Time: 2629.937 seconds
> Package Steps execution information:
> Step 'DTSStep_DTSActiveScriptTask_1' failed
> Step Error Source: Microsoft Data Transformation Services (DTS) Package
> Step Error Description:Error Code: 0
> Error Source= Microsoft XML Extensions to SQL Server
> Error Description: [DBNETLIB][ConnectionRead (recv()).]General network
> error. Check your network documentation.
> Thanks,
> Shyam
>

JOB Failure!

Hi,
I've a question related to JOB failure in the DTS package.
The following is the error from the LOG file.Could some one help me in this
regard,as how i can find the easy way out.
LOG FILE ERROR:
Execution Started: 2/24/2005 11:34:06 PM
Execution Completed: 2/25/2005 12:17:56 AM
Total Execution Time: 2629.937 seconds
Package Steps execution information:
Step 'DTSStep_DTSActiveScriptTask_1' failed
Step Error Source: Microsoft Data Transformation Services (DTS) Package
Step Error Description:Error Code: 0
Error Source= Microsoft XML Extensions to SQL Server
Error Description: [DBNETLIB][ConnectionRead (recv()).]General network
error. Check your network documentation.
Thanks,
Shyam
Shyam,
This usually means that there was an actual network problem. A switch or
router may have out of service, a cable disconnected, etc.
RLF
"Shyam" <Shyam@.discussions.microsoft.com> wrote in message
news:25D54BB1-7605-4654-ADBE-7C08CF3901B8@.microsoft.com...
> Hi,
> I've a question related to JOB failure in the DTS package.
> The following is the error from the LOG file.Could some one help me in
> this
> regard,as how i can find the easy way out.
> LOG FILE ERROR:
> --
> Execution Started: 2/24/2005 11:34:06 PM
> Execution Completed: 2/25/2005 12:17:56 AM
> Total Execution Time: 2629.937 seconds
> Package Steps execution information:
> Step 'DTSStep_DTSActiveScriptTask_1' failed
> Step Error Source: Microsoft Data Transformation Services (DTS) Package
> Step Error Description:Error Code: 0
> Error Source= Microsoft XML Extensions to SQL Server
> Error Description: [DBNETLIB][ConnectionRead (recv()).]General network
> error. Check your network documentation.
> Thanks,
> Shyam
>

Job failure - error msg attached

I have a maintenance job that is failing with the
following error message:
The job failed. Unable to determine if the owner %OWNER%
of job %JOB% has server access (reason: The log for
database 'tempdb' is not available. [SQLSTATE HY000]
(Error 9001)).
Any ideas how to resolve this one? I've looked in the KB
and BOL, and I see entries for the error and the reason
in parentheses, but not with the two together. Was
thinking just cycling the instance might resolve the
issue, but was hoping to avoid doing this. Never seen
this one before, so any help would be appreciated.
Cheers.All I can think is no DC available for authentication? I suspect the =reason in brackets to be misleading, if tempdb had lost it's log you =would be getting many other problems!)
Mike John
"knives" <anonymous@.discussions.microsoft.com> wrote in message =news:1e30b01c454a9$cf5029c0$a001280a@.phx.gbl...
> I have a maintenance job that is failing with the > following error message:
> > The job failed. Unable to determine if the owner %OWNER% > of job %JOB% has server access (reason: The log for > database 'tempdb' is not available. [SQLSTATE HY000] > (Error 9001)).
> > Any ideas how to resolve this one? I've looked in the KB > and BOL, and I see entries for the error and the reason > in parentheses, but not with the two together. Was > thinking just cycling the instance might resolve the > issue, but was hoping to avoid doing this. Never seen > this one before, so any help would be appreciated.
> > Cheers.|||I'd start by setting the job owner to sa.
--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
"knives" <anonymous@.discussions.microsoft.com> wrote in message
news:1e30b01c454a9$cf5029c0$a001280a@.phx.gbl...
> I have a maintenance job that is failing with the
> following error message:
> The job failed. Unable to determine if the owner %OWNER%
> of job %JOB% has server access (reason: The log for
> database 'tempdb' is not available. [SQLSTATE HY000]
> (Error 9001)).
> Any ideas how to resolve this one? I've looked in the KB
> and BOL, and I see entries for the error and the reason
> in parentheses, but not with the two together. Was
> thinking just cycling the instance might resolve the
> issue, but was hoping to avoid doing this. Never seen
> this one before, so any help would be appreciated.
> Cheers.

Monday, March 12, 2012

job fails through scheduler

I run a DTS job manually, it works fine woth no proble.
However, if I schedule it to run, it always fails
with the following message: ( in the Event Viewer )
Event Type: Warning
Description:
SQL Server Scheduled Job 'BackorderByItemReport'
(0x6C0FDB5A6F7B6149AB8565F9F349FDE4) - Status: Failed -
Invoked on: 2003-09-09 14:44:00 - Message: The job
failed. The Job was invoked by Schedule 2
(BackorderByItemReport). The last step to run was step 1
(BackorderByItemReport).
Since the message doesn't provide enough info, I have no
idea about what's wrong. BTW, I have set up the
SQLServerAgent service running as a network user who is
also a member of the Local System Admin Group.
Has anybody experienced this?
Thanx.
Y.J.Yanjie,
INF: How to Run a DTS Package as a Scheduled Job
http://support.microsoft.com/default.aspx?scid=kb;en-us;269074
--
Dinesh.
SQL Server FAQ at
http://www.tkdinesh.com
"Yanjie Ren" <yren@.cc3.com> wrote in message
news:640d01c377aa$773abe30$a501280a@.phx.gbl...
> I run a DTS job manually, it works fine woth no proble.
> However, if I schedule it to run, it always fails
> with the following message: ( in the Event Viewer )
> Event Type: Warning
> Description:
> SQL Server Scheduled Job 'BackorderByItemReport'
> (0x6C0FDB5A6F7B6149AB8565F9F349FDE4) - Status: Failed -
> Invoked on: 2003-09-09 14:44:00 - Message: The job
> failed. The Job was invoked by Schedule 2
> (BackorderByItemReport). The last step to run was step 1
> (BackorderByItemReport).
> Since the message doesn't provide enough info, I have no
> idea about what's wrong. BTW, I have set up the
> SQLServerAgent service running as a network user who is
> also a member of the Local System Admin Group.
> Has anybody experienced this?
> Thanx.
> Y.J.
>

job fails

I have a DTS job that runs every hour.
it truncates destination table and copies from the source table.

it has failed with the following error in view job history

"error-214721900(80040E14);provider error 14262.(37B6)"
error source Microsoft ole db provider error
pls help in this

how can i solve this, i tried restarting the job but its failing again.look here

http://support.microsoft.com/default.aspx?scid=kb;en-us;223758

Originally posted by aadil
I have a DTS job that runs every hour.
it truncates destination table and copies from the source table.

it has failed with the following error in view job history

"error-214721900(80040E14);provider error 14262.(37B6)"
error source Microsoft ole db provider error
pls help in this

how can i solve this, i tried restarting the job but its failing again.|||Also

http://search.microsoft.com/search/results.aspx?st=b&na=83&qu=80040E14&View=en-us

Originally posted by aadil
I have a DTS job that runs every hour.
it truncates destination table and copies from the source table.

it has failed with the following error in view job history

"error-214721900(80040E14);provider error 14262.(37B6)"
error source Microsoft ole db provider error
pls help in this

how can i solve this, i tried restarting the job but its failing again.|||Also this KBA http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q269074 to schedule DTS as job and resolve the issue.

Job failed with owner ()

Recently I've been seeing the following error when SQL
Server Agent jobs are run. But this doesn't always
happen, sometime the jobs run fine.
The job failed. The owner () of job xxxxxxxxxxx does not
have server access.
Any thoughts?
Is the job owned by a group that is in a Domain Local Group?
If so, you'll need this update.
825042 FIX: SQL Server Jobs That Are Owned by Non-sysadmin Users May Not
Start
http://support.microsoft.com/?id=825042
Thanks,
Kevin McDonnell
Microsoft Corporation
This posting is provided AS IS with no warranties, and confers no rights.

Friday, March 9, 2012

Job failed with owner ()

Recently I've been seeing the following error when SQL
Server Agent jobs are run. But this doesn't always
happen, sometime the jobs run fine.
The job failed. The owner () of job xxxxxxxxxxx does not
have server access.
Any thoughts?Is the job owned by a group that is in a Domain Local Group?
If so, you'll need this update.
825042 FIX: SQL Server Jobs That Are Owned by Non-sysadmin Users May Not
Start
http://support.microsoft.com/?id=825042
Thanks,
Kevin McDonnell
Microsoft Corporation
This posting is provided AS IS with no warranties, and confers no rights.

Job failed in Job scheduler

I got the following error messages from a job history. It says that the job
failed. Actually these messages are warning. Id like to make this job
successful in the job history. Is it possible to do that? How can I change i
n
the Job?
Executed as user: WCBDOM01\clusteradmin. ...tact your system administrator.
[SQLSTATE 01000] (Message 2528) DBCC execution completed. If DBCC print
ed
error messages, contact your system administrator.
[SQLSTATE 01000] (Message 2528) DBCC execution completed. If DBCC print
ed
error messages, contact your system administrator.
[SQLSTATE 01000] (Message 2528) DBCC execution completed. If DBCC print
ed
error messages, contact your system administrator.
[SQLSTATE 01000] (Message 2528) DBCC execution completed. If DBCC print
ed
error messages, contact your system administrator.
[SQLSTATE 01000] (Message 2528) DBCC execution completed. If DBCC print
ed
error messages, contact your system administrator.
[SQLSTATE 01000] (Message 2528) DBCC execution completed. If DBCC print
ed
error messages, contact your system administrator.
[SQLSTATE 01000] (Message 2528) DBCC execution completed. If DBCC print
ed
error messages, contact your system administrator.
[SQLSTATE 01000] (Message 2528) DBCC execu... The step failed.
I ran the following job through scheduler.
BCC DBREINDEX( unq_id )
DBCC DBREINDEX( user_adr )
DBCC DBREINDEX( user_group )
DBCC DBREINDEX( user_slice_approval )
DBCC DBREINDEX( userpriv )
DBCC DBREINDEX( wg )
DBCC DBREINDEX( wg_acc )
DBCC DBREINDEX( wg_dates )
DBCC DBREINDEX( WG_FTE )
Thanks in advance,
Do.
Message posted via http://www.droptable.comA jobstep should only fail if you get errors with severity > 10. I suggest y
ou start by specifying
an output file for the jobstep and post here the contents of that output fil
e. That should give a
more complete picture of the messages returned.
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
Blog: http://solidqualitylearning.com/blogs/tibor/
"Do Park via droptable.com" <forum@.droptable.com> wrote in message
news:504898D6216E0@.droptable.com...
>I got the following error messages from a job history. It says that the job
> failed. Actually these messages are warning. I'd like to make this job
> successful in the job history. Is it possible to do that? How can I change
in
> the Job?
>
> Executed as user: WCBDOM01\clusteradmin. ...tact your system administrator
.
> [SQLSTATE 01000] (Message 2528) DBCC execution completed. If DBCC pri
nted
> error messages, contact your system administrator.
> [SQLSTATE 01000] (Message 2528) DBCC execution completed. If DBCC pri
nted
> error messages, contact your system administrator.
> [SQLSTATE 01000] (Message 2528) DBCC execution completed. If DBCC pri
nted
> error messages, contact your system administrator.
> [SQLSTATE 01000] (Message 2528) DBCC execution completed. If DBCC pri
nted
> error messages, contact your system administrator.
> [SQLSTATE 01000] (Message 2528) DBCC execution completed. If DBCC pri
nted
> error messages, contact your system administrator.
> [SQLSTATE 01000] (Message 2528) DBCC execution completed. If DBCC pri
nted
> error messages, contact your system administrator.
> [SQLSTATE 01000] (Message 2528) DBCC execution completed. If DBCC pri
nted
> error messages, contact your system administrator.
> [SQLSTATE 01000] (Message 2528) DBCC execu... The step failed.
>
> I ran the following job through scheduler.
> BCC DBREINDEX( unq_id )
> DBCC DBREINDEX( user_adr )
> DBCC DBREINDEX( user_group )
> DBCC DBREINDEX( user_slice_approval )
> DBCC DBREINDEX( userpriv )
> DBCC DBREINDEX( wg )
> DBCC DBREINDEX( wg_acc )
> DBCC DBREINDEX( wg_dates )
> DBCC DBREINDEX( WG_FTE )
> Thanks in advance,
> Do.
> --
> Message posted via http://www.droptable.com|||I already posted the detailed message in the first note (I posted it here
again).
I know the cause. The messages are warning, but it keeps sending alert every
day. Also, X mark is shown beside the name in the Job in EM.
The last sentence of the message says that [SQLSTATE 01000] (Message 252
8)
DBCC execu... The step failed. I think that the job was not failed. The
last message shouldnt be displayed.
Is there a way to avoid the The step failed message from occurring?
I
The following is the detailed messages.
Executed as user: WCBDOM01\clusteradmin. ...tact your system administrator.
[SQLSTATE 01000] (Message 2528) DBCC execution completed. If DBCC print
ed
error messages, contact your system administrator.
[SQLSTATE 01000] (Message 2528) DBCC execution completed. If DBCC print
ed
error messages, contact your system administrator.
[SQLSTATE 01000] (Message 2528) DBCC execution completed. If DBCC print
ed
error messages, contact your system administrator.
[SQLSTATE 01000] (Message 2528) DBCC execution completed. If DBCC print
ed
error messages, contact your system administrator.
[SQLSTATE 01000] (Message 2528) DBCC execution completed. If DBCC print
ed
error messages, contact your system administrator.
[SQLSTATE 01000] (Message 2528) DBCC execution completed. If DBCC print
ed
error messages, contact your system administrator.
[SQLSTATE 01000] (Message 2528) DBCC execution completed. If DBCC print
ed
error messages, contact your system administrator.
[SQLSTATE 01000] (Message 2528) DBCC execu... The step failed.
Thanks,
Do.
Message posted via http://www.droptable.com|||So the messages are from the job step output file, not from the job history?
Then I'm out of ideas.
Agent haven't failed jobs with only informational messages in my installatio
ns. You might want to
open a case with MS Support on this.
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
Blog: http://solidqualitylearning.com/blogs/tibor/
"Do Park via droptable.com" <forum@.droptable.com> wrote in message
news:50554B5DE16D0@.droptable.com...
>I already posted the detailed message in the first note (I posted it here
> again).
> I know the cause. The messages are warning, but it keeps sending alert eve
ry
> day. Also, X mark is shown beside the name in the Job in EM.
> The last sentence of the message says that [SQLSTATE 01000] (Message 2
528)
> DBCC execu... The step failed. I think that the job was not failed. The
> last message shouldn't be displayed.
> Is there a way to avoid the "The step failed" message from occurring?
> I
> The following is the detailed messages.
> Executed as user: WCBDOM01\clusteradmin. ...tact your system administrator
.
> [SQLSTATE 01000] (Message 2528) DBCC execution completed. If DBCC pri
nted
> error messages, contact your system administrator.
> [SQLSTATE 01000] (Message 2528) DBCC execution completed. If DBCC pri
nted
> error messages, contact your system administrator.
> [SQLSTATE 01000] (Message 2528) DBCC execution completed. If DBCC pri
nted
> error messages, contact your system administrator.
> [SQLSTATE 01000] (Message 2528) DBCC execution completed. If DBCC pri
nted
> error messages, contact your system administrator.
> [SQLSTATE 01000] (Message 2528) DBCC execution completed. If DBCC pri
nted
> error messages, contact your system administrator.
> [SQLSTATE 01000] (Message 2528) DBCC execution completed. If DBCC pri
nted
> error messages, contact your system administrator.
> [SQLSTATE 01000] (Message 2528) DBCC execution completed. If DBCC pri
nted
> error messages, contact your system administrator.
> [SQLSTATE 01000] (Message 2528) DBCC execu... The step failed.
>
> Thanks,
> Do.
> --
> Message posted via http://www.droptable.com

Job failed in Job scheduler

I got the following error messages from a job history. It says that the job
failed. Actually these messages are warning. I?d like to make this job
successful in the job history. Is it possible to do that? How can I change in
the Job?
Executed as user: WCBDOM01\clusteradmin. ...tact your system administrator.
[SQLSTATE 01000] (Message 2528) DBCC execution completed. If DBCC printed
error messages, contact your system administrator.
[SQLSTATE 01000] (Message 2528) DBCC execution completed. If DBCC printed
error messages, contact your system administrator.
[SQLSTATE 01000] (Message 2528) DBCC execution completed. If DBCC printed
error messages, contact your system administrator.
[SQLSTATE 01000] (Message 2528) DBCC execution completed. If DBCC printed
error messages, contact your system administrator.
[SQLSTATE 01000] (Message 2528) DBCC execution completed. If DBCC printed
error messages, contact your system administrator.
[SQLSTATE 01000] (Message 2528) DBCC execution completed. If DBCC printed
error messages, contact your system administrator.
[SQLSTATE 01000] (Message 2528) DBCC execution completed. If DBCC printed
error messages, contact your system administrator.
[SQLSTATE 01000] (Message 2528) DBCC execu... The step failed.
I ran the following job through scheduler.
BCC DBREINDEX( unq_id )
DBCC DBREINDEX( user_adr )
DBCC DBREINDEX( user_group )
DBCC DBREINDEX( user_slice_approval )
DBCC DBREINDEX( userpriv )
DBCC DBREINDEX( wg )
DBCC DBREINDEX( wg_acc )
DBCC DBREINDEX( wg_dates )
DBCC DBREINDEX( WG_FTE )
Thanks in advance,
Do.
--
Message posted via http://www.sqlmonster.comA jobstep should only fail if you get errors with severity > 10. I suggest you start by specifying
an output file for the jobstep and post here the contents of that output file. That should give a
more complete picture of the messages returned.
--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
Blog: http://solidqualitylearning.com/blogs/tibor/
"Do Park via SQLMonster.com" <forum@.SQLMonster.com> wrote in message
news:504898D6216E0@.SQLMonster.com...
>I got the following error messages from a job history. It says that the job
> failed. Actually these messages are warning. I'd like to make this job
> successful in the job history. Is it possible to do that? How can I change in
> the Job?
>
> Executed as user: WCBDOM01\clusteradmin. ...tact your system administrator.
> [SQLSTATE 01000] (Message 2528) DBCC execution completed. If DBCC printed
> error messages, contact your system administrator.
> [SQLSTATE 01000] (Message 2528) DBCC execution completed. If DBCC printed
> error messages, contact your system administrator.
> [SQLSTATE 01000] (Message 2528) DBCC execution completed. If DBCC printed
> error messages, contact your system administrator.
> [SQLSTATE 01000] (Message 2528) DBCC execution completed. If DBCC printed
> error messages, contact your system administrator.
> [SQLSTATE 01000] (Message 2528) DBCC execution completed. If DBCC printed
> error messages, contact your system administrator.
> [SQLSTATE 01000] (Message 2528) DBCC execution completed. If DBCC printed
> error messages, contact your system administrator.
> [SQLSTATE 01000] (Message 2528) DBCC execution completed. If DBCC printed
> error messages, contact your system administrator.
> [SQLSTATE 01000] (Message 2528) DBCC execu... The step failed.
>
> I ran the following job through scheduler.
> BCC DBREINDEX( unq_id )
> DBCC DBREINDEX( user_adr )
> DBCC DBREINDEX( user_group )
> DBCC DBREINDEX( user_slice_approval )
> DBCC DBREINDEX( userpriv )
> DBCC DBREINDEX( wg )
> DBCC DBREINDEX( wg_acc )
> DBCC DBREINDEX( wg_dates )
> DBCC DBREINDEX( WG_FTE )
> Thanks in advance,
> Do.
> --
> Message posted via http://www.sqlmonster.com|||I already posted the detailed message in the first note (I posted it here
again).
I know the cause. The messages are warning, but it keeps sending alert every
day. Also, X mark is shown beside the name in the Job in EM.
The last sentence of the message says that [SQLSTATE 01000] (Message 2528)
DBCC execu... The step failed. I think that the job was not failed. The
last message shouldn?t be displayed.
Is there a way to avoid the ?The step failed? message from occurring?
I
The following is the detailed messages.
Executed as user: WCBDOM01\clusteradmin. ...tact your system administrator.
[SQLSTATE 01000] (Message 2528) DBCC execution completed. If DBCC printed
error messages, contact your system administrator.
[SQLSTATE 01000] (Message 2528) DBCC execution completed. If DBCC printed
error messages, contact your system administrator.
[SQLSTATE 01000] (Message 2528) DBCC execution completed. If DBCC printed
error messages, contact your system administrator.
[SQLSTATE 01000] (Message 2528) DBCC execution completed. If DBCC printed
error messages, contact your system administrator.
[SQLSTATE 01000] (Message 2528) DBCC execution completed. If DBCC printed
error messages, contact your system administrator.
[SQLSTATE 01000] (Message 2528) DBCC execution completed. If DBCC printed
error messages, contact your system administrator.
[SQLSTATE 01000] (Message 2528) DBCC execution completed. If DBCC printed
error messages, contact your system administrator.
[SQLSTATE 01000] (Message 2528) DBCC execu... The step failed.
Thanks,
Do.
--
Message posted via http://www.sqlmonster.com|||So the messages are from the job step output file, not from the job history? Then I'm out of ideas.
Agent haven't failed jobs with only informational messages in my installations. You might want to
open a case with MS Support on this.
--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
Blog: http://solidqualitylearning.com/blogs/tibor/
"Do Park via SQLMonster.com" <forum@.SQLMonster.com> wrote in message
news:50554B5DE16D0@.SQLMonster.com...
>I already posted the detailed message in the first note (I posted it here
> again).
> I know the cause. The messages are warning, but it keeps sending alert every
> day. Also, X mark is shown beside the name in the Job in EM.
> The last sentence of the message says that [SQLSTATE 01000] (Message 2528)
> DBCC execu... The step failed. I think that the job was not failed. The
> last message shouldn't be displayed.
> Is there a way to avoid the "The step failed" message from occurring?
> I
> The following is the detailed messages.
> Executed as user: WCBDOM01\clusteradmin. ...tact your system administrator.
> [SQLSTATE 01000] (Message 2528) DBCC execution completed. If DBCC printed
> error messages, contact your system administrator.
> [SQLSTATE 01000] (Message 2528) DBCC execution completed. If DBCC printed
> error messages, contact your system administrator.
> [SQLSTATE 01000] (Message 2528) DBCC execution completed. If DBCC printed
> error messages, contact your system administrator.
> [SQLSTATE 01000] (Message 2528) DBCC execution completed. If DBCC printed
> error messages, contact your system administrator.
> [SQLSTATE 01000] (Message 2528) DBCC execution completed. If DBCC printed
> error messages, contact your system administrator.
> [SQLSTATE 01000] (Message 2528) DBCC execution completed. If DBCC printed
> error messages, contact your system administrator.
> [SQLSTATE 01000] (Message 2528) DBCC execution completed. If DBCC printed
> error messages, contact your system administrator.
> [SQLSTATE 01000] (Message 2528) DBCC execu... The step failed.
>
> Thanks,
> Do.
> --
> Message posted via http://www.sqlmonster.com

Job failed in Job scheduler

I got the following error messages from a job history. It says that the job
failed. Actually these messages are warning. Id like to make this job
successful in the job history. Is it possible to do that? How can I change in
the Job?
Executed as user: WCBDOM01\clusteradmin. ...tact your system administrator.
[SQLSTATE 01000] (Message 2528) DBCC execution completed. If DBCC printed
error messages, contact your system administrator.
[SQLSTATE 01000] (Message 2528) DBCC execution completed. If DBCC printed
error messages, contact your system administrator.
[SQLSTATE 01000] (Message 2528) DBCC execution completed. If DBCC printed
error messages, contact your system administrator.
[SQLSTATE 01000] (Message 2528) DBCC execution completed. If DBCC printed
error messages, contact your system administrator.
[SQLSTATE 01000] (Message 2528) DBCC execution completed. If DBCC printed
error messages, contact your system administrator.
[SQLSTATE 01000] (Message 2528) DBCC execution completed. If DBCC printed
error messages, contact your system administrator.
[SQLSTATE 01000] (Message 2528) DBCC execution completed. If DBCC printed
error messages, contact your system administrator.
[SQLSTATE 01000] (Message 2528) DBCC execu... The step failed.
I ran the following job through scheduler.
BCC DBREINDEX(unq_id)
DBCC DBREINDEX(user_adr)
DBCC DBREINDEX(user_group)
DBCC DBREINDEX(user_slice_approval)
DBCC DBREINDEX(userpriv)
DBCC DBREINDEX(wg)
DBCC DBREINDEX(wg_acc)
DBCC DBREINDEX(wg_dates)
DBCC DBREINDEX(WG_FTE)
Thanks in advance,
Do.
Message posted via http://www.droptable.com
A jobstep should only fail if you get errors with severity > 10. I suggest you start by specifying
an output file for the jobstep and post here the contents of that output file. That should give a
more complete picture of the messages returned.
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
Blog: http://solidqualitylearning.com/blogs/tibor/
"Do Park via droptable.com" <forum@.droptable.com> wrote in message
news:504898D6216E0@.droptable.com...
>I got the following error messages from a job history. It says that the job
> failed. Actually these messages are warning. I'd like to make this job
> successful in the job history. Is it possible to do that? How can I change in
> the Job?
>
> Executed as user: WCBDOM01\clusteradmin. ...tact your system administrator.
> [SQLSTATE 01000] (Message 2528) DBCC execution completed. If DBCC printed
> error messages, contact your system administrator.
> [SQLSTATE 01000] (Message 2528) DBCC execution completed. If DBCC printed
> error messages, contact your system administrator.
> [SQLSTATE 01000] (Message 2528) DBCC execution completed. If DBCC printed
> error messages, contact your system administrator.
> [SQLSTATE 01000] (Message 2528) DBCC execution completed. If DBCC printed
> error messages, contact your system administrator.
> [SQLSTATE 01000] (Message 2528) DBCC execution completed. If DBCC printed
> error messages, contact your system administrator.
> [SQLSTATE 01000] (Message 2528) DBCC execution completed. If DBCC printed
> error messages, contact your system administrator.
> [SQLSTATE 01000] (Message 2528) DBCC execution completed. If DBCC printed
> error messages, contact your system administrator.
> [SQLSTATE 01000] (Message 2528) DBCC execu... The step failed.
>
> I ran the following job through scheduler.
> BCC DBREINDEX( unq_id )
> DBCC DBREINDEX( user_adr )
> DBCC DBREINDEX( user_group )
> DBCC DBREINDEX( user_slice_approval )
> DBCC DBREINDEX( userpriv )
> DBCC DBREINDEX( wg )
> DBCC DBREINDEX( wg_acc )
> DBCC DBREINDEX( wg_dates )
> DBCC DBREINDEX( WG_FTE )
> Thanks in advance,
> Do.
> --
> Message posted via http://www.droptable.com
|||I already posted the detailed message in the first note (I posted it here
again).
I know the cause. The messages are warning, but it keeps sending alert every
day. Also, X mark is shown beside the name in the Job in EM.
The last sentence of the message says that [SQLSTATE 01000] (Message 2528)
DBCC execu... The step failed. I think that the job was not failed. The
last message shouldnt be displayed.
Is there a way to avoid the The step failed message from occurring?
I
The following is the detailed messages.
Executed as user: WCBDOM01\clusteradmin. ...tact your system administrator.
[SQLSTATE 01000] (Message 2528) DBCC execution completed. If DBCC printed
error messages, contact your system administrator.
[SQLSTATE 01000] (Message 2528) DBCC execution completed. If DBCC printed
error messages, contact your system administrator.
[SQLSTATE 01000] (Message 2528) DBCC execution completed. If DBCC printed
error messages, contact your system administrator.
[SQLSTATE 01000] (Message 2528) DBCC execution completed. If DBCC printed
error messages, contact your system administrator.
[SQLSTATE 01000] (Message 2528) DBCC execution completed. If DBCC printed
error messages, contact your system administrator.
[SQLSTATE 01000] (Message 2528) DBCC execution completed. If DBCC printed
error messages, contact your system administrator.
[SQLSTATE 01000] (Message 2528) DBCC execution completed. If DBCC printed
error messages, contact your system administrator.
[SQLSTATE 01000] (Message 2528) DBCC execu... The step failed.
Thanks,
Do.
Message posted via http://www.droptable.com
|||So the messages are from the job step output file, not from the job history? Then I'm out of ideas.
Agent haven't failed jobs with only informational messages in my installations. You might want to
open a case with MS Support on this.
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
Blog: http://solidqualitylearning.com/blogs/tibor/
"Do Park via droptable.com" <forum@.droptable.com> wrote in message
news:50554B5DE16D0@.droptable.com...
>I already posted the detailed message in the first note (I posted it here
> again).
> I know the cause. The messages are warning, but it keeps sending alert every
> day. Also, X mark is shown beside the name in the Job in EM.
> The last sentence of the message says that [SQLSTATE 01000] (Message 2528)
> DBCC execu... The step failed. I think that the job was not failed. The
> last message shouldn't be displayed.
> Is there a way to avoid the "The step failed" message from occurring?
> I
> The following is the detailed messages.
> Executed as user: WCBDOM01\clusteradmin. ...tact your system administrator.
> [SQLSTATE 01000] (Message 2528) DBCC execution completed. If DBCC printed
> error messages, contact your system administrator.
> [SQLSTATE 01000] (Message 2528) DBCC execution completed. If DBCC printed
> error messages, contact your system administrator.
> [SQLSTATE 01000] (Message 2528) DBCC execution completed. If DBCC printed
> error messages, contact your system administrator.
> [SQLSTATE 01000] (Message 2528) DBCC execution completed. If DBCC printed
> error messages, contact your system administrator.
> [SQLSTATE 01000] (Message 2528) DBCC execution completed. If DBCC printed
> error messages, contact your system administrator.
> [SQLSTATE 01000] (Message 2528) DBCC execution completed. If DBCC printed
> error messages, contact your system administrator.
> [SQLSTATE 01000] (Message 2528) DBCC execution completed. If DBCC printed
> error messages, contact your system administrator.
> [SQLSTATE 01000] (Message 2528) DBCC execu... The step failed.
>
> Thanks,
> Do.
> --
> Message posted via http://www.droptable.com

Friday, February 24, 2012

jet oledb from tsql

I have posted following question in sqlprogramming but have
not recieved a response so wondered whether I have posted
it correctly
[url]https://msdn.microsoft.com/newsgroups/managed/default.aspx?&query=OPENROWSET&lang=en&cr=US&guid= &sloc=en-us&dg=microsoft.public.sqlserver.programming&p=1&t id=1d7f7e0b-dfea-4606-ac59-dfac726d711e[/url]
Please help,
since the introduction of SQL2005 the default mode for opening access mdb
databases with Openrowset appears to be in exclusive open mode
I wish to open the database in share mode so the other (non net) ADO threads
can open the database at the same time
I only wish to open the database in read only mode
and so to use the mode param
I have tried the following
SELECT COUNT(*)
FROM
OPENROWSET ( 'Microsoft.Jet.OLEDB.4.0',
'"Database = h:\alarmlogfiles\new folder (3)\alarms 04 feb
2007.mdb; Mode = Share Deny None;"'
, 'SELECT [ID],
[System],
[Group],
[Message],
[Acknowledged],
[AckReq],
[Duplicates],
[Group Name],
[Importance],
[Ms],
[Alarm Date],
[LastDupe],
[Viewers],
[Row_Date],
[Colours],
[Status] From [Alarms 08 Feb 2007] Where 1 = 0' )
but get the following error from sql2005 & sql 2000
Server: Msg 7303, Level 16, State 1, Line 1
Cannot initialize the data source object of OLE DB provider
"Microsoft.Jet.OLEDB.4.0" for linked server "(null)".
OLE DB provider "Microsoft.Jet.OLEDB.4.0" for linked server "(null)"
returned message "Could not find installable ISAM.".
[vbcol=seagreen]
SELECT CustomerID, CompanyName
FROM OPENROWSET('Microsoft.Jet.OLEDB.4.0',
'C:\Program Files\Microsoft Office\OFFICE11\SAMPLES\Northwind.mdb';
'admin';'',Customers)
GO
but there is no opportunity here to add a open mode argument?
please help
best wishes nick
""privatenews"" wrote:

> Hello Nick,
> I understand that you 'd like to create Access database and access it from
> SQL Server via TSQL directly. If it is not correct, let me know.
> You may want to create linked server to Access database or use open
> openquery/openrowset or four-part name syntax to query access database.
> Please refer to teh following links for more informaitoin:
> http://msdn2.microsoft.com/en-us/library/ms190479.aspx
> 287414You cannot link tables into a Microsoft Access project by using an
> ODBC Data Source Name (DSN)
> http://support.microsoft.com/default.aspx?scid=kb;EN-US;287414
> As for creating database, it is not feasible to create directly from
> opendatasource etc from SQL Server. You need to use adox/ado to do this as
> you'v done.
> 317881How to create an Access database by using ADOX and Visual C# .NET
> http://support.microsoft.com/default.aspx?scid=kb;EN-US;317881
> If you have further questions, please let's know.
> Best Regards,
> Peter Yang
> MCSE2000/2003, MCSA, MCDBA
> Microsoft Online Partner Support
> When responding to posts, please "Reply to Group" via your newsreader so
> that others may learn and benefit from your issue.
> ================================================== ===
>
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
>
Hello Nick,
Sorry for the late response and it seems there is sync issue in our
internal application for your account. I'v reported this issue to the
related team.
Per your question, I was able to reproduce the issue on my side. It seems
that we are not able to use provider or connection string in the
"datasource" parameter. It also doesn't work if I use provider string
directly:
SELECT CustomerID, CompanyName from
OPENROWSET('Microsoft.Jet.OLEDB.4.0',
'Data Provider=Microsoft.Jet.OLEDB.4.0;User ID=Admin;Data
Source=C:\northwind.mdb;Passord=""',
'select * from customers')
I'v forward your feedback to the product team. In the meantime, I also
encourage you submit via the link below
http://lab.msdn.microsoft.com/productfeedback/default.aspx
Please let's know if you have any further feedback.
Best Regards,
Peter Yang
MCSE2000/2003, MCSA, MCDBA
Microsoft Online Partner Support
================================================== ===
This posting is provided "AS IS" with no warranties, and confers no rights.
================================================== ====