Viewing 15 posts - 301 through 315 (of 321 total)
EXEC master..xp_cmdshell 'osql.exe -S YourServerName -U sa -P secretcode -Q "EXEC sp_who2" -o "E:\output.txt"'
Or
You can use DTS
December 3, 2007 at 5:35 am
returns the error severity specific to the scope of the CATCH block in which it is referenced
December 3, 2007 at 1:07 am
If u have any thirdy party tools like Log Viewer try with that.
November 30, 2007 at 3:38 am
In transactional and Merg replication it is possible
November 30, 2007 at 2:58 am
check with dbcc index defrag for the same index. After use dbcc showcontig even the problem still persists if the table is not too big drop the index and...
November 30, 2007 at 2:42 am
Example
EXEC master..xp_cmdshell 'osql.exe -S YourServerName -U sa -P secretcode -Q "EXEC sp_who2" -o "E:\output.txt"'
November 30, 2007 at 2:00 am
Is the linked server configured on this server?
November 29, 2007 at 9:00 pm
Application Roles:
Application roles are the SQL Server roles created to support the
security needs of an application. Often database applications
enforce their own security based on the application logic.For example, you can...
November 29, 2007 at 3:23 am
UPDATE SomeTable SET Col2 = 66 - ASCII( LOWER( Col1 ) )
November 28, 2007 at 4:41 am
The Script is working without any error for me.
use master
go
declare
@UseDate as varchar(50),
@dbname as varchar(50),
@mycommand as varchar(2000)
set @usedate = replace(LEFT(CONVERT(VARCHAR(19), getdate()-3, 120),10),'-','')
set @dbname = 'NAVTEMP'+@usedate
print @dbname
set @mycommand = 'if exists(select *...
November 28, 2007 at 4:30 am
Three Simple Reasons
1) Scalability 2) Security and 3)Support
November 27, 2007 at 5:05 am
The best and easiest way is using DTS Transfer Login option
November 27, 2007 at 5:00 am
declare
@dateA datetime,
@dateB datetime,
@baseDate datetime
set @dateA = '11/26/2007 13:27:53.205'
set @dateB = '11/26/2007 13:27:53.209'
set @baseDate = '07/04/1923 00:00:00.000'
select convert(char(11),dateadd(ms, datediff(ms, @dateA, @dateB), @baseDate),114)
November 27, 2007 at 4:51 am
Viewing 15 posts - 301 through 315 (of 321 total)