Viewing 15 posts - 976 through 990 (of 1,069 total)
>> set @strsql=' SELECT *from history_view Where Send_by = '' &(@userid)'''
I think the above statement has problem.
Change it as follows:
set @strsql=' SELECT *from history_view Where Send_by = ''' + @userid...
June 23, 2008 at 3:50 am
declare @TableName char(50)
select @TableName = 'PING_' + left(convert(char(50), getdate(), 120), 4)
print @TableName
execute sp_rename 'PING', @TableName
June 23, 2008 at 2:50 am
>> why I was not successful when I assigned server name directly to Data Source parameter in connection string
In case of named instance, ServerName\InstanceName should be used. In case of...
June 22, 2008 at 10:57 pm
>> So, is there a way on a production server to capture things like the deadlock graph without the Profiler running?
Yes. Using "WMI event alert" it is possible.
June 22, 2008 at 10:50 pm
Use DATEADD function. For example:
select getdate(), dateadd(m, -25, getdate())
2008-06-23 10:03:11.3172006-05-23 10:03:11.317
June 22, 2008 at 10:35 pm
>>i can do that by running update query manually but when i run sp its not working pls help me
You mean following query is working. Right?
update testtbl set value='anj@test.com'...
June 20, 2008 at 12:26 am
Replace '31/05/2008' with '05/31/08'
June 20, 2008 at 12:06 am
>>Should I create these indexes during the schema creation or after the populations scripts?
Create indexes after pupulating the data.
Benefits:
1) Data population will be faster as there is no index update.
2)...
June 19, 2008 at 11:56 pm
If you have difficulty in restoring the database using UI, use RESTORE command.
For example:
restore database NewDatabaseName
from disk = 'E:\Training_full.bak'
with move 'Training_Data' to 'E:\Training2_Data.mdf',
move 'Training_Log' to 'E:\Training2_Log.ldf'
June 19, 2008 at 4:48 am
We have alert for all the object (table, stored procedure, index, etc) changes.
June 17, 2008 at 10:35 pm
>> Why do we name all constraints by the same name here?
Same name is not used for all the constraints. It is used for only for the first one...
June 17, 2008 at 4:42 am
Log is written sequentially. Therefore, multiple files will not improve performance.
You can go for it to resolve free disk space issue.
June 16, 2008 at 5:08 am
Viewing 15 posts - 976 through 990 (of 1,069 total)