Currently when pasting the script with the following script, it pastes the script but it does not maintain the same line spacing and the paste itself does not paste the characters in order, so there is garbled text. I tried looking around but could not find it.
Essentially, if you have some long text with special characters how do you ensure with some hot key same text is pasted. Any suggestions will be greatly appreciated. Thank you.
Code: Select all
;shrink
^8::
MyMsg=
(
/*
-- Shrink_DB_File.sql
This script is used to shrink a database file in
increments until it reaches a target free space limit.
Run this script in the database with the file to be shrunk.
1. Set @DBFileName to the name of database file to shrink.
2. Set @TargetFreeMB to the desired file free space in MB after shrink.
3. Set @ShrinkIncrementMB to the increment to shrink file by in MB
4. Run the script
http www.sqlteam.com /forums/topic.asp?TOPIC_ID=80355 Broken Link for safety
*/
declare @DBFileName sysname
declare @TargetFreeMB int
declare @ShrinkIncrementMB int
-- Set Name of Database file to shrink
-- RUN THIS SCRIPT IN TARGET DB
set @DBFileName = 'ENTERDBNAME'
-- Set Desired file free space in MB after shrink
set @TargetFreeMB = 0
-- Set Increment to shrink file by in MB
set @ShrinkIncrementMB = 1024
)
SendInput {Text} %MyMsg%
Return