且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何解决CommandText属性尚未初始化?

更新时间:2022-10-25 22:53:15

The exception message is giving you a hint that a SELECT query needs to be assigned to the cmd.CommandText property before invoking the Fill method. Make sure the value of the query variable is not null or empty.