Monday, January 27, 2020
Thursday, January 9, 2020
Getting the list of parameters from a stored procedure in SQL
use the INFORMATION_SCHEMA.parameters view
SELECT parameter_name, ordinal_position,parameter_mode,data_type
FROM INFORMATION_SCHEMA.parameters
WHERE SPECIFIC_NAME = 'USP_TableList'
use sys.parameters and join that with sys.types
SELECT s.name AS parameter_name,
parameter_id AS ordinal_position,
CASE is_output WHEN 0 THEN 'IN' ELSE 'INOUT' END Parameter_Mode,
t.name AS data_type
FROM sys.parameters s
JOIN sys.types t ON s.system_type_id = t.user_type_id
WHERE object_id = object_id('USP_TableList')
Here is the output
parameter_name | ordinal_position | parameter_mode | data_type |
---|---|---|---|
@id | 1 | IN | int |
@Date | 2 | IN | date |
@char | 3 | INOUT | char |
Wednesday, January 8, 2020
Update query failing with error in MySQL Workbench
Follow the following steps before executing the UPDATE command: In MySQL Workbench
Go to Edit --> Preferences
Click "SQL Editor" tab and uncheck "Safe Updates" check box
Query --> Reconnect to Server // logout and then login
Now execute your SQL query
or
Go to Edit --> Preferences
Click "SQL Editor" tab and uncheck "Safe Updates" check box
Query --> Reconnect to Server // logout and then login
Now execute your SQL query
or
SET SQL_SAFE_UPDATES = 0;
Subscribe to:
Posts (Atom)
Mixed Content: The page at xxx was loaded over HTTPS, but requested an insecure
Mixed Content: The page at ' https ://www.test.com/signup.aspx' was loaded over HTTPS, but requested an insecure script ' http ...
-
This displays a jQuery dialog after 14 minutes of inactivity. If 15 minutes passes and no activity is found to be happening within the brow...
-
Internet Information Services (IIS) 7 and above provides a request-processing architecture that includes: The Windows Process Activati...
-
The "Update Model from Database" is hard/slow to use . It generates other stuff that you probably don't want/need. So manuall...