Viewing 15 posts - 8,401 through 8,415 (of 8,753 total)
Quite few ways of doing this, here is one
😎
DECLARE @XML_STUFF TABLE
(
XML_ID INT IDENTITY(1,1) PRIMARY KEY CLUSTERED NOT NULL
,XML_DATA...
May 4, 2014 at 5:37 am
thava (5/3/2014)
hi,hope everybody doing good,
here is my problem this is my data
The problem is in the data, each node can only have one parent!
😎
May 4, 2014 at 5:24 am
Quite few ways of doing this, in essence create a set of all customers/months and then do the count.
The server normally translates queries such as "select * from A left...
May 4, 2014 at 4:55 am
mister.magoo (5/4/2014)
It's interesting that you used fetch first N instead of TOP(N).Was there a performance improvement or just personal preference?
It is more of a preference, kind of a reminder...
May 4, 2014 at 3:46 am
Firstly, thank you all for looking into this. It was me after all missing something rather obvious, maybe too obvious. The CTE in the code generates a sequence of 10^8...
May 4, 2014 at 2:32 am
First thought would be a VPN implementation, encrypts the point to point communication
😎
May 3, 2014 at 12:20 pm
LutzM (5/3/2014)
But this query doesn't return the result set as requested since there's a TOP 15 involved for each group...
Ooops, the lights are on but no one's at home 😛
[mental...
May 3, 2014 at 7:19 am
A little trick with SIGN and the OVER clause makes this a simple query
😎
USE AdventureWorks2012;
GO
;WITH MULTI_COUNTING AS
(
SELECT /* Sum the row numbers, gives distinct count */
...
May 3, 2014 at 5:15 am
IMHO: The ability to quickly hide and show the result pane is very helpful, especially when working with limited screen estate (laptops, tables & mobiles).
😎
May 3, 2014 at 4:18 am
What does this return?
SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = N'MasterAgentPayments'
Do you have the duplicate table in a different schema?
😎
May 3, 2014 at 1:39 am
Next step, generate the create script for the table. Make certain to go first to tools->options and under SQL Object Explorer->Scripting select all the relative options.
Let us know what you...
May 3, 2014 at 1:00 am
Execute this statement (with the correct schema and table name)
EXEC sp_help 'schema.table'
Then look for the constraint and Foreign key reference sections. Resolve those!
😎
May 3, 2014 at 12:31 am
If it is not working then take a look at this: CTRL + R not working in SSMS 2012
😎
May 2, 2014 at 11:53 pm
First thing that comes to mind is to use the SQL Server Import and Export Wizard from SSMS. (right click on the target sql database->Tasks->Import data) Walk through the Wizard...
May 2, 2014 at 11:49 pm
For what it's worth, have a test system with 2005 and 2014 on it, not on the same drives though, 2005 is a default 1433 instance, 2014 a named instance,...
May 2, 2014 at 12:19 pm
Viewing 15 posts - 8,401 through 8,415 (of 8,753 total)