Viewing 15 posts - 4,351 through 4,365 (of 8,761 total)
sam-433147 (10/22/2015)
how can i insert the declaration
<?xml version="1.0" encoding="UTF-8"?>
to my query?
declare @tbl table(Color varchar(20))
insert into @tbl(Color)
values ('Green')
insert into @tbl(Color)
values ('Red')
select Color
from @tbl Colors
FOR XML AUTO, ROOT ('MyColors'), ELEMENTS...
October 22, 2015 at 5:04 am
nadersam (10/19/2015)
Unfortunately the lag function is not supported on the servers on site, they have SQL Server 2008.Any other option please?.
Self-join the character list cte is another option
😎
October 19, 2015 at 4:31 am
Quick question, is the new install running under the same credentials as the old one? Looks like a simple permission issue.
😎
October 18, 2015 at 12:00 pm
Thanks for the question Junior.
Given the answers it could as well have been "Pick the combination of two correct dates";-)
😎
October 18, 2015 at 10:39 am
Quick solution
😎
USE tempdb;
GO
SET NOCOUNT ON;
DECLARE @INPUT_STR VARCHAR(500) = 'WWWWWWHY DDDDDDDDDDDOOOOOOOOO YYYYYYYYOOOOOOOOOOOOOOOOOUUUUUUUUUU WWWWWWWWWWANNNNNNNNNNNNNTTTTTTT TOOOOOOOOO DOOOOOOOO TTTTTTTTHIIIIIIIIIIISSSSSSS??????????';
;WITH...
October 18, 2015 at 8:29 am
Quick suggestion, query sys.indexes to check if the columnstore index is disabled or not before attempting to manipulate the data.
😎
October 18, 2015 at 12:14 am
Quick thought and further on Jeff's fine answer, observing the wait stats during the operation usually gives a good indication of whether to alter the batch size or even change...
October 17, 2015 at 4:44 am
Another quick solution
😎
SELECT
MIN(T.hierarchyid) AS [hierarchyid]
,T.hierarchyval
FROM #test T
GROUP BY T.hierarchyval;
The two solutions posted are close in performance or rather lack there of,...
October 16, 2015 at 11:04 pm
GilaMonster (10/15/2015)
Oh, and the bloody desktop booted clean to windows on the first try tonight and is behaving itself...
Did you just upgrade to Windows 10?
😎
October 16, 2015 at 12:37 am
My suggestion is somewhat different to the previous ones
😎
1) Safety measures first, Backup the database with verify etc.
2) Create a new file group, add a new data file to it...
October 16, 2015 at 12:28 am
Further on Luis's post, the NULL represents unknown or missing, in the realm of financial transactions that concept is somewhat irrelevant, unknown payment is equivalent of a 0 payment, if...
October 15, 2015 at 1:16 pm
GilaMonster (10/15/2015)
BL0B_EATER (10/15/2015)
October 15, 2015 at 12:22 pm
There is nothing wrong with this DDL, works perfectly. Just a hunch, have you run DBCC CHECKDB on that database recently? Also is this script generated from the table set...
October 15, 2015 at 12:52 am
christophe.bernard 47659 (10/14/2015)
thanks for your time that's exactly what i want ..and now that's work ..
I don't know why the property of this object is...
October 14, 2015 at 3:59 am
Viewing 15 posts - 4,351 through 4,365 (of 8,761 total)