Red Gate forums :: View topic - Parameter Sizing
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
SQL Prompt 5 EAP
SQL Prompt 5 EAP forum

Parameter Sizing

Search in SQL Prompt 5 EAP forum
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
Jump to:  
Author Message
warthenr



Joined: 02 Oct 2007
Posts: 14

PostPosted: Tue Sep 21, 2010 2:39 pm    Post subject: Parameter Sizing Reply with quote

Along with the unused variables, it would be great to have the script check if all the variable sizes are large enough to hold the results. For example given the following

Table A
(
B varchar (20)
)

Declare @bvar varchar(10)

select top 1 @bvar = B from A

It would show an error for bvar since bvar is not large enough to hold the results of column B.
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
This topic is locked: you cannot edit posts or make replies. All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group