Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Something slowing down from the application
Message
General information
Forum:
ASP.NET
Category:
Databases
Environment versions
Environment:
VB 8.0
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01305122
Message ID:
01305282
Views:
6
>I am wondering if it has something to do with the issue of the parameters being varchar() and the columns being char()
>
>If you make the columns varchar does that help ?

As soon as I removed the TOP clause, when using that particular field, based on its content, the speed was ok.

But, the DECLARE parameterized variables are only used in the SSMS environment. From my code, I simply pass any type of parameters as is. However, I have observed that declaring varchar as compared to nvarchar was in fact making a difference when that particular field is used. It seems to be related to the content and how SQL Server indexes it. In that particular field, it is a Char() but it only contains digits. Basically, the client created that field to be a sister field of the first one which contains also some letters. It seems the users are usually fast at remembering only the numbers of that main field so having another field containing only the digits of the main field was also good to include in the search.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Reply
Map
View

Click here to load this message in the networking platform