Re: Export and email query as a CSV
From: oj (nospam_ojngo_at_home.com)
Date: 02/06/05
- Next message: MGFoster: "Re: MSDE and ODBC Tables"
- Previous message: Vince: "Re: Help with SQL Query"
- In reply to: celtic_kiwi: "Re: Export and email query as a CSV"
- Messages sorted by: [ date ] [ thread ]
Date: Sat, 5 Feb 2005 19:31:56 -0800
System account does have full access to the local machine. However, it does
not have a profile.
A few thing to check:
1. Is your Sqlserver service startup account an NT account. If it's started
by LocalSystem, Sqlserver will not have access to network resources. You can
use Service mgr or Enterprise mgr to check.
2. Use the link I posted in previous post to set your proxy account.
Basically, if the user executes the stored procedure is not a SQL admin,
he/she will be impersonating the proxy account to access the system
resources.
-- -oj "celtic_kiwi" <gavin.jolly@gmail.com> wrote in message news:1107648291.339211.234390@o13g2000cwo.googlegroups.com... >I did some more searching and ran a trace, for the fist time ever. Here > is the data in Tab separated format with quotes around values. 22 rows > 11 columns. > I noticed the procedure was running as SYSTEM rather than ADMIN. Could > this be the cause? > > EventClass TextData DatabaseID TransactionID NTUserName NTDomainName > HostName ApplicationName LoginName Success IntegerData > '11' 'exec > dbo.pg_email_process' '7' '(null)' 'admin' 'GAVINLAPTOP' 'GAVINLAPTOP' > 'Advanced > Query Tool V6' 'GAVINLAPTOP\admin' '(null)' '(null)' > '42' 'exec > dbo.pg_email_process' '7' '(null)' 'admin' 'GAVINLAPTOP' 'GAVINLAPTOP' > 'Advanced > Query Tool V6' 'GAVINLAPTOP\admin' '(null)' '(null)' > '14' '-- network protocol: LPC > set quoted_identifier on > set implicit_transactions off > set cursor_close_on_commit off > set ansi_warnings on > set ansi_padding on > set ansi_nulls on > set concat_null_yields_null on' '1' '(null)' 'SYSTEM' 'NT > AUTHORITY' 'GAVINLAPTOP' 'Microsoft SQL Server' 'NT > AUTHORITY\SYSTEM' '1' '4096' > '12' ' set quoted_identifier off' '1' '(null)' 'SYSTEM' 'NT > AUTHORITY' 'GAVINLAPTOP' 'Microsoft SQL Server' 'NT > AUTHORITY\SYSTEM' '(null)' '(null)' > '11' 'declare @P1 int > set @P1=-1 > exec sp_prepare @P1 output, NULL, N'Select top 10 EmployeeCode, > WorkAreaCode, CommencementDate from treetop..Appointment ', 1 > select @P1' '1' '(null)' 'SYSTEM' 'NT > AUTHORITY' 'GAVINLAPTOP' 'Microsoft SQL Server' 'NT > AUTHORITY\SYSTEM' '(null)' '(null)' > '10' 'declare @P1 int > set @P1=1 > exec sp_prepare @P1 output, NULL, N'Select top 10 EmployeeCode, > WorkAreaCode, CommencementDate from treetop..Appointment ', 1 > select @P1' '1' '(null)' 'SYSTEM' 'NT > AUTHORITY' 'GAVINLAPTOP' 'Microsoft SQL Server' 'NT > AUTHORITY\SYSTEM' '(null)' '(null)' > '12' 'Select top 10 EmployeeCode, WorkAreaCode, CommencementDate from > treetop..Appointment' '1' '(null)' 'SYSTEM' 'NT > AUTHORITY' 'GAVINLAPTOP' 'Microsoft SQL Server' 'NT > AUTHORITY\SYSTEM' '(null)' '(null)' > '12' 'SELECT BCPCollationName(0x0904D00034, 167), > BCPCollationName(0x0904D00034, 167)' '1' '(null)' 'SYSTEM' 'NT > AUTHORITY' 'GAVINLAPTOP' 'Microsoft SQL Server' 'NT > AUTHORITY\SYSTEM' '(null)' '(null)' > '12' 'Select top 10 EmployeeCode, WorkAreaCode, CommencementDate from > treetop..Appointment' '1' '(null)' 'SYSTEM' 'NT > AUTHORITY' 'GAVINLAPTOP' 'Microsoft SQL Server' 'NT > AUTHORITY\SYSTEM' '(null)' '(null)' > '11' 'exec sp_unprepare 1' '1' '(null)' 'SYSTEM' 'NT > AUTHORITY' 'GAVINLAPTOP' 'Microsoft SQL Server' 'NT > AUTHORITY\SYSTEM' '(null)' '(null)' > '10' 'exec sp_unprepare 1' '1' '(null)' 'SYSTEM' 'NT > AUTHORITY' 'GAVINLAPTOP' 'Microsoft SQL Server' 'NT > AUTHORITY\SYSTEM' '(null)' '(null)' > '15' '(null)' '1' '(null)' 'SYSTEM' 'NT > AUTHORITY' 'GAVINLAPTOP' 'Microsoft SQL Server' 'NT > AUTHORITY\SYSTEM' '1' '(null)' > '14' '-- network protocol: LPC > set quoted_identifier on > set implicit_transactions off > set cursor_close_on_commit off > set ansi_warnings on > set ansi_padding on > set ansi_nulls on > set concat_null_yields_null on' '1' '(null)' 'SYSTEM' 'NT > AUTHORITY' 'GAVINLAPTOP' 'Microsoft SQL Server' 'NT > AUTHORITY\SYSTEM' '1' '4096' > '12' ' set quoted_identifier off' '1' '(null)' 'SYSTEM' 'NT > AUTHORITY' 'GAVINLAPTOP' 'Microsoft SQL Server' 'NT > AUTHORITY\SYSTEM' '(null)' '(null)' > '11' 'declare @P1 int > set @P1=-1 > exec sp_prepare @P1 output, NULL, N'Select top 10 EmployeeCode, > WorkAreaCode, CommencementDate from treetop..Appointment ', 1 > select @P1' '1' '(null)' 'SYSTEM' 'NT > AUTHORITY' 'GAVINLAPTOP' 'Microsoft SQL Server' 'NT > AUTHORITY\SYSTEM' '(null)' '(null)' > '10' 'declare @P1 int > set @P1=1 > exec sp_prepare @P1 output, NULL, N'Select top 10 EmployeeCode, > WorkAreaCode, CommencementDate from treetop..Appointment ', 1 > select @P1' '1' '(null)' 'SYSTEM' 'NT > AUTHORITY' 'GAVINLAPTOP' 'Microsoft SQL Server' 'NT > AUTHORITY\SYSTEM' '(null)' '(null)' > '12' 'Select top 10 EmployeeCode, WorkAreaCode, CommencementDate from > treetop..Appointment' '1' '(null)' 'SYSTEM' 'NT > AUTHORITY' 'GAVINLAPTOP' 'Microsoft SQL Server' 'NT > AUTHORITY\SYSTEM' '(null)' '(null)' > '12' 'SELECT BCPCollationName(0x0904D00034, 167), > BCPCollationName(0x0904D00034, 167)' '1' '(null)' 'SYSTEM' 'NT > AUTHORITY' 'GAVINLAPTOP' 'Microsoft SQL Server' 'NT > AUTHORITY\SYSTEM' '(null)' '(null)' > '12' 'Select top 10 EmployeeCode, WorkAreaCode, CommencementDate from > treetop..Appointment' '1' '(null)' 'SYSTEM' 'NT > AUTHORITY' 'GAVINLAPTOP' 'Microsoft SQL Server' 'NT > AUTHORITY\SYSTEM' '(null)' '(null)' > '11' 'exec sp_unprepare 1' '1' '(null)' 'SYSTEM' 'NT > AUTHORITY' 'GAVINLAPTOP' 'Microsoft SQL Server' 'NT > AUTHORITY\SYSTEM' '(null)' '(null)' > '10' 'exec sp_unprepare 1' '1' '(null)' 'SYSTEM' 'NT > AUTHORITY' 'GAVINLAPTOP' 'Microsoft SQL Server' 'NT > AUTHORITY\SYSTEM' '(null)' '(null)' > '15' '(null)' '1' '(null)' 'SYSTEM' 'NT > AUTHORITY' 'GAVINLAPTOP' 'Microsoft SQL Server' 'NT > AUTHORITY\SYSTEM' '1' '(null)' > > All help much appreciated. TIA > > Gavin >
- Next message: MGFoster: "Re: MSDE and ODBC Tables"
- Previous message: Vince: "Re: Help with SQL Query"
- In reply to: celtic_kiwi: "Re: Export and email query as a CSV"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|