Viewing 15 posts - 31 through 45 (of 901 total)
Luis Cazares (11/12/2015)
Jason-299789 (11/12/2015)
Will the number of columns be limited to 3 or will...
November 12, 2015 at 8:07 am
This is another way to and its a little more dynamic, and saves the
DECLARE @CustOrder TABLE
(
CustId Int
,SalesValue Money
)
INSERT INTO @CustOrder
(CustId,SalesValue)
Values
(100813, 124)
,(100813, 110)
,(100794, 297)
,(100794, 99)
,(100794, 101);
WITH CTE_data
As
(
SELECT ROW_NUMBER() OVER...
November 12, 2015 at 8:03 am
The best way would be to use the CROSS TAB method, mentioned in this article : http://www.sqlservercentral.com/articles/T-SQL/63681/
Will the number of columns be limited to 3 or will it depend on...
November 12, 2015 at 7:30 am
I believe the correct syntax is
--EXECUTE master.sys.sp_MSforeachdb 'USE [?]; <SQL CODE>'
--EG
DECLARE @sql VARCHAR(8000)
SET @sql = 'USE [?];IF (EXISTS (SELECT * FROM INFORMATION_SCHEMA.TABLES
WHERE TABLE_NAME =...
November 11, 2015 at 3:02 am
As an aside, and I hope you dont mind me asking, but why go for Standard and not Developer edition, which will have significant savings on Standard licensing, while still...
November 4, 2015 at 9:31 am
Thanks for all the help its given us a place to start looking deeper at the issues.
To clarify a few points,
1) The SQL Install on the DB server...
April 21, 2015 at 1:44 am
Its a SharePoint 2013 install.
I didn't set up the Sharepoint boxes, the SQL server box as far as I can tell is a single box within the farm and...
April 20, 2015 at 2:15 am
Its impossible to answer, not only for the reason Gail mentions, but also because the exam is different for everyone.
I will say I passed the 70-461 with room to spare...
April 17, 2015 at 7:14 am
This is why I detest cursors for all but a few selective requirements.
April 16, 2015 at 5:47 am
I think this is a dependency issue.
Its difficult to see, as we don't know the order the tables are created or the data types of the tables, its is possible...
April 16, 2015 at 3:08 am
hudriwudri5 (4/15/2015)
What you mean with BoL States?
BoL (books on Line) : taken from the page https://msdn.microsoft.com/en-GB/library/ms180169.aspx
DYNAMIC
Defines a cursor that reflects all data changes made to the rows in...
April 16, 2015 at 12:44 am
Is it because its defined as DYANAMIC and BoL states that the data can change within the cursor during the loop.
April 15, 2015 at 7:55 am
No Problem, I've been doing a lot with the new window functions especially the ranges for Running totals.
I've also looked at DAX and found its missing some of the useful...
April 14, 2015 at 5:45 am
Or you could do something like this
DECLARE @Table TABLE
(
Value int
,Monthly smallint
)
INSERT INTO @Table
(Value,Monthly)
VALUES
(1,1)
,(2,2)
,(3,3)
,(4,4)
,(5,5)
,(6,6)
,(7,7)
,(8,8)
,(9,9)
,(10,10)
,(11,11)
,(12,12)
,(13,13)
,(14,14)
SELECT
*
,SUM(Value)
OVER (ORDER BY Monthly
ROWS BETWEEN 11 PRECEDING AND Current Row) RollingTotal
,SUM(Value)
OVER (ORDER BY...
April 13, 2015 at 7:51 am
Effectively step 3 is redundant why delete the rows in the source, and then reinsert them, you're doubling the work load. Its should just be a case of
1) Import...
March 30, 2015 at 1:20 am
Viewing 15 posts - 31 through 45 (of 901 total)