﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / SQL Server 2008 / T-SQL (SS2K8)  / t-sql 2008 r2 pass paramters / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Sun, 19 May 2013 14:01:05 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: t-sql 2008 r2 pass paramters</title><link>http://www.sqlservercentral.com/Forums/Topic1403367-392-1.aspx</link><description>I'm with Joe and Dwain.You do have an option, but it's somewhat dangerous. SQL Server has a function called SOUNDEX that sounds out how a word would be spoken. This allows you to take two words, spelled differently that do mean the same thing and possibly get them to link together. However, it's a very inaccurate way to go about it. And, putting the function on the column would prevent index use. You could store a soundex value in a column and then compare parameters to that. But you're still going to hit the accuracy issue.Go with Joe &amp; Dwain's initial suggestion.</description><pubDate>Mon, 07 Jan 2013 04:43:04 GMT</pubDate><dc:creator>Grant Fritchey</dc:creator></item><item><title>RE: t-sql 2008 r2 pass paramters</title><link>http://www.sqlservercentral.com/Forums/Topic1403367-392-1.aspx</link><description>I tend to agree with Joe on this.  Scrub the data in your front end application.Given that, at this point in time, you've probably already collected lots of garbage that you can't go back and correct for whatever reason, it would be possible to do some scrubbing on your search.However, you really need to provide us some DDL and samples of the data (in consumable form), so that we can cobble together some code to address those cases.Refer to this article on how to do that: [url=http://www.sqlservercentral.com/articles/Best+Practices/61537/]Forum Etiquette: How to post data/code on a forum to get the best help[/url]</description><pubDate>Sun, 06 Jan 2013 17:24:10 GMT</pubDate><dc:creator>dwain.c</dc:creator></item><item><title>RE: t-sql 2008 r2 pass paramters</title><link>http://www.sqlservercentral.com/Forums/Topic1403367-392-1.aspx</link><description>[quote] Thus my question is how would you write the queries to obtain the values I can referring to? [/quote]Do some data scrubbing in the front end [i]before [/i] you pass values to the stored procedure. It is not worth it to guess all possible screw ups in the query; make the input layers do their job. </description><pubDate>Sun, 06 Jan 2013 15:55:43 GMT</pubDate><dc:creator>CELKO</dc:creator></item><item><title>t-sql 2008 r2 pass paramters</title><link>http://www.sqlservercentral.com/Forums/Topic1403367-392-1.aspx</link><description>In need to pass 5 parameters to a stored procedure in sql server 2008 r2 standard edition database. The 5 parameters come from a filename in a Visual Basic.Net 2010/2012 application. Two of the parameters are ok since they are numeric values however 3 of the parameters are character that translates to varchar values. My problem is the fields that are: 1. major product name, 2. sub product name, and 3. customer name may not be the exact values that are actually contained within the database. There may be differences in the values like upper versus lower case, the number of spaces that are entered between words, words like incorporated may have the abbreviation, and other any special circumstances.Between the 4 of the 5 parameters that are to be supplied to the stored procdure, I obtain distinct (unique) values for rows in the database.The only thing I think I can do is to look of names in character fields for the minimum size value contained in those columns. Thus my question is how would you write the queries to obtain the values I can referring to? </description><pubDate>Sun, 06 Jan 2013 15:49:54 GMT</pubDate><dc:creator>wendy elizabeth</dc:creator></item></channel></rss>