Viewing 15 posts - 1,261 through 1,275 (of 2,647 total)
Rohan.SQL (4/2/2012)
SELECT UPPER(os.cpt4_id)
FROM #TRANS t
CROSS APPLY ( SELECT TOP 1 cpt4_id
...
Jared
CE - Microsoft
April 2, 2012 at 12:01 pm
scope_identity() as I mentioned earlier.
Jared
CE - Microsoft
April 2, 2012 at 11:57 am
capn.hector (4/2/2012)
SQLKnowItAll (4/2/2012)
capn.hector (4/2/2012)
;WITH row AS (SELECT ROW_NUMBER() OVER (Partition by auth_id ORDER BY...
Jared
CE - Microsoft
April 2, 2012 at 11:52 am
capn.hector (4/2/2012)
;WITH row AS (SELECT ROW_NUMBER() OVER (Partition by auth_id ORDER BY key_id) AS...
Jared
CE - Microsoft
April 2, 2012 at 11:46 am
Ahh... Now I see. Try this.
SELECT os1.auth_id, os2.min_key_id, UPPER(os2.cpt4_id)
FROM #outpatient_service os1
INNER JOIN #TRANS t
ON os1.auth_id = t.auth_id
INNER JOIN (SELECT auth_id, MIN(key_id) AS min_key_id
...
Jared
CE - Microsoft
April 2, 2012 at 11:42 am
You can also do the same, but move the query to a CTE to generate the min numbers, then join.
Jared
CE - Microsoft
April 2, 2012 at 11:32 am
DECLARE @auth_id INT
SET @AUTH_ID = 95385
SELECT UPPER(cpt4_id)
FROM #outpatient_service os1
INNER JOIN
(SELECT MIN(key_id) AS min_key_id
...
Jared
CE - Microsoft
April 2, 2012 at 11:31 am
Lian (4/2/2012)
Good day.The database is 800 gig in size and we cannot move the data to a warehouse . We cannot purge the older data either .
Can you...
Jared
CE - Microsoft
April 2, 2012 at 10:29 am
How is your SQL Instance configured? Named Pipes, TCP/IP, Remote connections enabled... We need to know these things, as it could simply be a configuration setting. Also, since you have...
Jared
CE - Microsoft
April 2, 2012 at 10:12 am
I'm not really sure what you are asking. 800gb is 800gb, so how can you store 800gb on less space? Compression may help, but you still need the space that...
Jared
CE - Microsoft
April 2, 2012 at 10:08 am
If you are looking to generate scripts for your existing synonyms, try working with this:
SELECT 'CREATE SYNONYM ' + name + ' FOR ' + base_object_name
FROM sys.synonyms
Jared
CE - Microsoft
April 2, 2012 at 9:05 am
I'm not exactly sure what you are looking for in terms of logins, but this article may help: http://support.microsoft.com/kb/246133
For scripting synonyms... You mean scripting them out of the current database...
Jared
CE - Microsoft
April 2, 2012 at 8:59 am
What does it mean that you are starting anew project? Are you going to be a director, DBA, project manager? KT is all subjective based on what you need to...
Jared
CE - Microsoft
April 2, 2012 at 8:51 am
drew.georgopulos (3/29/2012)
would you mind please commenting on the idea that without a uniqueness check, surrogate keys promote duplicates to uniqueness? maybe that wasnt phrased...
Jared
CE - Microsoft
March 29, 2012 at 11:06 am
My guess is that it is the UNION ALL. Break apart your statements to see which is taking the longest and let us know. Also, we cannot do...
Jared
CE - Microsoft
March 29, 2012 at 10:36 am
Viewing 15 posts - 1,261 through 1,275 (of 2,647 total)