Hello,
To answer your direct question, yes, to declare a variable you must do so within a stored procedure or a stored trigger.
A broader answer is that SQL Data Manager provides a great deal of capability. For Pervasive.SQL V8, the documentation for SQL Data Manager was substantially enhanced. In it, you will find sections on the Query Pane and the Query Builder, as well as extensive tasks on how to use the utility.
Refer to the chapter SQL Data Manager in the Pervasive.SQL User's Guide.
You may access the online User's Guide in HTML format from here:
http://www.pervasive.com/library/doc...e/sug7toc.html
If you prefer, you may download a PDF or CHM version of the User's Guide from here:
http://www.pervasive.com/support/tec...sqlv8_docs.asp
For information about stored procedures, refer to the SQL Engine Reference. You may access it online here:
http://www.pervasive.com/library/doc...sqlreftoc.html
Regards,
Tim Meiers
Pervasive Technical Publications
Quote:
Originally posted by frasse7
What can I do in SQL Data Manager? I thought it was something like the Query Analyzer (MSSQL), but I can't do anything in the SQL Data Manager.
If I write this in Query Analyzer it works great:
declare @name varchar(50)
set @name = 'risktolerance'
select * from profiledata where profilename = @name
If I write something similar in SQL Data Manager I get errors on the first row:
declare :name varchar(50);
set :name = 'James';
select * from person where first_name = :name;
Is it impossible to write anything but simple select statements? How do I test my scripts without having to write a complete stored procedure?
Yes, I am a fresh newbie, who is trying hard to like Pervasive.
Please let me know how to work with pervasive, thanks.
|