Viewing 15 posts - 1,006 through 1,020 (of 2,462 total)
It's been awhile since I wrote an LDAP query...
If you can post some sample data for what of #tempAD I'm sure I can help you.
-- Itzik Ben-Gan 2001
February 17, 2016 at 9:32 am
Luis beat me to it. Note the code/comments below.
DECLARE @table TABLE (NumericColumn int);
INSERT @table VALUES (1),(2),(-999);
-- This WONT work because blanks on numeric columns are returned as 0's
SELECT NumericColumn...
-- Itzik Ben-Gan 2001
February 17, 2016 at 9:27 am
SQL!$@w$0ME (2/17/2016)
Thanks.For VARCHAR [varchar(MAX) & varchar(800] fields on two different tables. This fields are intended to use in WHERE CLAUSE (using 'like').
You can't add a nonclustered index with a varchar...
-- Itzik Ben-Gan 2001
February 17, 2016 at 7:04 am
trvlbabie (2/16/2016)
It is giving me the following error: SQL API: [SQLExecDirectW], SQL RETURN: [-1], SQL STATE: [42000], SQL NATIVE ERROR:...
-- Itzik Ben-Gan 2001
February 17, 2016 at 6:48 am
djj (2/16/2016)
Alan.B (2/16/2016)
Lynn Pettis (2/16/2016)
-- Itzik Ben-Gan 2001
February 17, 2016 at 6:32 am
hartmann 74688 (2/17/2016)
Just to make it clear, they are windowing functions or window functions.Windows functions sounds like API of the OS :).
Good Article, great reminder!
I noticed that too (and...
-- Itzik Ben-Gan 2001
February 17, 2016 at 5:48 am
Note the section titled "Using Transact-SQL" in this link: Enable Compression on a Table or Index
-- Itzik Ben-Gan 2001
February 16, 2016 at 10:15 pm
If there is a possibility that OccurrenceTypeName will contain any of what SQL Server considers XML characters (e.g. CHAR(1) through CHAR(32), CHAR(38), CHAR(60) or CHAR(62)) then you would make a...
-- Itzik Ben-Gan 2001
February 16, 2016 at 10:13 pm
There is no reason you should need a cursor here or any other form of RBAR solution for this. Based on a quick look at what you're trying to do...
-- Itzik Ben-Gan 2001
February 16, 2016 at 9:54 pm
SQL!$@w$0ME (2/16/2016)
Hi Folks:For VARCHAR field, non-clustered index or full-text index recommended. When should we use full-text index.
Any guidance/thoughts much appreciated.
Many thanks!
Why do you think you need any index on the...
-- Itzik Ben-Gan 2001
February 16, 2016 at 9:37 pm
EasyBoy (2/16/2016)
Through SQL profiler i found those queries (dynamic SQL), which are running through SQL...
-- Itzik Ben-Gan 2001
February 16, 2016 at 9:29 pm
and most people helping on forums aren't being paid
Huh?!?! I just thought my SSC paycheck was really late. Aw man!
-- Itzik Ben-Gan 2001
February 16, 2016 at 8:56 pm
Lynn Pettis (2/16/2016)
-- Itzik Ben-Gan 2001
February 16, 2016 at 11:41 am
Luis Cazares (2/16/2016)
SELECT
StartTime = DATEADD(DD, DATEDIFF(DD, 0, GETDATE()), -.25), -- 6PM yesterday
EndTime ...
-- Itzik Ben-Gan 2001
February 16, 2016 at 11:17 am
I prefer to use T-SQL for this type of thing. The way I would do this is:
1) Create a Dataset named something like DS_DateDefaults (use whatever matches your naming convention)
2)...
-- Itzik Ben-Gan 2001
February 16, 2016 at 10:38 am
Viewing 15 posts - 1,006 through 1,020 (of 2,462 total)