SSIS连接管理器不存在(SSIS Connection Manager Does Not Exist)
我通过SSIS中的任务脚本创建了一个数据库。 当我稍后尝试通过连接管理器连接到该数据库时,我被告知连接管理器不存在。 数据库在服务器中。
在脚本中创建新数据库之后,如何建立与数据库的连接以加载数据?
错误:连接“Data Source = ..; Initial Catalog = 8888888; Provider = SQLNCLI11.1; Integrated Security = SSPI; Auto Translate = False;” 未找到。 当找不到特定的连接元素时,Connections集合抛出此错误。
从Microsoft论坛中找不到连接“”..
类似的问题: 在包中找不到SSIS连接
I have created a database through a task script in SSIS. When I later try to connect to that database through the Connection Manager I am told that the Connection Manager does not exist. The database is there in the server.
How can I establish the connection to the database to load the data after I've created a new DB in the script?
Error: The connection "Data Source=..;Initial Catalog=8888888;Provider=SQLNCLI11.1;Integrated Security=SSPI;Auto Translate=False;" is not found. This error is thrown by Connections collection when the specific connection element is not found.
From the Microsoft Forums The connection "" is not found from..
Similar question: SSIS Connection not found in package
原文:https://stackoverflow.com/questions/50724967
最满意答案
我有同样的问题。 我使用的是Facebook风格的菜单,并且在所有视图控制器中都需要它。
您可以使用容器控制器。 容器控制器可以具有基本布局,我在一个笔尖中定义了该布局,其中包含导航栏和用于切换菜单的栏按钮项,然后添加子视图控制器并在需要时删除它们。 这样,您可以将任何需要的视图控制器放入容器控制器,并将其显示出来。
您还可以添加手势控件以轻松滑动打开/关闭菜单。
你将不得不使自己的容器控制器,这是不标准的。 我认为这是比继承更好的解决方案,因为如果你使用继承,你不能创建一个例如UITableViewController,那么你的所有控制器都将是yuor master类的类型。 当然,你可以用代表来解决这个问题。
这听起来有点棘手,但请参阅我使用的教程: http : //www.cocoanetics.com/2012/04/containing-viewcontrollers/
这不是那么辛苦的。
编辑:你也可以使用UINavigationController。 只需将基本视图控制器设置为您要显示的视图控制器,并且可以通过覆盖默认方法来防止它将后退按钮等添加到导航栏。 以
rootNavigationController
一个UINavigationController。 可能会更简单。I had the same problem. I was using a facebook-style menu, and needed it in all view controllers.
You can use a Container Controller. A Container Controller can have the base layout, which I defined in a nib, containing a navigation bar and a bar button item to toggle the menu, and then add child view controllers and remove them as you need them. That way, you can throw whatever view controller you need to the container controller and it will display it.
You can also add gesture control to slide open/close the menu easily.
You will have to make the Container controller your self, it is not standard. I think it is better solution than inheritance, since if you use inheritance you can't make a for example UITableViewController, all your controllers will be of the type of yuor master class. Of course, you can fix this anyway with delegates.
It may sound a bit tricky, but see this tutorial which I used: http://www.cocoanetics.com/2012/04/containing-viewcontrollers/
It wasn't accutally that hard.
EDIT: You can just use a UINavigationController as well. Just set the base view controller to the view controller you want to display, and you can prevent it adding the back button etc to the nav bar by overriding the default methods. Make a UINavigationController as
rootNavigationController
. Might be simpler.
相关问答
更多-
plist设置"View controller-based status bar appearance"仅控制是否在iOS 7上应用基于控制器的设置。 如果将此plist选项设置为NO,则必须手动启用和禁用状态栏(直到iOS 6): [[UIApplication sharedApplication] setStatusBarHidden:YES] 如果将此plist选项设置为YES,则可以将此方法添加到每个viewControllers中,以为每个控制器独立设置statusBar(如果您具有viewCo ...
-
看起来它的行为符合预期,后退按钮用于根导航控制器,当您使用“后退”按钮时,它会弹出标签栏控制器。 我实际上希望你看到两个导航栏,你的根栏和我的用餐选项卡中的一个,除非你隐藏一个。 按下选项卡栏时可以隐藏根导航栏,但是每个选项卡的导航栏中可能需要一个按钮,从根导航控制器弹出选项卡栏。 Beyowulf将其作为模态提出的建议是另一种选择。 It looks like it is behaving as expected, the back button is for your root navigation c ...
-
使用选项卡控制器布局时在两个视图控制器之间传递数据(Pass Data Between Two View Controllers When Using a Tab Controller Layout)[2019-12-07]
UITabBarController有一个委托,它有一个方法tabBarController:didSelectViewController:你可以使用它来完成你正在寻找的东西。 Apple的文档可以在这里找到 The UITabBarController has a delegate, which has a method tabBarController:didSelectViewController: you can use that to accomplish what you're looking ... -
通常情况下,您会将storyboardId提供给destinationController,并从sourceViewController中像这样调用它: //push next view UIStoryboard *storyboard = self.storyboard; YourViewControllerClass *destVC = [storyboard instantiateViewControllerWithIdentifier:@"StoryboardID"]; [self.navigati ...
-
给这个旋转看看它是如何工作的。 在viewWillAppear中的目标视图控制器中 - (void)viewWillAppear:(BOOL)animated { [self.navigationController setNavigationBarHidden:YES animated:YES]; } 它实际上有一个很酷的效果,可以是有用的。 在viewWillAppear中,所有事情都在视图显示之前发生,所以它会带走奇怪的工件。 很好 give this a spin and see how ...
-
所有视图控制器中都应该显示Facebook类型的左滑块布局(facebook type left slide bar layout should appear in all view controllers)[2023-09-11]
我有同样的问题。 我使用的是Facebook风格的菜单,并且在所有视图控制器中都需要它。 您可以使用容器控制器。 容器控制器可以具有基本布局,我在一个笔尖中定义了该布局,其中包含导航栏和用于切换菜单的栏按钮项,然后添加子视图控制器并在需要时删除它们。 这样,您可以将任何需要的视图控制器放入容器控制器,并将其显示出来。 您还可以添加手势控件以轻松滑动打开/关闭菜单。 你将不得不使自己的容器控制器,这是不标准的。 我认为这是比继承更好的解决方案,因为如果你使用继承,你不能创建一个例如UITableViewCon ... -
你需要通过viewControllers列举tabBarController&pop到根视图控制器,如果控制器在数组中是UINavigationController like- for(UIViewController *viewController in tabBarController.viewControllers) { if([viewController isKindOfClass:[UINavigationController class]]) [(UINavigation ...
-
iOS 7视图控制器布局问题透明/模糊导航栏(iOS 7 view controller layout issue with transparent/blurred nav bar)[2021-10-31]
也许你可以尝试插入 [scroll setContentInset:UIEdgeInsetsMake(nav_bar_height + status_height, 0.0, 0.0, 0.0)]; [scroll setScrollIndicatorInsets:UIEdgeInsetsMake(nav_bar_height + status_height,0.0,0.0,0.0)]; 希望有所帮助 Maybe you can try with inset [scroll setContentInset ... -
UIToolbar的存在影响视图控制器视图的布局(Presence of UIToolbar affecting layout of view controller's view)[2022-10-16]
如果您的应用程序在iOS6上运行良好,但在iOS7上运行不正常,请尝试将NO设置为UIPageViewController(UIPVC)的automaticAdjustsScrollViewInsets属性。 UIPVC似乎内部有一个滚动视图。 在iOS7上,UIViewController的automaticAdjustsScrollViewInsets属性默认设置为YES。 如果它嵌入在UINavigationController中,我认为它不能很好地工作。 在我的例子中,我创建了自定义UIPVC并将以 ... -
extension UIViewController { func showCustomBar() { // create here and add to nav bar (if any) } func hideCustomBar() { // remove the bar (if any) } } 现在你在视图控制器中所要做的就是 self.showCustomBar() extension UIViewController { fun ...