Viewing 15 posts - 31 through 45 (of 55 total)
jbalbo (1/11/2012)
Getting a syntax error on the following..
INSERT INTO @TEMPTABLE(TAG_NAME,TAG_DATA)
SELECT TAG_NAME = 'CUST_AGE',...
January 11, 2012 at 12:04 pm
worker bee (1/11/2012)
SELECT
CONVERT(VARCHAR(10), UTCOccurrenceDateTime, 111)
FROM Alerts
WHERE (Heading LIKE 'Disk...
January 11, 2012 at 11:30 am
Not a VB dev, but in C# we set the SqlCommand.Timeout. Most likely it is the connection or command in your VB code that is actually Timing out, not the...
January 11, 2012 at 11:16 am
worker bee (1/11/2012)
select ServerName, Heading, UTCOccurrenceDateTime
REPLACE(CAST(UTCOccurrenceDateTime as date),'-','/')
from dbo.Alerts where Heading like '%blocking%'
AND DATEADD(hh, -6, UTCOccurrenceDateTime) >= DATEADD(day, DATEDIFF(day, 0, GETUTCDATE()), 0)
order...
January 11, 2012 at 11:08 am
Try this bick, and please reply with the results... I am not on a machine with management studio, so can't test.
SELECT datakey,COUNT(datakey) OVER(Partition by datakey) AS Uniquedatakey,
...
January 11, 2012 at 11:05 am
Have not tested this, but :
SELECT COUNT(DISTINCT datakey) OVER(Partition by datakey) AS Uniquedatakey,
COUNT(DISTINCT CASE WHEN landline<>'' THEN landline END) OVER(Partition by datakey) AS...
January 11, 2012 at 10:20 am
Ooo. Sorry, I think I missinterpreted your requirements.
Try this instead:
SELECT qid, postcode_area, vehicle_group, premium, lic_years, ncb, proposer_age, email, created
FROM Mainstreet.dbo.leads l
---------------
--try this join
inner join (
SELECT distinct id
FROM Mainstreet.dbo.leads
) le
on l.email...
January 11, 2012 at 10:02 am
mike.barrett (1/11/2012)
January 11, 2012 at 9:50 am
worker bee (1/11/2012)
add...
January 11, 2012 at 9:25 am
Gianluca Sartori (1/11/2012)
WITH MeaningfulCTEName AS (
SELECT c.owneridname as BSC,
z.Tpl_TotalGWP as Total2012,
...
January 11, 2012 at 9:02 am
the following query
select member_number, date, time_in, time_out from member_time where time_out <='9:30 am' gives the following data
member_number date time_in time_out
2550 1/9/2012 7:55:31 AM 1:08:15 PM
2563 1/9/2012 7:55:59 AM 4:30:00...
January 10, 2012 at 2:32 pm
Not sure I fully understand the requirements, but why don't you just declare your parameters and then do your If/Else statements, and drop the cursor all together?
Stephen
January 9, 2012 at 1:36 pm
In an attempt to help, you could obviously do some sort of +1 if/else statement, or a case when statement to a variable. The below code is very basic and...
January 9, 2012 at 12:39 pm
"Big Data" I dream about. Being a young, junior DBA/developer/BI analyst, on a small project, I hope to one day dive right into the world of big data. I can't...
October 20, 2011 at 7:18 am
Thank you all for the good luck. I am hoping to become a more active member of SQL Server Central, and attending a SQL conference in the near future!
-Stephen
August 5, 2011 at 7:37 am
Viewing 15 posts - 31 through 45 (of 55 total)