Viewing 15 posts - 9,616 through 9,630 (of 15,381 total)
Well the query that Chris posted returns the exact output you specified. If you need something different you have to explain it. We can't see your screen, we are not...
January 16, 2013 at 12:04 pm
Take a look at the link in my signature about cross tabs. That article explains how to use pivot in addition to cross tabs.
January 16, 2013 at 9:55 am
You're welcome. Glad we can help. I actually thought about suggesting using the Import Wizard but Gus already posted it. Either one of them should help.
January 16, 2013 at 9:54 am
Something like this?
declare @ViewName varchar(255) = 'YourViewNameHere'
select name as UserName, permission_name, state_desc
from sys.database_permissions p
join sys.database_principals dp ON dp.principal_id = p.grantee_principal_id
where major_id = object_id(@ViewName)
January 16, 2013 at 9:53 am
briancampbellmcad (1/16/2013)
January 16, 2013 at 9:35 am
briancampbellmcad (1/16/2013)
Actually I'm using SQL Server Express so I'm pasting them from copying the data from a .csv file. Is there another way with SQL Server Express?
Yes as Steve suggested...
January 16, 2013 at 8:55 am
koln (1/15/2013)
Overall, I only want this trigger to fire when a row is added or a row...
January 15, 2013 at 1:42 pm
tonynasc (1/15/2013)
I need some directions about UAC in SQl Server 2008. My questions:
1. Is it something inside SQL Server 2008 or is it related to UAC of Windows?
2. Is it...
January 15, 2013 at 1:33 pm
As you said the data here is horrible to start with. Here is one way to deal with it. Use the DelimitedSplit8K function to first parse each string element apart...
January 15, 2013 at 1:30 pm
koln (1/15/2013)
Doesnt my trigger now only update future rows in Table...
January 15, 2013 at 12:43 pm
DiverKas (1/15/2013)
You would be better served with the last line like this:EXEC sp_executesql @sql
You should have a higher plan reuse rate instead of the standard EXECUTE (@SQL)
AND it allows for...
January 15, 2013 at 12:36 pm
Or even better create 3 stored procs to retrieve your data. You are using the "one query fits all via dynamic sql" approach. This is full of issues. It is...
January 15, 2013 at 12:34 pm
Lowell I dropped the million to pull only 1,000 and it is painfully obvious that the MailAddress method blows the doors off the regex version for performance.
Here is the output.
(1000...
January 15, 2013 at 12:25 pm
Sql Student-446896 (1/15/2013)
-------
Name Chg Amount PrevAmt
ABC 1 100 0
ABC...
January 15, 2013 at 10:38 am
Why don't you just combine all the scripts into a single file? Then you just add GO where needed and it can all run at once.
January 15, 2013 at 8:56 am
Viewing 15 posts - 9,616 through 9,630 (of 15,381 total)