Viewing 15 posts - 241 through 255 (of 499 total)
jim.riedemann (6/25/2015)
June 25, 2015 at 8:42 am
jim.riedemann (6/25/2015)
I hadn't...
June 25, 2015 at 8:20 am
Greg Larsen (4/27/2015)
Comments posted to this topic are about the item <A HREF="/articles/Stairway+Series/125504/">Stairway to Advanced T-SQL Level 6: Creating Rows Of Data Using The UNPIVOT Operator</A>
Consider using CROSS APPLY instead...
June 24, 2015 at 7:19 am
Nakul Vachhrajani (6/24/2015)
Divide by 0 is not causing a problem in the SELECT clause because of the presence of EXISTS. You can have pretty...
June 24, 2015 at 6:58 am
Post your query.
Tell us how you got the results to your text file
June 23, 2015 at 1:41 pm
If you can arrange the columns in the order most-searched to least-searched, start with indexes on the most-searched and add others as conditions dictate. Also, consider combinations. e.g. if...
June 23, 2015 at 10:22 am
something like this:
add a column "when datetime" to your table then:
begin tran
declare @when datetime = current_timestamp;
insert into table
exec sp_who2
update table
set when = @when
where when...
June 22, 2015 at 2:25 pm
Great article. Also a great take on some of the problems ORM can cause. It's one reason I'm not a LINQ-to-SQL fan. For anything but the simplest...
June 22, 2015 at 2:17 pm
Isn't this the Travelling Salesman problem or a variation thereof? That's an NP-Complete problem. No known polynomial-time solution exists and IMHO none will ever be found. For...
June 22, 2015 at 2:11 pm
select Providerid, Providername, Clientid
, (Rate / count(*) over()) as [divided rate]
from table1
June 22, 2015 at 1:48 pm
Giving this a bump to spark new interest
June 17, 2015 at 6:44 am
Easy but encourages a bad practice: Using an INSERT statement without a column list. OTOH if you had a column list with the two non-identity columns, the question...
June 12, 2015 at 6:50 am
OK -- so the question is clearly missing something. Here's what I tried: Create the table as given, then disable the PK:
CREATE TABLE SalesArchive
(
Salesid INT PRIMARY KEY...
June 10, 2015 at 6:43 am
Grant Fritchey (6/9/2015)
g.britton (6/9/2015)
Grant Fritchey (6/9/2015)
June 9, 2015 at 9:53 am
spaghettidba (6/9/2015)
If you change your SSMS connection setting and clear the cache for that plan ( DBCC FREEPROCCACHE(plan_handle) )...
June 9, 2015 at 9:15 am
Viewing 15 posts - 241 through 255 (of 499 total)