| Thread | Last Post | Replies |
|
| Strange fast and slow execution times | 16 Jul 2008 14:53 GMT | 3 |
Running a particula stored procedure against a SQL2000 database within a SSMS2005 query window using identical parameter values it will sometimes run in 17 seconds and at other times runs in 47 seconds. What should I look into for the cause.
|
| Numbering rows leader-board style | 16 Jul 2008 14:24 GMT | 16 |
I'm wanting to get a ordered table of players and their scores, in descending order, with a a leaderboard style row-numbering (so of two people had the same score they would both be position 3, and the next would be position 5). I've managed to find a way using a side-effect of ...
|
| temp tables : to index or not to index | 16 Jul 2008 12:35 GMT | 11 |
I've heard that a good rule of thumb for table vars vs temp tables is if you might be working with 10,000 or more rows go with a temp table, otherwise a table var. So, assuming working with a temp table of 10,000 rows , should indexes be
|
| Writing SQL data out to a text file | 16 Jul 2008 08:30 GMT | 5 |
I am looking a stored procedure that writes SQL data out to a text file from a stored procedure. The existing code is doing this: ------------------------------ Some code to create #QSBonuses and fill it with data
|
| How do I Return Result of Case as Decimal | 16 Jul 2008 05:56 GMT | 2 |
How do I return the following as a Decimal 10.2 Sum(Balance) asBal, Case WHEN Sum(Balance) = 0 and Sum(PER) = 0 THEN
|
| Mimicking Access Cross tab query | 16 Jul 2008 01:50 GMT | 8 |
I recently came across the PIVOT sql syntax. Less typing than select case. Access has a crosstab query to turn values that appear in rows as columns. this has the advantage over SQL in that you don't need to
|
| Finding Unique Indexes | 16 Jul 2008 01:47 GMT | 3 |
Anyone have a query to find all the unique indexes in a given database? Thanks, Mark
|
| Copying whole field of data from a table to other table | 16 Jul 2008 01:46 GMT | 5 |
I was struggling for this one for a while. It could be very easy one, but I cannot seem to get it as I get an error. 1.Here is a task I have a table A which contains Acct# & a blank Contact field.
|
| Tough SQL. EXCACT DUPLICATES IN DETAIL RECORDS | 16 Jul 2008 00:39 GMT | 34 |
Here it goes. I use an ordinary ORDERS database, that we all know the tables that are normally contained in it : CUSTOMERS (C_ID, C_NAME, ...)
|
| Query Results Using Database Mail | 15 Jul 2008 22:06 GMT | 3 |
Is there an easy way to email the results of a query using sp_send_dbmail? I can always use a cursor and build a string for the email body, but I was hoping there would be a better way.
|
| Trigger when connection ended | 15 Jul 2008 21:46 GMT | 7 |
I would like to operate a v.simple locking mechanism. Have a hierachical db structure everything hangs of customer table. So when someone is editing a customer do not want anyone to be able to edit the same customer.
|
| URGENT - How to get the query request history | 15 Jul 2008 21:12 GMT | 1 |
We are trying to trouble shoot a problem and we are not sure what is the queries that the application sending to my sql server. is there a way to audit the queries executed by SQL Server? Thanks
|
| Unique Queery | 15 Jul 2008 20:57 GMT | 4 |
I have a temp table #Output with one column OrderId int. I add some OrderId's to this table based on some criteria. I have another table called OrderLineItem with OrderId, Event. I have a variable called @events which corresponds to the maximum number of
|
| Cleaning varchar 50 fields | 15 Jul 2008 19:58 GMT | 2 |
I have a varchar 50 field that contains periods and underscores. I want to return only the alphanumeric characters. Unfortunately, the periods and underscores do not always appear in the same position. I worte a public function is Access that does this:
|
| Sql Server 200x Stress Tools? | 15 Jul 2008 19:37 GMT | 6 |
I currently have Sql Server 2005 Standard Edition. I have a few legacy Sql Server 2000 Standard Edition databases as well. .. I have implemented the Sql Server 2005 Performance Dashboard Reports as
|