Viewing 15 posts - 1,486 through 1,500 (of 2,007 total)
I still prefer the CLR method personally π
I quickly knocked up a simple date-validation C# CLR that should suffice. I realise you have your solution, just an offering for...
September 30, 2011 at 9:35 am
derekr 43208 (9/30/2011)
How would I get the results to execute automatically without me having to copy and paste the results in a new query window.
Untested, but something like this would...
September 30, 2011 at 7:38 am
omlac (9/30/2011)
1. i would like to select all records and where customers have more than 1 Address return the Address with the Address Type...
September 30, 2011 at 2:52 am
DECLARE @XML XML
SET @XML = N'<ReturnMessage id="3655041356">
<AdC ocean="PACCGL">4815044</AdC>
<MessageStatus code="100" time="2011-09-26 01:43:20">status ok</MessageStatus>
<MessageData>700A20000018C0375494400000</MessageData>
<Flags les="0" app="0" />
</ReturnMessage>'
SELECT SUBSTRING(Original, 1, 1) + '-' + SUBSTRING(Original, 2, 2) + '-' + SUBSTRING(Original, 4, 2)...
September 29, 2011 at 3:07 am
I have no junk drawer. . . no, seriously.
I do have "junk scripts" on a file server though, loads of them that may or may not be useful π
September 29, 2011 at 2:00 am
zwheeler (9/28/2011)
I am using the round function in my select statement and it works for the following
Round(avg(h.mtr_fass_score)) as mtr_fass, <------THIS WORKS
Round(avg(case when p.mtr_unit_count...
September 28, 2011 at 9:16 am
This may seem silly, but does this: -
SELECT 1
FROM master..syslogins
WHERE NAME = 'pos_reporting'
Return anything on the server where the ELSE statement is failing?
September 28, 2011 at 6:39 am
SQLRNNR (9/28/2011)
Wary of Implicit conversions one should be.
*groan*
September 28, 2011 at 4:18 am
--Some test data first
DECLARE @TABLE AS TABLE (tableText VARCHAR(1000))
INSERT INTO @TABLE
SELECT 'Some Product Name Here 3.7mmD X 8mmL (SBM)
Product Code: 103708
<span style="color:red;">Availability: 9/26/2011</span>'
UNION ALL SELECT 'Some Product Name Here 3.7mmD...
September 28, 2011 at 4:15 am
preetid2 (9/27/2011)
except i need to produce it dynamically. i looked at the articles, and i think Part2 (Cross tabs and pivot2-...
September 28, 2011 at 2:35 am
preetid2 (9/27/2011)
the desired result should be something like this...
desired results...
Measurement_Site_desc ...
September 27, 2011 at 10:12 am
Chrissy321 (9/27/2011)
--5
INSERT INTO #Transactions (ItemID,StartDate,EndDate) VALUES (5,'1/1/2001',NULL)
INSERT INTO #Transactions (ItemID,StartDate,EndDate) VALUES (5,'1/1/2001','12/1/2002')
INSERT INTO #Transactions (ItemID,StartDate,EndDate) VALUES (5,'1/1/2003',NULL)
INSERT INTO #Transactions (ItemID,StartDate,EndDate) VALUES (5,'1/1/2003','9/1/2003')
INSERT INTO #Transactions (ItemID,StartDate,EndDate) VALUES...
September 27, 2011 at 9:56 am
preetid2 (9/27/2011)
anyway, i updated my original post, that has the flow of creating the sample table, test data, and...
September 27, 2011 at 9:40 am
Sorry Chrissy, it seems your thread was overlooked yesterday.
Chrissy321 (9/27/2011)
September 27, 2011 at 9:36 am
abhishek_dwivedi03 (9/27/2011)
The requirement is to create transactional backup job every 15...
September 27, 2011 at 9:17 am
Viewing 15 posts - 1,486 through 1,500 (of 2,007 total)