Viewing 15 posts - 916 through 930 (of 1,124 total)
First of all, the statement
select top 1 Task Task,coalesce(cast(Added as varchar(10)),'') Added,coalesce(cast(Updated as varchar(10)),'') Updated, Time [Time(ms)], Message Message from MyTable
will not guarantee the order of rows (i.e. it...
November 20, 2007 at 3:42 am
You can't refer to the columns by the alias name in a where clause but you refer it in an ORDER BY clause....
November 20, 2007 at 3:07 am
u could use the function COALESCE...
SELECT COALESCE( CONVERT( VARCHAR(15), @SomeInteger ), 'No Value' ) FROM SomeTable
November 20, 2007 at 2:49 am
I guess there isn't any procedure to retrieve such list, but you can check BOL for the complete list of reserved keywords....
November 20, 2007 at 2:19 am
Since DATABASE is a keyword, it needs to be enclosed in square brackets....
CREATE TABLE EMPW_SETTINGS ([DATABASE] varchar (30) ,ORIGREC int ,PASSWORD varchar (30) ,PDFEXPORT char (1) ,PDFFOLDER varchar (1024) ,PDFPRINTER...
November 20, 2007 at 1:37 am
...Use SERVERPROPERTY('ServerName')
If you've multiple instances, you might want to use SERVERPROPERTY('InstanceName')
November 6, 2007 at 12:21 am
wackoyacky (11/5/2007)
BTW, just a note, the limitation still exists in SQL 2005
As I said earlier, the limit only applies for fixed length columns....(i.e. the total length of fixed length columns)
November 6, 2007 at 12:07 am
SELECT @Commission = min(commission_cost)
FROM oe_line
WHERE order_no = @OrderNo
EDIT:
Lowell has already pointed out above...., he is fast on keyboard:D
November 5, 2007 at 7:57 am
...Use GROUP BY clause
But why you dont want to use DISTINCT?:cool: Either way the plans generated would going to be similar...
November 5, 2007 at 7:05 am
...Setting ConnectTimeout to zero, will make the provider wait indefinitely till the connection is established or the remote server rejects the request from the host after a pre-defined time has...
November 5, 2007 at 5:47 am
Create a DROP & CREATE scripts of the jobs and then do the find..replace thing.
November 5, 2007 at 5:43 am
Its all about the precedence of data types in operations.
SELECT '20071105'-7
with result: 20071098....
...The precedence of numerical values is higher than the character values. This means the value '20071105' is...
November 5, 2007 at 5:21 am
In SQL 2000, maximum row-size limit is 8060 (actually, it is a little less than what actually documented), this means you cannot insert rows with row-sizes greater than the limit....
November 5, 2007 at 5:04 am
Viewing 15 posts - 916 through 930 (of 1,124 total)