Viewing 15 posts - 16 through 30 (of 99 total)
Mark Grout (8/23/2013)
I understood this question not at all. but I figured the correct answer had to be number two of five, the one above "this can never...
August 23, 2013 at 2:10 am
Why not use DateName function instead of using case conditions !!, as the datatype of column you are checking is datetime.
August 22, 2013 at 4:13 am
Thanks for your suggestions and reply,
Even I did the same recover the connection and replication did the job itself, I was just curious whether we have such options available or...
July 1, 2013 at 12:36 am
You can create a trigger on Table A and update the Table B directly, why to create Table C just for later joining it with TableB.
July 1, 2013 at 12:31 am
Whenever you fire same query second time or more, it will be faster anyways as it will pick the result from cache and gives faster results. This may be the...
June 18, 2013 at 5:27 am
Primary Key Violation error mince.. you are trying to insert duplicate rows into table.
June 11, 2013 at 5:24 am
in the first step am planning to change the datatype(s) of the column to the correct way and test it by rebuilding the indexes.
SQL Server can sort integer data...
June 10, 2013 at 1:22 am
IF EXISTS (SELECT 1 FROM sysarticles WHERE name = @vArticle)
PRINT 'WARNING: Article= '...
June 10, 2013 at 1:11 am
try adding article using below query.
EXEC sp_addarticle @publication = 'PublicationName', @article = 'articleName', @source_object = 'articleName', @source_owner = 'dbo', @Type = 'view schema only'
GO
EXEC sp_refreshsubscriptions 'PublicationName'
GO
Normally on a...
June 10, 2013 at 12:49 am
Dont think changing datatype will have any significant performance change, unless these columns are used in where clause or filteration purpose, if yes create a index on it and then...
June 10, 2013 at 12:43 am
It may be the case of parameter sniffing, alter procedure with WITH RECOMPILE and try.
June 10, 2013 at 12:30 am
Try this...
DECLARE @TestTb TABLE
(eid int, [date] date, [time] time, status char(3))
INSERT INTO @TestTb (eid, [date], [time], status) VALUES
(26359,'2013-01-01','07:44','IN'),
(26359,'2013-01-01','18:50','OUT'),
(26359,'2013-01-02','07:47','IN'),
(26359,'2013-01-02','18:51','OUT')
SELECT * from @TestTb
SELECT a.eid, a.date, d.InTime, e.OutTime
FROM
(SELECT DISTINCT eid, date FROM...
June 8, 2013 at 5:59 am
whenever you create a database with multiple data files, the first file will be created as .mdf and all other as .ndf.
Normally we create database with multiple data files...
June 8, 2013 at 5:19 am
Becuase your query fires INNER JOIN between all three tables, So as per the test data, it will check for all Data available in all three tables.
For Example
First...
June 5, 2013 at 11:44 pm
Viewing 15 posts - 16 through 30 (of 99 total)