在 Visual Studio 中选择 MySQL 存储过程来填充数据表时出现问题
我希望在 Visual Studio 中使用 MySQL 存储过程填充数据表。因此,我按照惯例将 TableAdapter 添加到 DataSet 中并开始填写详细信息。
我创建连接字符串,该字符串测试良好并返回所有存储过程,然后我通过存储过程进行填充。我单击“选择”组合框,然后选择要用于填充的存储过程。一旦我单击它,对话框和数据表就会消失,并返回到通常的数据集屏幕。
发生了什么事,我能做些什么来阻止它?!我已经测试了存储过程,它按预期工作。
编辑:刚刚尝试了其他存储过程,它们工作正常......可能出了什么问题?!
I am looking to populate a datatable with a MySQL stored procedure in Visual Studio. So I do the usual and add a TableAdapter to the DataSet and begin to fill in the details.
I create the connection string, which tests fine and returns all the stored procedures, then I go to populate by stored procedure. I click on the Select combobox and select the stored procedure I want to use for the population. Once I click on it the dialogs and datatable disappear and it goes back to the usual dataset screen.
What is happening and what can I do to stop it?! I have tested the stored procedure and it works as expected.
EDIT: Just tried other stored procedures and they are working fine...What could be going wrong?!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好的,我意识到 SELECT 语句中有 2 列具有相同的别名。重新别名(真实的字?!)列,现在一切正常了。
OK, I realised that there was 2 columns in the SELECT statements that had the same alias. Re-aliased (real word?!) the column and everything works now.