Viewing 15 posts - 1,771 through 1,785 (of 8,731 total)
EdVassie (12/7/2016)
However, the index suggested by Luis is guaranteed to require a clustered index lookup to...
December 7, 2016 at 12:52 pm
Ed Wagner (12/7/2016)
DamianC (12/7/2016)
Revenant (12/7/2016)
Manic Star (12/7/2016)
LimboStick
Man
Machine
War
December 7, 2016 at 10:50 am
ZZartin (12/7/2016)
December 7, 2016 at 8:58 am
Ken McKelvey (12/7/2016)
The normal approach is to join to a calendar table for the datetime between the given times.
I'm not sure about this approach. If the datetime column can have...
December 7, 2016 at 8:18 am
Here's an option that can help.
IF OBJECT_ID('dbo.DateTimeTable') IS NOT NULL
DROP TABLE dbo.DateTimeTable;
CREATE TABLE dbo.DateTimeTable( MyDatetime datetime);
CREATE CLUSTERED INDEX CI_MyDatetime ON dbo.DateTimeTable(MyDatetime);
INSERT INTO dbo.DateTimeTable
SELECT TOP 10000 CAST(...
December 7, 2016 at 8:14 am
Post DDL for tables and indexes involved. Also post the actual execution plan. In a previous post, I shared an article on how to get all that.
December 6, 2016 at 1:58 pm
Lynn Pettis (12/6/2016)
My only other question is why the dynamic SQL for a query that doesn't need it?
That's probably generated by an ORM.
December 6, 2016 at 1:56 pm
Follow the indications on this article for further advice.
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
December 6, 2016 at 12:50 pm
If you don't have an index on hcs.AdminObservation(TherapyAdmin_ID) the only option is to use the clustered index.
The following index might help your query, but will also create overhead on writes....
December 6, 2016 at 12:13 pm
Ed Wagner (12/6/2016)
Ray K (12/6/2016)
Brandie Tarvin (12/6/2016)
djj (12/6/2016)
Ed Wagner (12/6/2016)
Manic Star (12/6/2016)
djj (12/6/2016)
Brandie Tarvin (12/6/2016)
Kaye Cahs (12/6/2016)
Grumpy DBA (12/6/2016)
Ed Wagner (12/6/2016)
CreamCookies
Milk
Santa
Baby
Buggy
Walk
Amble
Meander
Wander
Lost
Found
December 6, 2016 at 9:51 am
swarun999 (12/5/2016)
(
@UserId nvarchar(255),
@Password nvarchar(255)
)
as
begin
declare @count int
select @count = count(*) from UsersTable where UserId = @UserId and [Password] = @Password
if(@count = 0)
begin
Print...
December 5, 2016 at 12:29 pm
sharon-472085 (12/5/2016)
first thank you 🙂
second i do it for test some of tables with float data that i need to convert to
char. ( dont look for logic...
December 5, 2016 at 12:15 pm
That's pretty basic. What have you tried? What problem are you facing?
If this isn't homework, I'd be really concerned if you're handling passwords on plain text.
December 5, 2016 at 12:12 pm
Eventhough, I appreciate your intentions to "educate the noobs". I would suggest that you stop bashing them when you can't even test your code before posting it. The code is...
December 5, 2016 at 11:11 am
Viewing 15 posts - 1,771 through 1,785 (of 8,731 total)