Viewing 15 posts - 946 through 960 (of 1,409 total)
matt6288 (7/11/2013)
Try putting the path in double quotes:del "D:\Program File\backup\FileA.bak"
As Matt pointed out, double quotes are required when a space is in the path or filename. Allthough it's not required...
July 12, 2013 at 12:06 am
Use the same technique as you get from the answers in your previous post http://www.sqlservercentral.com/Forums/Topic1472563-391-1.aspx
Replace the "SELECT CASE" into an "IF" statement.
July 11, 2013 at 11:50 pm
Don't use single line code (like INSERT ... SELECT... FROM) for such large tables. Use an ETL tool instead. You can use SSIS (import/export wizard) or the BCP command line...
July 11, 2013 at 7:46 am
That's an easy one: get the rowcount of the table and use this in a IF statement
-- change the table name (currently: #temp) on two places in the code below
if...
July 11, 2013 at 7:28 am
What do you define as a "hit"?
Every executed stored procedure, every executed batch, or every executed statement, or every active connection login, or....?
The most basic(?) way to look at this...
July 11, 2013 at 6:37 am
Another solution is to PIVOT the #temp1 table and join this with the table you want to update
-- Pivot source table and join with table to update
Update #Customer_Profile_Master1
set Co_apcode_1_categ =...
July 11, 2013 at 6:28 am
I don't think this is the fastest solution, but it will work:
Select * from #Temp1
Select * from #Customer_Profile_Master1
Update #Customer_Profile_Master1
set Co_apcode_1_categ = (select top 1 Category from #temp1 where rownumber =...
July 11, 2013 at 6:14 am
What about a simple CASE statement, will dat do the trick?
Declare @firstno varchar(10) = 'V001',
@scndno varchar(10) = 'V005'
select count(*)...
July 11, 2013 at 4:32 am
There are several options you can use. It's preferred to execute the commands with a commandprompt utility like powershell. Examples can be found on the internet, just google a bit.
You...
July 11, 2013 at 3:59 am
Hi,
Take a look at http://ola.hallengren.com/. He has created a custom maintenance solution. These are highly recommended by many DBA's in the field.
Edit: corrected the URL
July 11, 2013 at 12:23 am
Thanks Gail, I learned something new again.
I thought that because a clustered index is always ordered, a scan would always be the same. I'm glad I didn't get this question...
July 9, 2013 at 4:09 am
You need access on both the source and the target.
You need access on the source to get to your starting point of the linked server. You need access on the...
July 9, 2013 at 3:50 am
Just create the linked server connection and specify the user credentials in the code or in the "Security" page (when using the GUI).
EXEC master.dbo.sp_addlinkedserver @server = N'{FQDN_instancename}', @srvproduct=N'SQL Server'
EXEC master.dbo.sp_addlinkedsrvlogin...
July 9, 2013 at 3:13 am
The answer is B.
Does the exam kit has an explanation or link to why C should be the correct answer?
July 9, 2013 at 3:04 am
Mac1986 (7/8/2013)
July 8, 2013 at 11:43 pm
Viewing 15 posts - 946 through 960 (of 1,409 total)