Viewing 15 posts - 166 through 180 (of 812 total)
The correct answer is "Depends", if the view returns or not a row:
No row returned: -> The row is not updated and no error is returned.
Row returned: -> No update...
September 15, 2016 at 2:15 am
That's true!
SELECT ROUND(0.7 , 0) as a into #a
Here, the table created:
CREATE TABLE dbo.#a1
(
a numeric(1,1) NOT NULL
)
September 9, 2016 at 12:48 am
Interesting, thanks!
But, how do I convert it in previous release of sqlserver?
September 6, 2016 at 1:19 am
"we attempt to compress the table using this statement: sp_estimate_data_compression_savings ..." is wrong because the sp "sp_estimate_data_compression_savings" just is an "estimate" and it doesn't compress anything!
September 2, 2016 at 2:03 am
SPARSE is not a datatype but a property.
So, the correct answer is wrong!
SELECT * FROM sys.types
WHERE is_user_defined='0'
September 2, 2016 at 1:57 am
Nakul Vachhrajani (8/9/2016)
Thank-you for the question! Made me revisit the documentation and refresh the concepts (Good!)
+1
August 10, 2016 at 4:07 am
I prefer to use "SET IMPLICIT_TRANSACTIONS ON"
Only one transaction on first I/O and one commit.
SET IMPLICIT_TRANSACTIONS ON
INSERT INTO tbl VALUES
( REPLICATE('a',5000) )
GO 100
COMMIT
GO
print @@trancount
July 27, 2016 at 1:05 am
Waiting for commiting all transactions, in reality, the table is empty for the other connections.
July 27, 2016 at 1:02 am
TomThomson (7/26/2016)
July 26, 2016 at 7:54 am
philip.cullingworth (7/26/2016)
Therefore, as with all variable length character fields, trailing spaces are ignored.Philip
That's not true!
Trailing spaces are stored also in nvarchar e varchar datatype.
Compare and len function ignore trailing spaces.
July 26, 2016 at 1:44 am
It's not a bug and nor a feature.
The first database is stored in sys.databases with double blank.
As you know, the compare condition and len function don't matter of trailing spaces.
So,...
July 26, 2016 at 1:11 am
I found this:
https://msdn.microsoft.com/en-us/library/ms141679.aspx
From BOL:
Truncations. A truncation is less serious than an error. A truncation generates results that might be usable or even desirable. You can elect to treat truncations as...
July 13, 2016 at 8:45 am
The second option is useless, but it also is correct.
SELECT @p = N'@m varchar(200)="event message", @d datetime=getdate(), @U varchar(10)="Steve" '
I.e. this code returns 1 despite @p is initialized...
June 30, 2016 at 1:54 am
Viewing 15 posts - 166 through 180 (of 812 total)