Viewing 15 posts - 1 through 15 (of 46 total)
You can use DBCC CHECKINDENT to reseed identity value.
DBCC CHECKIDENT ('Production.Product' , RESEED, 1001)
March 22, 2013 at 6:15 am
You can use start-up parameter -S <ServerName> to connect to a server.
You can find more information in this post:
http://sqlandme.com/2011/04/18/management-studio-startup-parameters-tips-tricks/[/url]
March 15, 2013 at 9:49 pm
bull49er (11/7/2011)
Vishal GajjarThank you very much for quick response. Where is this column? Thanks
In the output of RESTORE HEADERONLY command
November 7, 2011 at 8:44 am
hmm.. never noticed that... 🙂
You can use RESTORE HEADERONLY to check if the backup contains CHECKSUM:
RESTORE HEADERONLY
FROM DISK = N'C:\Database\Backup\WithChecksum.bak'
look for column "HasBackupChecksums".
November 7, 2011 at 8:31 am
Try this:
DECLARE @sqlCommand VARCHAR(2000)
declare @db_type as varchar(10)
set @db_type = '%_lts%'
SET @sqlCommand =
'
USE [?]
PRINT ''?''
IF ''?'' like ''' + @db_type
+
'''
BEGIN
DECLARE @sql VARCHAR(1000)
SELECT @sql = ''DROP SCHEMA ''...
November 6, 2011 at 9:34 pm
EXEC master..sp_MSForeachdb '
declare @db_type as varchar(10)
set @db_type = ''%_lts%''
USE [?]
IF ''?'' like '@db_type'
BEGIN
declare @sql as varchar(1000)
select @sql = ''drop schema '' + name from sys.schemas
where name...
November 2, 2011 at 11:39 pm
select 'scheme' = a.name,
'function' = b.name
from sys.indexes i
inner join sys.partition_schemes a on a.data_space_id = i.data_space_id
inner join sys.partition_functions b on a.function_id = b.function_id
where i.object_id = object_id('dbo.Table_Orders')
November 1, 2011 at 2:44 am
Adhoc queries need to be exactly same for reuse. i.e. case-sensitivity, white spaces, etc...
Generally, When a statement is used inside a stored procedure, it's not going to change and it...
October 27, 2011 at 4:01 am
Hi Sudhakar,
If boot page is corrupt, you cannot run DBCC CHECKDB or go to EMERGENCY mode.
You need to restore from a backup.
Check this post by Paul : http://www.sqlskills.com/blogs/paul/post/Search-Engine-QA-20-Boot-pages-and-boot-page-corruption.aspx
October 25, 2011 at 4:43 am
Ninja's_RGR'us (10/20/2011)
derekr 43208 (10/20/2011)
Didnt have time to check the blogAny issues with Sp3?
Yes, SP4 not out yet :hehe:
Officially named SQL Server 2012, scheduled to release in first half of 2012.
October 20, 2011 at 8:55 am
Yes SP3 released, and I posted it on my blog to...... :blink:
October 20, 2011 at 8:36 am
SP1 is the latest service pack for SQL Server 2008 R2.
SP2 is released for SQL Server 2008 (not R2).
October 20, 2011 at 6:59 am
These type of questions are easier to answer as Enterprise edition (and his dad) has all the features!
October 20, 2011 at 2:54 am
I seriously need to pay attention to "can" and can't"....... :crazy:
October 19, 2011 at 8:31 am
it could be a PATH issue..
try running 'sftp2' using xp_cmdshell.
make sure location of sftp2 is in PATH when the batch file is executing..
October 19, 2011 at 4:13 am
Viewing 15 posts - 1 through 15 (of 46 total)