Viewing 15 posts - 511 through 525 (of 2,647 total)
rob.vig (7/16/2012)
Like I said... this is my first T SQL statement!
I wanted to place 2 INSERT's and one DELETE. If they didn't work, I want to...
July 16, 2012 at 8:42 am
sudhakara (7/16/2012)
Msg 201, Level 16, State 7, Line 1
Procedure...
July 16, 2012 at 8:38 am
Well, Sean had a good point... but I will try to give you a "hint" on what I would do. Write a stored proc that takes a date range...
July 16, 2012 at 8:32 am
The problem is that it is a cursor and a function 🙂 Can you give us the stored proc that runs? This will help us to help you. ...
July 11, 2012 at 7:27 am
Take whatever stored procedure is writing to table A and make sure that it also writes to table B. You can do it at the same time using the...
July 10, 2012 at 3:28 pm
Something like this?
CREATE TABLE #temp(subject_id int identity(1,1), measurement numeric(8,2))
INSERT INTO #temp (measurement)
SELECT 5.0
UNION ALL
SELECT 6.2
UNION ALL
SELECT 4.6
DECLARE @mean numeric(8,2)
DECLARE @ss numeric(8,2)
DECLARE @n numeric(8,2)
DECLARE @stdDev numeric(8,2)
SET @n = (SELECT COUNT(1) FROM...
July 10, 2012 at 3:20 pm
TheSQLGuru (7/10/2012)
SQLKnowItAll (7/10/2012)
TheSQLGuru (7/10/2012)
GilaMonster (7/9/2012)
Couple steps back... Why are you partitioning? What's the purpose and expected gain?Spot-on Gail, as always.
See this post: http://www.sqlservercentral.com/Forums/Topic1301588-1550-1.aspx#bm1302471
Well, I might have made an @$$...
July 10, 2012 at 2:42 pm
blampe (7/10/2012)
The data is being used in a production environment and the purpose of this data obfuscation is just to prevent any sensitive data from being seen by people...
July 10, 2012 at 2:36 pm
Just curious... Why are you giving access to sensitive information to people who don't need it. If it is scrambled, why not just deny permission to the column? Or,...
July 10, 2012 at 2:20 pm
Hmm... Not completely sure, but I would personally not be altering backup related tables. Maybe someone else will have some input.
July 10, 2012 at 2:15 pm
I would check with the company that makes said "snapshot" device and find out why they are writing to the database or exactly what they are doing with SQL Server.
July 10, 2012 at 12:42 pm
I have only seen and experienced performance gains with a pull subscription over a WAN. Have not researched or experienced anything else. We always set ours up as push,...
July 10, 2012 at 12:38 pm
A heap is actually a table without a clustered index (i.e. order of the data itself). You can have non-clustered indexes on a heap. Sometimes it is more hassle to...
July 10, 2012 at 12:34 pm
You don't use PRINT before the stored proc. Also, this sp shouldn't be used since it is deprecated. http://msdn.microsoft.com/en-us/library/ms188424.aspx%5B/code%5D
July 10, 2012 at 12:15 pm
My first question would be "Do you know why this is partitioned?" What's the reasoning?
July 10, 2012 at 11:54 am
Viewing 15 posts - 511 through 525 (of 2,647 total)