Viewing 15 posts - 1 through 15 (of 240 total)
datatime has an implicit conversion to varchar, based on your locale. datetime2 does not.
Lowell, I'm a bit confused. The map you posted kind of shows that datetime2 also has...
November 25, 2019 at 8:37 pm
Yes, but as written you'll get NULL because @CaptureError and @Date are nulls. Assign some values and test it.
November 25, 2019 at 7:34 pm
Explicitly convert @Date to CHAR or VARCHAR.
November 25, 2019 at 7:15 pm
You are comparing strings, not numbers.
'1000205830'
'1000206'
'1000206010'
November 21, 2019 at 6:42 pm
I hear you, it's tempting to think that it will negate 5 rows selected by a = 1 or b = 1 and return the other 4. But in fact,...
November 20, 2019 at 6:29 pm
not (a = 1 or b = 1) is equivalent to a <> 1 and b <> 1 which is only True for the row where both a and b...
November 20, 2019 at 4:06 pm
Maybe OP re-creating index, not rebuilding it? Last sentence ("i have application which drops indexes") kind of implies that?
October 29, 2019 at 6:47 pm
Can't you use RIGHT or SUBSTRING ?
September 19, 2019 at 6:20 pm
DECLARE @BufferPoolDescription VARCHAR(60);
DECLARE @BufferPoolSizeMB VARCHAR(60); --BIGINT?
EXECUTE sp_executesql N'SELECT @p1 = state_description, @p2 = (current_size_in_kb / 1024) FROM sys.dm_os_buffer_pool_extension_configuration',
...
September 17, 2019 at 3:45 pm
Why not use TABLESAMPLE?
SELECT * FROM YourTable TABLESAMPLE(100 ROWS)
SELECT * FROM YourTable TABLESAMPLE(10 PERCENT)
September 16, 2019 at 10:12 pm
You do realize that this is not an Oracle forum, right? Simple Google search for Oracle forums should get you to the right place, for example:
https://community.oracle.com/community/groundbreakers/database/developer-tools/sql_and_pl_sql
September 13, 2019 at 9:46 pm
When I'm looking for text in procedures I usually query sys.sql_modules view, something like this:
SELECT
o.object_id
,SchemaName = s.name
,ObjectName =...
September 13, 2019 at 6:38 pm
Sample calls from function comment. The last one works but 4 prior produce that error.
August 21, 2019 at 3:58 pm
Thanks Jonathan, nice function. Which versions of SQL Server it will work with? It doesn't seem to work on 2008R2. I replaced IIF with CASE but now getting this:
August 21, 2019 at 3:48 pm
Is UPDATE statement being dynamically constructed? If so, print it out and see if it's correct.
August 19, 2019 at 7:43 pm
Viewing 15 posts - 1 through 15 (of 240 total)