Viewing 14 posts - 1 through 14 (of 14 total)
Thanks...I'll give that a go and see what happens.
January 30, 2012 at 10:24 am
Hi,
The SQL Server agent service account has permissions on the .xls and also I have used the UNC notation and that also failed withthe same error.
January 30, 2012 at 7:33 am
I'm using a stored procedure to do the insert and in this case when a customer places an order I want to capture the customerID and insert that into the...
February 9, 2011 at 8:59 am
Hi All,
Below is the solution I used to resolve my issue.
Thanks for all your help
DECLARE @Company_Codes VARCHAR(MAX)
--drop temp table
IF OBJECT_ID(N'TEMPDB.dbo.#temp',N'U') IS NOT NULL
BEGIN
DROP TABLE #temp
END
CREATE TABLE #temp (CODE...
April 9, 2010 at 2:02 am
I am not using dynamic sql I'm using static sql and unfortunately I quite baffled as to how to approach this in my code.
Thanks for your help, I will play...
March 30, 2010 at 6:41 am
It will be a set of rows as shown below which is a string, so in practise when HCB and RBC are selected it should pass through the query as
AND...
March 30, 2010 at 6:07 am
Here is the code as requested
Thanks
Declare@Period_End smalldatetime
,@Branch_Name_Code varchar (10)
,@Department_Group_Code varchar(10)
,@Data_Type_Code varchar(3)
,@Currency_Type varchar(4)
,@Company_Name_Code varchar (4)
SELECT
@Period_End AS Period_End
,Data_Type_Code
,Department_Group_Code
,Company_Name_Code
,Master
,Insured
,Number
,Claim_Title
,Date_of_Loss
,Currency_Type
,'' as Accounting_Currency
,Gross_PD
,Net_INC
FROM vw_Table_Summary
WHERE Period_End=@Period_End
AND Data_Type_Code=@Data_Type_Code
AND Branch_Name_Code=@Branch_Name_Code...
March 30, 2010 at 5:49 am
I'm getting compilation error when use your example code and the reason is due to 'DELETE top ( @BatchSize )', I'm using sql server 2000 and I believe this doesn't...
October 30, 2009 at 6:20 am
The recovery mode is set to SIMPLE
Thanks
October 30, 2009 at 4:15 am
I'm deleting a certain records in the table...also the link you provided doesn't work unfortunately
October 30, 2009 at 4:03 am
I used the dynamic sql as suggested and it works perfectly.
Thanks alot for your help 😉
September 21, 2009 at 7:24 am
I have found a solution using a cursor but if anyone knows any other solution then please let me know
declare @temp table
(ID int,
Name varchar (20)
)
insert into @temp
(id,
name
)
SELECT...
July 10, 2008 at 10:07 am
Thanks for your help Jon!
April 22, 2008 at 8:49 am
Viewing 14 posts - 1 through 14 (of 14 total)