Viewing 15 posts - 136 through 150 (of 252 total)
muhammadrazzaqpk-1032285 (12/8/2011)
December 8, 2011 at 1:10 pm
Try moving the open quote onto the same line as the invoke-sqlcmd -query. I think it has to do with white space and how it is reading the script. I'll...
December 8, 2011 at 9:08 am
muhammadrazzaqpk-1032285 (12/5/2011)
Can someone Please post the code for scheduling a job on Central management server? I am desperately looking for the code.
You can create a SQL Agent Powershell job likethis:
$instanceNameList...
December 5, 2011 at 1:22 pm
Thanks for the link. I'm suprised that it is no longer offered from the SQL Server page.
November 8, 2011 at 4:55 pm
I found that if I clear the table and insert the date/time from the variable then it is working. When I try to do it as an UPDATE of...
October 20, 2011 at 2:25 pm
Hi Jack,
The script task variable is type date and the ssis and sql server variables are type datetime.
It sure seems like the smalldate issue is what is happening but I'm...
October 20, 2011 at 1:59 pm
Thanks for the responses.
I am always really happy to learn something new. Using CTE, there is a lot that can be accomplished.
October 7, 2011 at 1:57 pm
Yes, it can all go in one temp table.
Thanks for the suggestions. Appreciate your help.
September 22, 2011 at 1:23 pm
Passing a variable into an OPENQUERY without dynamic SQL isn't working for me.
DECLARE @VAR varchar(100) = '12345'
SELECT * FROM OPENQUERY(ADSI,'SELECT ManagerEmployeeNumber, mail,displayName
FROM...
September 22, 2011 at 1:15 pm
Actually the dynamic sql is because I was not sure how to pass a variable to an OPENQUERY without structuring it first then executing it.
September 22, 2011 at 12:50 pm
Thanks Jared.
The temp table approach is how I ended up doing it.
The DynamicSQL was from when I thought that the variable would have to be changed. Prob isn't necessary with...
September 22, 2011 at 12:48 pm
Managed to do it by dumping the queries into temp tables and then selecting from there. Probably not the most efficient way to accomplish this.
create table #temp
(
displayName varchar(500),
mail varchar(100),
manageremployeenumber int
)
create...
September 22, 2011 at 12:46 pm
Thanks for both of the examples. Both helped me get the query to work.
Howard
September 19, 2011 at 4:41 pm
It is working now. Thanks for the tutorials.
Howard
September 15, 2011 at 9:25 pm
Thanks Evil Kraig F. Much appriciated.
September 15, 2011 at 6:02 pm
Viewing 15 posts - 136 through 150 (of 252 total)