Viewing 15 posts - 1 through 15 (of 57 total)
Great. Glad to be of help 🙂
February 17, 2011 at 8:21 pm
Can I please suggest a slightly different procedure?
One reason is that your query will not work, as there are collation issues.
Please let me know if this works for you?
create table...
February 16, 2011 at 10:45 pm
Database permissions live in the database. So when you restore the database, the permissions still exist.
However for SQL accounts, the SID may be different on different machines. To fix it,...
February 16, 2011 at 10:10 pm
A few things,
Where are you running the management studio from? Is it on your Desktop, or the server where you have the restore running?
Also, what happens if you put this...
February 14, 2011 at 3:08 pm
You can specify table hints to specify use of a particular index.
Select ID
FROM TableA
WITH (INDEX(TableA_NCI_ID))
Check "Table Hints" in BOL.
February 13, 2011 at 10:36 pm
Can you copy the file to the server and then run the restore?
February 13, 2011 at 5:37 pm
Can you not run the query in SSMS
select * from AdventureWorks.dbo.Employee
and select "results to file" and specify the location?
February 9, 2011 at 7:23 pm
There can be a few ways. you can try CTEs and RANK like below
with cte(id, date1, date2, rank) as
(
select t1.id, t1.date1, t2.date2
, rank() over
(PARTITION BY t1.id ORDER BY...
February 8, 2011 at 7:16 pm
What happens when you try with the full name (including the Domain)?
For E.g. ServerName.ad.dev
February 7, 2011 at 7:49 pm
I dont think you can drop a Login, if it owns a database. IF you restore / attach the database, it will take the name of the person who has...
February 7, 2011 at 6:29 pm
I generally use
select percent_complete, estimated_completion_time/60000.0 'EstimatedMinutesRemaining'
, *
from sys.dm_exec_requests
where command like 'backup%'
However, the Estimated_Completion_Time is not an accurate figure. It does give me a close enough figure on how long it...
February 7, 2011 at 4:51 pm
SSMS would by default ask for a servername. That does not means you have any Database Engine installed on your desktop.
However, to confirm there are a couple of ways.
1)...
February 6, 2011 at 8:49 pm
it is working for me. I have tested it both on SQL 2005 SP3 and SQL 2008 R2. What version are you running it on?
February 3, 2011 at 7:58 pm
Database Shrinking is a very resource intensive operation. it will cause fragmentation. then if you try and re-build the indexes, it might use the space in the same database (unless...
February 3, 2011 at 3:50 pm
I would be very careful if I change the file size (since it is production). if you alter the file size and try to set it up to a smaller...
February 3, 2011 at 3:42 pm
Viewing 15 posts - 1 through 15 (of 57 total)