Viewing 15 posts - 1 through 15 (of 40 total)
May 1, 2013 at 1:02 pm
What are the data types of the columns? Wondering if you're not suffering from a collation issue. A litmus test for this would be one of the instances may churn...
May 1, 2013 at 1:01 pm
If you want to display the result that way in the SQL output, then yes.
March 11, 2013 at 4:07 pm
What you're seeing there is what SQL server is passing back, or the "output". I'm assuming you're looking at the profiler event RPC:Completed and not RPC:Started? The later may give...
March 11, 2013 at 4:04 pm
Are you looking for uniqueness for:
1. a AND b (a,b) = 8 rows, which includes the one you said it doesn't
2. a OR b = 1 row (7,10,'j')
3. a UNION...
March 11, 2013 at 3:58 pm
Here's a sample code you can run which will show you what we're talking about. Notice you're also using only the date portion of the datetime, so there may be...
March 11, 2013 at 3:48 pm
OH! I re-read and if you're only looking to get 'c' column values here's an approach that can do it using a CTE:
declare @a table (a int,b int,c...
March 11, 2013 at 3:40 pm
Here's one way to do it:
declare @a table (a int,b int,c char(1))
insert into @a
select 1,17,'a' union all
select 1,15,'b' union all
select 2,15,'c' union all
select 3,14,'d' union all
select...
March 11, 2013 at 3:34 pm
Or in other words, converting it to a DATETIME rather than a VARCHAR(10) is undermining what you're trying to do.
March 11, 2013 at 3:28 pm
This may come in handy.
http://www.sql-server-helper.com/tips/date-formats.aspx
I think you want this:
SELECT CONVERT(VARCHAR(10), GETDATE(), 110) AS [MM-DD-YYYY]
March 11, 2013 at 3:26 pm
One question - how often are you backing up your log?
March 6, 2013 at 11:35 am
You may want to consider dummy variables to prevent parameter sniffing, that could explain what you're seeing. Here's one article about parameter sniffing:
http://blogs.technet.com/b/mdegre/archive/2012/03/19/what-is-parameter-sniffing.aspx
March 6, 2013 at 11:27 am
This is a great article, but it appears there's some confusion over various standards that float within UPC-A depending on the prefix. Where the article states the following, "The three...
February 28, 2013 at 12:34 pm
Well, here's the thing, perhaps context will help point to why I'm asking. And if there's not a good article on this perhaps I'll do the research myself and post...
July 27, 2012 at 3:27 pm
Figured I'd update my findings in case anyone ever runs into the same issue. After interrogating the DMV's and further review, we determined that the high volume of "Other" waits...
July 12, 2012 at 8:44 am
Viewing 15 posts - 1 through 15 (of 40 total)