Viewing 15 posts - 376 through 390 (of 1,365 total)
SET NOCOUNT ON
-- declare all variables
DECLARE @sTableName SYSNAME
DECLARE @sSQL sql_variant
DECLARE @sSQL1 Varchar(220)
DECLARE @iRowCount INT
DECLARE @t_TableNames_Temp TABLE
(table_name SYSNAME)
INSERT @t_TableNames_Temp
SELECT name
FROM master..sysdatabases where name not in('northwind','pubs')
ORDER...
August 13, 2009 at 1:09 pm
Tried this using SSMS - SQL Server 2005 SP2
When clicking execute - a message is displayed sating that
The query cannot be represented in the Diagram and Criteria Pane.
.
However you...
August 12, 2009 at 4:11 pm
Syntax: bcp master..syslogins out -U -P -S -c
Example: bcp master..syslogins out C:\logins.txt -Usa -P -SServername -c
On the target server, BCP...
August 12, 2009 at 3:56 pm
10,1 is severity and state parameters of raiseerror.
http://msdn.microsoft.com/en-us/library/ms178592.aspx
Manu
August 12, 2009 at 2:53 pm
Peer to peer replication is sql 2005 feature.
Peer-to-peer replication is available only in SQL Server 2005 Enterprise Edition.
http://technet.microsoft.com/en-us/library/ms151196(SQL.90).aspx
MJ
August 11, 2009 at 7:49 pm
http://www.sqlmag.com/Articles/ArticleID/44064/44064.html?Ad=1
Listing 1: Safety Trigger That Rejects Attempts to Drop or Alter Tables
CREATE TRIGGER trg_protect_sensitivetables ON DATABASE FOR DROP_TABLE
AS
RAISERROR('This database contains sensitive tables.
A trigger protects the tables from being dropped.
If you...
August 11, 2009 at 4:44 pm
Please post any error message logged in event viewer/sql server error logs.
Post the full error message that you get when you try to connect.
MJ
August 7, 2009 at 7:05 pm
Nope it doesn't.
MJ
August 7, 2009 at 6:55 pm
Try creating e new job with following as its first step
if (DATEPART(dd, GETDATE()))=1 and (DATEPART(weekday, GETDATE()))>2
begin
Exec msdb..sp_start_job 'Call the job you need to execute here'
end
HTH!
MJ
August 6, 2009 at 7:27 pm
create table #temp
(
dbname varchar(16),
username varchar(30)
)
insert into #temp
exec sp_MSforeachdb 'Select ''?'' as DB_Name, su.name from ?.dbo.sysusers su
join master.dbo.syslogins sl on sl.sid=su.sid
and sl.name=''Enter Login Name Here'''
select * from #temp
MJ
August 5, 2009 at 9:52 pm
This is from another forum. I used this many times in the past to capture last executed time of stored procedures. It uses the syscacheobjects table.
---------------------------------------
Ok, we came up with...
August 4, 2009 at 10:15 pm
Why don't make use of script specified at http://www.codecomments.com/WSH/message462337.html to read event viewer logs and check for the cluster node failover event and shooting out a mail to dba group.
HTH!
MJ
August 3, 2009 at 6:20 pm
Why don't you make use of batch files and osql utility.
MJ
August 3, 2009 at 6:03 pm
It is important to note that the checks and workarounds described are all targeted at the owner_sid and owner columns in sysdtspackages. The owner is also held in the CreatorName...
July 31, 2009 at 10:13 pm
Viewing 15 posts - 376 through 390 (of 1,365 total)