Viewing 15 posts - 46 through 60 (of 190 total)
Please see attached file for the code. Thanks.
July 22, 2016 at 1:24 pm
Once again Thanks a lot John. WITH RESULT SETS NONE it worked.
So I used this command inside "OLE DB Command" component of SSIS and now I am testing how it...
July 14, 2016 at 10:55 am
Thanks John. Here is my SP,
CREATE PROCEDURE p_dba_executesqlcmd
@sqlcmd nvarchar(1000)
AS
BEGIN
SET NOCOUNT ON;
EXEC(@sqlcmd) ;
END
GO
Now when I execute it from query it works,
DECLARE@return_value int
EXEC@return_value = [dbo].[p_dba_executesqlcmd]
@sqlcmd = N'restore database test from...
July 14, 2016 at 8:23 am
Thanks Phil and GsSquad it worked, When I added some switches.
set @cmd = '\\localhost\7-Zip\7z e C:\test\servername_dbzip_testdb-20160712.zip -oc:\test\dumps *.bak -y'
July 12, 2016 at 1:58 pm
yeah when I type \\localhost in windows explorer and because I have shared 7-zip folder, I can browse this path and its my local machine where I am admin
July 12, 2016 at 1:37 pm
Here is the error message:-
NULL
7-Zip [64] 9.20 Copyright (c) 1999-2010 Igor Pavlov 2010-11-18
NULL
NULL
Error:
Incorrect command line
NULL
July 12, 2016 at 1:35 pm
Thanks all but as I said application is not throwing any exception after I put GO. Also no syntax errors otherwise cant execute SP at all.Anyway thanks. I will go...
May 17, 2016 at 10:21 am
So it means something is wrong with query. How to find these incompatible statements? I ran upgrade advisor from 2005 to 2008 to 2012 to 2014 to check for any...
May 17, 2016 at 10:08 am
Sure I dont but not a c# or VB developer so hard to troubleshoot if something goes wrong ther. but thanks all.
April 13, 2016 at 6:33 am
Thanks.
I did similar thing using Findstring as patindex and charindex is not working in sql 2014
SUBSTRING(@[User::Filename_to_be_deleted], FINDSTRING(@[User::Filename_to_be_deleted], "-", 1)+1, 8)
April 12, 2016 at 3:27 pm
Thanks everyone. I am only using T-SQL here and when I try this code inside my SSIS it still gives me error saying Error parsing the code.The single quotation mark...
April 12, 2016 at 1:52 pm
Thanks but is there any command to find upload\download speed somehow?
April 5, 2016 at 1:39 pm
Hello,
I have sql server and agent running under account called 'domain\service'.
With this account I can execute xp_cmsdhell from SSMS.
Does that mean this account has all those 7 listed privileges under...
March 22, 2016 at 8:51 am
Viewing 15 posts - 46 through 60 (of 190 total)