Viewing 15 posts - 541 through 555 (of 1,409 total)
timSF (1/21/2014)
...My script file runs okay within the SSMS environment...
Did you entered a username/password when you started SSMS and connected to the SQL instance? If so: you're using a SQL...
January 23, 2014 at 8:03 am
Like others I've found some good answers on SO. But I prefer the forum here on SSC. A question can't always be answered in one single way. Everybody knows the...
January 23, 2014 at 7:54 am
What is the info about the LSN's of the TRN-files tat you're trying to restore when you query the tables [backupset] and[backupmediafamily] from the [msdb] database (on the instance where...
January 22, 2014 at 5:20 am
I use a script (created by Omri Bahat, see: http://sqlmag.com/t-sql/plugging-gaps-sql-server-job-tracking) to find jobs that haven't run according to their schedule. Allthough this scripts investigate the past, you probably can modify...
January 22, 2014 at 4:43 am
Your post is hard to understand. Could you rewrite it a bit, so we (without knowledge of your system / settings / etc.) can understand?
If you can't find the TRN-file...
January 22, 2014 at 4:31 am
Answers:
1. A growth setting of 300MB is most probably acceptable. It depends on your disk performance if it can handle the I/O at that moment. If you assign the "instant...
January 22, 2014 at 4:17 am
Does your Windows account has the required permissions on the database? Did you run the code in SSMS using your Windows account or did you use a SQL account?
Can you...
January 22, 2014 at 3:59 am
I'm sorry. I have misread your the results in your Original post. My first solution didn't gave you the results you needed. The code below does it better. Keep in...
January 20, 2014 at 3:34 am
Talib123 (1/17/2014)
99% of...
January 17, 2014 at 1:34 pm
If you can't figure it out (you don't know which instances are installed or don't have access) you could use ProcessExplorer from Sysinternals to see which process is locking the...
January 17, 2014 at 9:53 am
How do you create your backups? Do you use a GUI or do you use code?
If you use code then you need to see if the verify option is used....
January 17, 2014 at 8:47 am
A simple SUM on the qty column combined with a GROUP BY on the others will do it:
select date, pallet_movement, sum(qty) as total_qty
from table_name
group by date, pallet_movement
January 17, 2014 at 6:55 am
It is not allowed to use the USE statement inside a stored procedure. The only solution to do this is by using dynamic SQL.
create procedure usp_change_db_context
as
begin
declare @dbname sysname
declare @sql_use_db nvarchar(200)
declare...
January 17, 2014 at 6:04 am
That's not hard to find on the MIcrosoft website:
January 17, 2014 at 5:35 am
Without knowing the password it is not possible. Your only options are to ask your Windows admins for the password or try to extract the password from DD.
January 15, 2014 at 12:45 pm
Viewing 15 posts - 541 through 555 (of 1,409 total)