I have found another way to solve my problem using a Case When statement - I found out that SQL Server is unlikely to cache query plans for sprocs...
Hi folks, I have a procedure for custom/sorting paging a datagrid on a web page. It uses a sortparameter which (unfortunately) I have to pass in to...
I have a full text search sproc which accepts a string as a parameter i.e. @term nvarchar(120) I then have to do this within the sproc: declare...
Hello. Are you using asp.net membership by any chance? Anyway, it is possible to have a guid as a primary key but this is not recommended due to the...
With a db that big you should consider scrapping sata hd's and going with 15,000rpm scsi drives. You will find that you get to a point where CPU and...
Hi, how can I convert one date format to another? I have a procedure (below) where 2 dates are passed in (in UK format). Ideally I would like to...
Thanks Martins, that's interesting. You see a database I am working on at the moment has a table that is only ever going to have 2-300 rows x 18...
Hi, I have been reading some articles on the site about index selection etc and keep reading the phrase "an index scan may be better if many rows are...
I don't think I can normalize any further really, the table I am querying consists of a ProductId column, then the date columns. I like the idea of...
Hello, I'm querying a table where a lot of dates are stored per row. Each record can have up to 15 nullable dates i.e. productid, dateA, dateB,...
Frank, YOU ARE THE MAN!
Hi, how can I get another inner join in here to improve the performance of this query? I'm querying a training courses database. The query below...
Thank you for your reply. After more research though I have decided to still go with the full-text catalog - mainly to avoid table scan and also...
Hey, In a database I am designing for a website, one of the main tables is a products table. Users will need to be able to search using a search box...
Hey, I haven't had time to get into LINQ to SQL yet, but there is a lot of info about it over at Scott Gu's blog (Microsoft leader for ASP.NET). The...
Hello, I have a design issue with a table. To cut a long story short, users of a site need to be able to store their preferences in a table. Part of...
Separate names with a comma.