| Thread | Last Post | Replies |
|
| syntax error in where clause? | 01 May 2008 00:57 GMT | 12 |
Ok, why am I getting a syntax error near the = sign in the where clause on this. BTW, all tables listed are in the from clause: where case when reference_type='service' then order.order_num=orditem.order_num
|
| table definition display | 30 Apr 2008 22:46 GMT | 1 |
Is there a way to display a table definition (something like sp_help) but only with column_name, type and length? I'd like to be able to see all three columns in one screen, whereas sp_help makes you scroll to the right to see them all. Thanks.
|
| Quarterly report - calculating for each of next four months? | 30 Apr 2008 21:11 GMT | 2 |
RE: Quarterly report - calculating for each of next four months? As I play with joins and functions to help mold my data.. I'm thinking about options.
|
| Getting "Last Transact-SQL Command Batch" for a spid from DMV's | 30 Apr 2008 21:06 GMT | 4 |
declare @text nvarchar(max), @spid int select @spid = 178 select @text = text
|
| ISOLATION LEVEL READ UNCOMMITTED | 30 Apr 2008 20:43 GMT | 1 |
Using sql 2000 I have a Stored Procedure that has very big queries joining on different Databases. When using
|
| SQL Server 2000 'SELECT' transaction blocking itself | 30 Apr 2008 20:35 GMT | 1 |
I'm running the query 'select * from table' in Query Analyzer, and when I execute 'sp_who' it shows that it's blocking itself. How do I troubleshoot this?
|
| Simple Query Question | 30 Apr 2008 20:17 GMT | 9 |
I'm sure there's a simple solution for this. Essentially, I want to query a table for a specific combination of data and return a single row back if the condition is met. Other than using views or subqueries, I'm not seeing it. Example:
|
| Does the unique constraint design come from the days of CELKO? | 30 Apr 2008 19:58 GMT | 74 |
i've been using SQL Server for ten years. A few months ago i thought i finally ran into a case where i needed the constraint behaviour of SQL Server. i turned to my colleagues and said, "You'll never believe it. i actually have case where SQL Sever's handling of a unique ...
|
| KILL <TransactionID>? | 30 Apr 2008 19:38 GMT | 5 |
Is there a way to terminate a given Transaction ID without using KILL <spid>? Given the situation where a SELECT query on one thread is taking an inordinate amount of time to complete, I would like a second thread to be
|
| Only allow 50 non-blank records to be inserted then cut off | 30 Apr 2008 19:12 GMT | 1 |
I want to write a t-sql statement to insert record new records as long as the non-blank record count is < 50. Once it hits 50, I want to send a message to the user saying the sorry, we have reached our limit. Note, I want to count records that have data in it, if a record has ...
|
| DTS as command line? | 30 Apr 2008 19:00 GMT | 1 |
OK, I've copied a large number of Oracle tables to SQL Server using DTS. Is there any way I can do this using a command-line interface (perhaps one table at a time)? The point is to be able to do this as easily as
|
| database design: where to put some fields? | 30 Apr 2008 18:53 GMT | 4 |
I have 5 different tables where I might be able to put columns for an address: ArrivalLocation, DepartureLocation, Host, Hotel and Venue. I was wondering if it would be better to add the address columns to each of these tables or create a lookup table with those table names as ...
|
| SQL | 30 Apr 2008 18:42 GMT | 3 |
I have a query in the stored procedure which has a parameter @FirstName varchar(39). The query looks like this: SELECT B.CustomerNo FROM Customers A JOIN Customers B ON A.CustomerNo <> B.CustomerNo
|
| Noob Question | 30 Apr 2008 18:06 GMT | 10 |
Hi All, I'm a noob to SQL and am trying to run a query that goes a little something like this. DECLARE @StartTime DATETIME DECLARE @EndTime DATETIME
|
| Please help me with the sql puzzle query | 30 Apr 2008 17:14 GMT | 2 |
create table demo(id int) go insert into demo select 10 union all
|