Viewing 15 posts - 1,261 through 1,275 (of 1,469 total)
2 Possible options ...
DECLARE @SeedVal INT = ISNULL((SELECT LID_ID_NB from LastIDNumber WHERE LID_KET_NM = 'TableName'), 0) +1;
DBCC CHECKIDENT ( TableName, RESEED, @SeedVal ) WITH...
February 14, 2017 at 10:55 am
I'm still getting a listing of each hour of that day and not the...
February 10, 2017 at 12:47 pm
SELECT TOP(1) ID
FROM YourTable
ORDER BY StartDate DESC;
February 9, 2017 at 4:41 am
briancampbellmcad - Friday, February 3, 2017 7:06 AM
If the fields in this screenshot are declared as NVARCHAR, it shows...
February 6, 2017 at 1:03 pm
February 6, 2017 at 12:44 pm
February 2, 2017 at 12:18 pm
Also note that the input parameter to the function should be declared as NVARCHAR
February 2, 2017 at 12:04 pm
I think my preferred method will be with the .bat file...
February 2, 2017 at 3:08 am
You can create a batch file that will merge them for you.
Create a file called SomeName.BAT
Add the following content, and then simply Double-Click the .BAT file
February 1, 2017 at 10:55 pm
February 1, 2017 at 3:17 am
However ....
When comparing varchars
'100' < '99'
February 1, 2017 at 2:45 am
January 30, 2017 at 9:26 pm
January 30, 2017 at 2:31 pm
This will unpivot the data, but the column names may need some tweaking
declare @test-2 as table (
ID int
, Title varchar(7)
, StageName...
January 30, 2017 at 2:22 pm
declare @t as table (
initial_date_time smalldatetime
);
insert into @t values('2017-01-30 15:05:00'), ('2017-01-30 15:22:00'), ('2017-01-30 15:37:00'), ('2017-01-30 15:54:00')
select
case
when RIGHT('0'+cast(DATEPART(mi,initial_date_time)...
January 30, 2017 at 1:27 pm
Viewing 15 posts - 1,261 through 1,275 (of 1,469 total)