Viewing 15 posts - 2,881 through 2,895 (of 8,761 total)
I find it easier to log the output of the OH scripts to a table and work from there.
😎
November 7, 2016 at 9:48 am
One option is to use XML, here is a simple example
😎
USE TEEST;
GO
SET NOCOUNT ON;
DECLARE @PARAXML XML = '<X>1</X><X>2</X><X>3</X><X>4</X><X>5</X>';
SELECT
P.DATA.value('(./text())[1]','INT') AS PARAM_VALUE
FROM @PARAXML.nodes('/X') P(DATA);
Output
PARAM_VALUE
-----------
1
2
3
4
5
Quick question, how many parameter...
November 7, 2016 at 9:45 am
David Burrows (11/7/2016)
WITH x (ID,FirstName,LastName,UserName,RowNum) AS (
SELECT e.ID,e.FirstName,e.LastName,LEFT(e.FirstName,t.N)+e.LastName,
ROW_NUMBER() OVER (PARTITION BY e.ID ORDER BY LEN(LEFT(e.FirstName,t.N)+e.LastName) ASC)
FROM #Employee e
JOIN master.dbo.Tally t ON t.N BETWEEN 1...
November 7, 2016 at 7:55 am
Eric M Russell (11/4/2016)
November 7, 2016 at 7:34 am
Jeff Moden (11/6/2016)
Geez... it would have been SOOOOOOOO simple for them to make the "improvement" so much more worthwhile. I don't know why they even bothered.
They had to add...
November 7, 2016 at 7:20 am
Brandie Tarvin (11/7/2016)
GilaMonster (11/7/2016)
If it worked according to your theory, then a compressed backup would take longer than a normal backup...
November 7, 2016 at 7:03 am
Quick thought, if you are storing exactly the same information for all "person types" then a single person table could work.
😎
+------------+ ...
November 7, 2016 at 6:18 am
You can find detailed memory information in the sys.dm_os_process_memory view.
😎
November 7, 2016 at 5:20 am
SteveD SQL (11/7/2016)
Unfortunately I have no control over the data structure so is not be an option for me.
Interesting idea though. Quick followup, if I had that as a...
November 7, 2016 at 5:17 am
Here is a possible solution using a trigger
😎
USE TEEST;
GO
SET NOCOUNT ON;
IF OBJECT_ID(N'dbo.Product05') IS NOT NULL DROP TABLE dbo.Product05;
CREATE TABLE dbo.Product05
(
ProductName VARCHAR(20) NOT NULL
...
November 7, 2016 at 4:54 am
Rechana Rajan (11/7/2016)
Eirikur Eiriksson (11/7/2016)
Rechana Rajan (11/7/2016)
We have two node cluster with 3-2014 Standard edition OLTP instances and 1-2012 Enterprise analysis server instance.
Earlier the server had evalution edition and because...
November 7, 2016 at 4:35 am
Rechana Rajan (11/7/2016)
We have two node cluster with 3-2014 Standard edition OLTP instances and 1-2012 Enterprise analysis server instance.
Earlier the server had evalution edition and because of that now SSMS...
November 7, 2016 at 4:25 am
rajnoha (11/7/2016)
Yes, it's an explanation. But if the procedure call without section TRY / CATCH then no transaction is open - Example 1.
When wrapped in a try/catch, the exit clause...
November 7, 2016 at 3:59 am
rajnoha (11/7/2016)
It's just a question of principle. Why when using the section try / catch remains open transactions?
In this case it is the poor coding of sys.sp_settriggerorder which is throwing...
November 7, 2016 at 2:22 am
abhas (11/7/2016)
hi,if first two letters are same then use first three letters for second user and so on......
Thanks
Abhas.
And if the first names are the same?
😎
November 7, 2016 at 2:04 am
Viewing 15 posts - 2,881 through 2,895 (of 8,761 total)