Viewing 15 posts - 1,111 through 1,125 (of 2,007 total)
SELECTRight(Replicate('0',15) + AccountNumber,15) AS 'AccountNumber',
BankNumber,
--CASE SubProductCode WHEN '374' THEN 'P' ELSE 'D' END AS DDA_Prepaid_Indicator
CASE WHEN SubProductCode IN ('374','376')
THEN 'P'
...
December 21, 2011 at 9:26 am
Try this
DECLARE @CurrentDate DATETIME --= Fireball_Configuration.dbo.PreviousBusinessDay()
SELECT @CurrentDate = MAX(DATE)
FROM Fireball_Reporting..Reporting_LoanPrices
DECLARE @CompareDate DATETIME = Fireball_Configuration.dbo.PreviousBusinessDayByDate (@CurrentDate)
DECLARE @count INT = 5
DECLARE @EmailHeader VARCHAR(500) = Fireball_Configuration.dbo.GetConfigurationValue ('Fireball', 'EmailSettings - Header')
DECLARE @EmailFooter VARCHAR(500) =...
December 21, 2011 at 9:24 am
ashuthinks (12/21/2011)
where exactly change is needed ?
Ummm. . .
Cadavre (12/21/2011)
DECLARE @CurrentDate DATETIME --= Fireball_Configuration.dbo.PreviousBusinessDay()
SELECT @CurrentDate = MAX(DATE)
FROM Fireball_Reporting..Reporting_LoanPrices
DECLARE @CompareDate DATETIME = Fireball_Configuration.dbo.PreviousBusinessDayByDate (@CurrentDate)
DECLARE @count INT = 5
DECLARE...
December 21, 2011 at 8:52 am
My random guess: -
DECLARE @CurrentDate DATETIME --= Fireball_Configuration.dbo.PreviousBusinessDay()
SELECT @CurrentDate = MAX(DATE)
FROM Fireball_Reporting..Reporting_LoanPrices
DECLARE @CompareDate DATETIME = Fireball_Configuration.dbo.PreviousBusinessDayByDate (@CurrentDate)
DECLARE @count INT = 5
DECLARE @EmailHeader VARCHAR(500) = Fireball_Configuration.dbo.GetConfigurationValue ('Fireball', 'EmailSettings - Header')
DECLARE @EmailFooter...
December 21, 2011 at 8:50 am
Does this help?
SELECT
--FROM SalesReportRMS
a.TransactionNumber, a.StoreID, a.Transaction_Date, a.CustomerID, a.StoreName,
a.LogicalStoreName, a.ItemLookupCode, a.Description, a.ClassID, a.Quantity, a.FullPrice,
a.Full_Cost, a.SalesRepID, a.NAME, a.Ship,
--FROM [10.1.1.18\RMS20].ICLHQ.dbo.Customer
b.EmailAddress, b.PhoneNumber, b.FirstName, b.LastName, b.HQID
FROM dbo.SalesReportRMS AS a
JOIN [10.1.1.18\RMS20].ICLHQ.dbo.Customer b...
December 21, 2011 at 8:40 am
CREATE SCHEMA has to be the only statement in a batch.
To get round the limitation, use dynamic SQL.
IF NOT EXISTS (SELECT *
...
December 21, 2011 at 8:14 am
bhaveshp.dba (12/21/2011)
But I have A names like
John hozack MD
CHRISTOPHERDODSON MD
And I dont Want last Two Words means I do not want MD then ??/?
Either a REPLACE...
December 21, 2011 at 8:08 am
aaloneftis (12/21/2011)
Obviously I need to work on this as I don't think it is...
December 21, 2011 at 7:59 am
BEGIN TRAN
CREATE TABLE yourTable (
[yourTable ID] INT IDENTITY NOT NULL,
[First Name] VARCHAR(20) NOT NULL,
[Last Name] VARCHAR(20) NOT NULL,
[Full Name] AS [First Name] + ' ' + [Last Name],
[Initial + Last...
December 21, 2011 at 7:48 am
Please read this article (http://www.sqlservercentral.com/articles/SQLServerCentral/66909/) on how best to post performance problem questions. Help us to help you!![/url] 😉
December 21, 2011 at 7:41 am
Koen Verbeeck (12/19/2011)
Roy Ernest (12/19/2011)
You all are older than me. I am a young pup compared to some of you. 🙂
Ahem. You all are older than me.
I'm a child...
December 20, 2011 at 5:52 am
Can you read the article I linked to about how best to post sample data and DDL? Personally, I don't really have the time to turn your text data...
December 20, 2011 at 4:03 am
Henrico Bekker (12/20/2011)
I only inserted a few of his records, not all, so the value of COUNT is irrelevant here.
Yes, you only inserted a few but he inserted all and...
December 20, 2011 at 1:51 am
Henrico Bekker (12/20/2011)
Lynn, he wants the datetime displayed as DATE only...read my previous posts...which doesnt seem to work on his installation..
I don't think his complaint with your code was to...
December 20, 2011 at 1:47 am
Viewing 15 posts - 1,111 through 1,125 (of 2,007 total)