Viewing 15 posts - 46 through 60 (of 113 total)
id and oldid is one-to-one? or many-to-one?
June 19, 2012 at 6:18 am
Following works fine with me in scheduled restore.
ALTER DATABASE DatabseName
SET SINGLE_USER WITH ROLLBACK IMMEDIATE
GO
--DO restore
ALTER DATABASE DatabseName
SET MULTI_USER
GO
June 14, 2012 at 7:44 am
Thanks Eugene Elutin, I didn't think it is that simple
June 14, 2012 at 6:00 am
Jeff Moden (6/13/2012)
Daxesh Patel (6/13/2012)
if table has a large size data, I think SELECT * INTO should be avoided due to its limitations.What "limitations" are you speaking of?
It has many...
June 14, 2012 at 4:32 am
How about deleting records from original table and inserting to another table using OUTPUT..DELETED.. INTO..
On error rollback the transaction. This approach will make sure you are deleting in one table...
June 13, 2012 at 12:43 pm
Sorry I miunderstood the question, removing my code
June 13, 2012 at 12:27 pm
Use intermediate table to hold both the values... Something like this... You have to lock the table #Test in this approach
Create table #Test (pKeyCol int identity(1,1), Description varchar(10))
insert into #Test...
June 13, 2012 at 11:46 am
Grant Fritchey (6/13/2012)
Daxesh Patel (6/13/2012)
I would create New table ahead of time...
June 13, 2012 at 9:52 am
anthony.green (6/13/2012)
Daxesh Patel (6/13/2012)
I would create New table ahead of time with...
June 13, 2012 at 7:40 am
if table has a large size data, I think SELECT * INTO should be avoided due to its limitations.
I would create New table ahead of time with partitions (each partition...
June 13, 2012 at 7:27 am
In following, -2 will give you previous Saturday, you can manipulate this number to get other days
select b,dateadd(day,Datediff(Week,0,GETDATE()) * 7,-2+((b-1)*7))
from (values(1),(2),(3),(4),(5),(6),(7),(8),(9),(10),(11),(12),(13)) a(b)
June 13, 2012 at 6:22 am
I think you could use table that has ThreadID as PK to get top 5 thread and then retrive details from Forum_Posts table.
In your code example you can do something...
June 12, 2012 at 7:32 am
select DB_Name(database_id) DataBaseName,physical_name,size/128 SizeInMB,* from sys.master_files
select Sum(size)/128 SizeInMB from sys.master_files
June 11, 2012 at 2:25 pm
This is from BOL
RPC
Enables RPC from the specified server.
RPC Out
Enables RPC to the specified server.
I think you need to enable RPC for Linked server B when....
you have created...
June 11, 2012 at 11:08 am
Viewing 15 posts - 46 through 60 (of 113 total)