Viewing 15 posts - 9,211 through 9,225 (of 13,461 total)
Renis yes it is certainly possible;
check out this example; it is getting the names of all the tables and putting it into five columns.
in your case, you just need to...
June 20, 2010 at 12:59 pm
smitty your syntax was close; i tested this with my profile, and it works fine:
ALTER TRIGGER [ddl_trig_database]
ON ALL SERVER
FOR CREATE_DATABASE
AS
declare @results varchar(max)
SELECT EVENTDATA().value('(/EVENT_INSTANCE/TSQLCommand/CommandText)[1]','nvarchar(max)')
EXEC msdb.dbo.sp_send_dbmail
@profile_name = 'Default Notifications',
@recipients = 'lowell@mydomain.com',
@body =...
June 19, 2010 at 8:33 pm
there's not a simple script that does it; everything depends on the specifics of the data in question...foreign keys, primary key definitions, and more. you'll need to analyze the data...
June 19, 2010 at 1:56 pm
well, the existing load on the production server would certainly affect the speed, as it has to share/complete for resources with regular users;
the devleopment server probably has a near-no load...
June 18, 2010 at 2:19 pm
the trick is to join the table against itself, so you can exclude one group:
something like this:
SELECT *
FROM SOMETABLE t1
WHERE t1.contact_type = 'Requestor'
AND t1.user_id NOT IN
(SELECT user_id ...
June 18, 2010 at 8:32 am
the are .NET references, and have nothing to do with having SQL installed or not.
you should be able to go to the project references and add them.
==edit whoops my bad...you...
June 18, 2010 at 6:22 am
well there's a couple of ways to do it, but they are just different flavors of the same idea....the command must be run on each server.
One way is to...
June 18, 2010 at 5:52 am
niteshrajgopal (6/17/2010)
I would really really appreciate it if you could do a sample of that form for me as...
June 18, 2010 at 5:41 am
when you create a linked server, you have one of 4 security options to use as far as which credentials.
I suspect that the first option shown in the screenshot below...
June 17, 2010 at 6:08 pm
from the GUI, it's not obvious how to alias an existing SQL Server:
--#################################################################################################
--Linked server Syntax for SQL Server With Alias
--#################################################################################################
EXEC master.dbo.sp_addlinkedserver @server = N'MyLinkedServer',@srvproduct = N'', @datasrc = N'DBSQL2K5', @provider...
June 17, 2010 at 12:15 pm
biren (6/17/2010)
June 17, 2010 at 11:54 am
goodguy (6/17/2010)
@Lowell: most tables have the PK as the first column, yes, but some tables have composite PKs, made of two/three columns. Will it...
June 17, 2010 at 10:39 am
here is something very similar to what Wayne posted, the only difference is my script makes an assumption that the FIRST column in a table is the Primary Key because...
June 17, 2010 at 8:10 am
are you trying to get a boolean value?
DateDiff returns an integer, your example seems to be doing this:
FORMAT (DateDiff("DAY", Fields!ReAdmitDate.Value, Fields!AdmitDate.Value) >= 30)
'would be the same as this witht he...
June 17, 2010 at 6:46 am
if you can log in to SQL Server, master is not corrupt; could it be the logins were deleted?
If you open Object Explorer in SSMS, and expand the Security>>Logins...
June 17, 2010 at 6:37 am
Viewing 15 posts - 9,211 through 9,225 (of 13,461 total)