Viewing 15 posts - 46 through 60 (of 89 total)
I used this when creating dynamic sql query as default search condition
February 16, 2015 at 4:00 am
Ha ha, it happened with me also many times..:cool:
February 16, 2015 at 3:50 am
All of theses set to ON, and also there are more other requirements while creating indexed view
February 15, 2015 at 10:57 pm
Really nice article 🙂
February 15, 2015 at 10:44 pm
You can use @@ROWCOUNT
ALTER PROCEDURE [dbo].[usp_LogArchiveBBxEndTime]
@EtlArchiveLog_Id int,
@RowsSource int,
@RowsNew int,
@RowsChanged int,
@Sucessful bit,
@Description varchar(500)
AS
BEGIN
UPDATE dbo.EtlArchiveLog
SET TimeEnd = GETDATE(),
RowsSource = @RowsSource,
RowsNew = @RowsNew,
RowsChanged = @RowsChanged,
Successful = @Sucessful,
[Description] = @Description
WHERE EtlArchiveLog_Id = @EtlArchiveLog_Id
SET @RowsChanged...
February 13, 2015 at 4:06 am
You can use below script to generate the script to add column.
SELECT 'Alter table [' +name + '] Add Rowchecksum varbinary(8000)' FROM sys.tables WHERE name LIKE 'Archivebbx%'
February 12, 2015 at 11:18 pm
You can use cross database reference in the query, something like this...
USE TestDB
GO
INSERT INTO Table1
SELECT * FROM DB1.dbo.Table1
Do this for all tables one by one.
Or your database is small the...
February 12, 2015 at 8:32 am
As non clustered index contain Index Search key (Name) and clustered index key (ContactTypeId) in its leaf node.
SQL Server will scan Non clustered index.
Please refer to http://www.sqlservercentral.com/stairway/72399/
to learn about clustered...
February 12, 2015 at 4:31 am
You can pass comma separated string as a parameter and inside stored procedure call a function which will split comma separated string and return the result set.
February 12, 2015 at 4:17 am
It should not cause any difference
February 11, 2015 at 8:34 am
Thank you so much Eirikur, Jason, Alan and Lempster:-)
February 10, 2015 at 10:02 pm
Or you can use Red gate schema compare tool. Please refer link below
http://www.red-gate.com/products/sql-development/sql-compare/
Check whether you can execute command line or this tool or VS Database Compare
February 9, 2015 at 11:41 pm
You can use VS database project to backup schema. But I am not aware of how to automate the database project such that database project will get synced with database.
February 9, 2015 at 11:37 pm
Very nice and detailed article. Thank you.
February 6, 2015 at 2:04 am
Viewing 15 posts - 46 through 60 (of 89 total)