Viewing 15 posts - 4,591 through 4,605 (of 8,761 total)
Quick thought, with the negative top directive the estimated execution plan is the same as the input plan (only translation) without any optimization. Change the top directive to n>0 and...
September 10, 2015 at 11:03 pm
Joshua D Gang (9/10/2015)
September 10, 2015 at 9:32 am
drew.allen (9/10/2015)
Eirikur Eiriksson (9/10/2015)
😎
IF NOT EXISTS (
SELECT SP.Name, SPM.permission_name from sys.server_principals SP
INNER JOIN sys.server_permissions SPM ON SP.principal_id = SPM.grantee_principal_id
WHERE
(SP.name = 'SomeRole' AND SPM.permission_name = 'VIEW...
September 10, 2015 at 9:16 am
Quick suggestion (you are almost there)
😎
IF NOT EXISTS (
SELECT SP.Name, SPM.permission_name from sys.server_principals SP
INNER JOIN sys.server_permissions SPM ON SP.principal_id = SPM.grantee_principal_id
WHERE
(SP.name = 'SomeRole' AND SPM.permission_name = 'VIEW ANY DEFINITION')
AND --OR
(SP.name...
September 10, 2015 at 12:56 am
Stuart Davies (9/10/2015)
Ed Wagner (9/9/2015)
djj (9/9/2015)
Ed Wagner (9/9/2015)
DonlSimpson (9/9/2015)
Luis Cazares (9/9/2015)
Ed Wagner (9/9/2015)
crookj (9/9/2015)
Jim_K (9/9/2015)
ZZartin (9/9/2015)
eccentricDBA (9/9/2015)
BWFC (9/9/2015)
Eirikur Eiriksson (9/9/2015)
whereisSQL? (9/9/2015)
ClassyGlossy
Magazine
cartridge
Cartilage
Shark
Jaws
Sea
World
Globe
Travel
Lodge
Cast Iron
guarantee
Warranty
September 10, 2015 at 12:51 am
Quick suggestion, use the Parameters (OleDbParameterCollection) collection which is a member of the OleDbCommand Class.
😎
September 10, 2015 at 12:45 am
Barkstuff (9/9/2015)
Is it possible to export the environment variables for an SSIS 2012 project? And if so how is it achieved?
Thanks...
September 10, 2015 at 12:39 am
SQL-DBA-01 (9/9/2015)
Many a times see the below error in SQL Error log.
Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'. Reason: Token-based server access validation failed with an infrastructure error. Check...
September 10, 2015 at 12:36 am
I think my take on it would be similar to many of the questions on the forums, outline one or more problems, construct a table structure relevant to the problem(s),...
September 10, 2015 at 12:27 am
Janrith (9/9/2015)
I've recently inherited a slew of databases and many of the table population stored procedures seem to have a common methodology:
Truncate Table TableA
Set @count = (select count(*) from TableA)
While...
September 9, 2015 at 10:39 pm
Sweetbee870 (9/9/2015)
Select FirstName, LastName, Title
from Employees
See attached the Results. I need know how to only retrieve records for "Sales Representatives"
Hope this is...
September 9, 2015 at 10:09 pm
Quick thought, the first hard limit is the maximum number of user connection is (2^15)-1 or 32,767, configurable, use SELECT @@MAX_CONNECTIONS to view the current. Memory consumption of the connection:...
September 9, 2015 at 10:00 pm
GilaMonster (9/9/2015)
Eirikur Eiriksson (9/8/2015)
Why not disable or drop the login and just log failed attempts?😎
Because doing so would prevent him from logging in entirely, whereas the trigger prevents him from...
September 9, 2015 at 3:30 am
Phil Parkin (9/9/2015)
Eirikur, a semi-colon before a CTE? I expected better from you! 🙂
Phil, not going into the begininator/terminator debate 😀 as this is a habit for the convenience of...
September 9, 2015 at 1:50 am
Viewing 15 posts - 4,591 through 4,605 (of 8,761 total)