I Create a procdure in SQL Server 2005
CREATE PROC procs_model_data_test
AS
BEGIN
-- Do something
...
--At the end,show the result.
SELECT * FROM tbl_model_data_test
END
CREATE PROC procs_model_data_test
AS
BEGIN
-- Do something
...
--At the end,show the result.
SELECT * FROM tbl_model_data_test
END
To copy to clipboard, switch view to plain text mode
When Execute such proc in the Qt Program
QString szSQL
= "EXEC procs_model_data_test";
model.setQuery(szSQL);
QString szSQL = "EXEC procs_model_data_test";
QSqlQueryModel model;
model.setQuery(szSQL);
To copy to clipboard, switch view to plain text mode
However , the model has no records, do you have any idea? thank you!
Bookmarks