Viewing 15 posts - 1 through 15 (of 22 total)
I see how using sys.languages lets you determine the default datefirst given the default language, ... but that raises the question, how does one find the default language for this...
June 15, 2020 at 8:19 am
Please consider all the advice given here by others.
That being said, you were very close.
with SalTest as
( select
-- Putting * here includes all fields including Name
*,
--...
September 5, 2019 at 12:06 pm
Fun fact: Your article reveals an error in how SQL Server casts numeric to float.
STR(.922337203685477580,19,19) should end in 776, but it ends with 777.
Further investigation shows that cast(.922337203685477580 to float)...
May 2, 2019 at 1:20 pm
There's something missing that I don't see in your article nor the Microsoft website.
If you convert bigint value 9223372036854775807 to float, the exact value of the result is 9223372036854775808. This...
April 26, 2019 at 10:18 am
This is the question that appeared to me:
What is the maximum relational database size of the SQL Server 2014 edition can grow to?
July 24, 2015 at 1:41 am
I would try something like this:
update a set did='z' where lid in
( select lid from b where uid in
( select uid from c where type='c') )
December 27, 2011 at 5:48 am
I too thought it would return 'this'.
I've read the documentation about 'sp_' and system stored procedures but I've always misunderstood until now.
The documentation doesn't really make clear what is a...
August 23, 2011 at 2:45 am
I would just like to point out that if any of your filenames has a ']' in it, your code will fail.
April 15, 2011 at 5:09 am
Let's think about what might be going on inside when those concatenations are being done.
I can't say that I know how this is implemented in this particular case, but...
April 15, 2011 at 5:04 am
I'm not familiar with the keyword "decrypt". I'm guessing it's something that works in
much older versions of SQL Server.
Even if that fragment of code is not being...
January 12, 2011 at 6:10 am
Why not create your own?
create function dbo.SUBSTRING_TO_ENDPOS ( @string varchar(8000),
...
January 12, 2011 at 5:51 am
When you specify two filter conditions with AND, it's up to the SQL Server to decide the order in which to apply the conditions.
Consider this code:
create table test (...
September 8, 2010 at 6:05 am
Might this be what you're looking for?
SELECT
CASE WHEN ROUND(18.00,2) = CONVERT(INT,18.00) THEN
convert(float,CONVERT(INT,18.00) )
ELSE
convert(float,18.00 )
END
SELECT
CASE WHEN ROUND(18.01,2) = CONVERT(INT,18.01) THEN
convert(float,CONVERT(INT,18.01))
ELSE
convert(float,18.01)
END
A case...
September 3, 2010 at 6:32 am
If I understand your question:
You are saving a copy of an Excel spreadsheet (or Word document) to the database.
You then open that Excel spreadsheet, make no changes to it,...
August 25, 2010 at 5:00 am
Viewing 15 posts - 1 through 15 (of 22 total)