Viewing 15 posts - 24,376 through 24,390 (of 59,099 total)
thisisfutile (2/14/2014)
fsuoj (2/14/2014)
Where is it documented that not using % assumes % at the end?The Insert "trims" the trailing spaces from the data.
Not quite right. Trailing spaces are not...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 16, 2014 at 5:41 pm
goldstone.david (2/16/2014)
I have done a basic 'writing SQL' training a couple of years ago. I use SSMS 12 at work and play with it at home. I can write basic...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 16, 2014 at 4:51 pm
Ah.... sorry. I didn't scroll down before posting and didn't notice that you also referred to Wayne's fine article on the subject.
--Jeff Moden
Change is inevitable... Change for the better is not.
February 16, 2014 at 4:32 pm
SQLRNNR (2/14/2014)
2012 has a feature that allows this kind of "quirky update" to be done...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 16, 2014 at 4:30 pm
I believe that a part of your problem is that you've hardcoded the database ID in your code at the following line.
from sys.dm_db_index_physical_stats ([font="Arial Black"]5[/font], null,null,null,'Limited') S
--Jeff Moden
Change is inevitable... Change for the better is not.
February 16, 2014 at 4:17 pm
milos.radivojevic (2/16/2014)
CREATE FUNCTION dbo.StringToTable
(
@Input NVARCHAR (4000),
@Delimiter NVARCHAR(1)
)
RETURNS @OutputTable TABLE (val NVARCHAR(50))
AS
BEGIN
...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 16, 2014 at 4:05 pm
tmlink99 (2/15/2014)
The thing is, the problem you describe is twofold: the OP wants to know what the community thinks (the "experts"), but the community also...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 16, 2014 at 3:50 pm
niladri.primalink (2/16/2014)
I have a table called Table1 where I have five fields like Tableid, Processigndate, Amount, remainingCollectonCount and Frequency. All total I have more than 5Lacs records.
Now I...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 16, 2014 at 3:42 pm
Michael L John (2/15/2014)
You need three triggers (Ugh!); insert, update and delete.
Actually, you don't. Just calculate whether it's an INSERT, UPDATE, or DELETE and mark a column with...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 16, 2014 at 2:41 pm
CLARE.FAUGHEY (2/11/2014)
--Jeff Moden
Change is inevitable... Change for the better is not.
February 16, 2014 at 2:16 pm
milos.radivojevic (2/16/2014)
I guess that the problem was to identify the frist monday in a year and that the rest of the rows generation is more or less trivial.
Agreed but use...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 16, 2014 at 1:19 pm
milos.radivojevic (2/16/2014)
--first Monday of the month
SELECT DATEADD(day, DATEDIFF(day, '19000101', DATEADD(month, DATEDIFF(month, '19000101', GETDATE()), '19000101')-1) /7*7 + 7, '19000101');
--first Monday of the year
SELECT DATEADD(day, DATEDIFF(day, '19000101', DATEADD(year, DATEDIFF(year, '19000101',...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 16, 2014 at 10:35 am
meridius10 (2/13/2014)
Basically I'd like to test a cloud based database but don't want to have to hand over my credit card details in order to be able to do so.
Ah......
--Jeff Moden
Change is inevitable... Change for the better is not.
February 16, 2014 at 8:14 am
Jack Corbett (2/13/2014)
--Jeff Moden
Change is inevitable... Change for the better is not.
February 14, 2014 at 9:07 am
kishorefeb28 (2/13/2014)
Thank you.
You bet. Thanks for the reply. Just to be sure, do you understand how it works?
--Jeff Moden
Change is inevitable... Change for the better is not.
February 14, 2014 at 8:50 am
Viewing 15 posts - 24,376 through 24,390 (of 59,099 total)