Viewing 15 posts - 1 through 15 (of 28 total)
Hi,
You will have the follow the same sequence of restore as per the backup sequence. Skipping a TL-Log backup in between will report an error stating that...
September 3, 2010 at 12:47 am
Hi,
Its better to change the owner of database and then drop the login account which is not required. Use sp_changedbowner stored proc to change the db owner...
September 2, 2010 at 4:39 am
You can use ROW_NUMBER() function which will provide rankings for data based on columns. Use row_number() on Hotel_id column.No need of adding new column. check this query
SELECT hotel_id ,hotel_name +...
August 23, 2010 at 2:51 am
You cannot use 'select * into #temp from exec SPname'.
You will have to create the temp table first and then use insert statement with execute SP to add the result...
August 23, 2010 at 1:35 am
Before posting any question please provide the details of the table and data and then the query. Just specifying that query is running differently will not help us in finding...
August 19, 2010 at 3:32 am
You should use MS excel 2007 version or higher to support 1,00,000 rows. Since Ms excel 2003 has the limit of 65536 rows by 256 columns.
In excel 2007 the limit...
August 13, 2010 at 4:43 am
you can directly drop the stored proc using 'Drop proc procedurename' statement. Then the stored proc entry will be automatically be removed in sys.objects. It is not recommended to delete...
August 13, 2010 at 2:47 am
Yes.. howard is right. you cannot restore database backup from higher version to lower version. We have faced this issue many times.
Only option is to script the whole database.Then import...
August 11, 2010 at 7:13 am
You can use @@rowcount function to capture the no. of rows affected for the query executed.
Thanks,
Amit Kulkarni
August 9, 2010 at 5:52 am
You can use dynamic sql query
declare @ID varchar(max)
declare @sql nvarchar(4000)
set @sql = 'Select * from tblProduct
WHERE tbl_PRIM_Sales.Sale_ID in (' +@ID + ')'
sp_executesql @sql
Or...
August 2, 2010 at 5:47 am
It cannot be possible that query will miss some of records. I suppose there is some problem with the query in the view. May be the where condition for filtering...
July 30, 2010 at 12:21 am
You can create indexed views in sql server 2008 Express edition
July 29, 2010 at 6:32 am
There is no direct way of finding the creation date of an index. But however if you look in sysobjects there is a creation date for Primary Key or Unique...
July 29, 2010 at 6:18 am
consider table Product
ProductID Quantity
A 10.25
B ...
July 28, 2010 at 5:54 am
can you please provide the details of the table like no. of columns and no.of records. Also there may be transaction open which might be holding a lock on the...
July 28, 2010 at 5:36 am
Viewing 15 posts - 1 through 15 (of 28 total)