Viewing 15 posts - 16 through 30 (of 31 total)
SQL Server doesn't support the concept of color. Are you talking about Reporting Services or something else?
October 9, 2009 at 1:40 pm
I have also received emails from both favourkarume11 and favourkarume12.
October 9, 2009 at 8:18 am
Are you entering non-NULL values in both storeNo and depoNO? A foreign key should only cause an error if you enter a non-NULL value that is not found in...
October 6, 2009 at 5:55 am
For what it's worth, you can accomplish the same thing with an outer join and an aggreaget function:
CREATE TABLE #Test(ID int IDENTITY(1,1), FirstName varchar(10), LastName varchar(10), Email varchar(10))
INSERT INTO #Test(...
October 5, 2009 at 10:44 am
If the column names and sample data you've listed are correct, you should be getting back row 3 and not row 2. I suspect that there's something wrong with...
October 5, 2009 at 6:44 am
Because SUM ignores NULL values, one way to do it is simply to find out whether any row is NULL and if so return N/A. One way to do...
September 29, 2009 at 11:38 am
If I understand you correctly, you just want to extract one string from another. For that you need to use SQL's string manipulation functions, such as they are. ...
September 21, 2009 at 12:05 pm
You can search the syscomments table: SELECT DISTINCT OBJECT_NAME(id) FROM syscomments WHERE text LIKE '%YourTextHere%'
September 21, 2009 at 8:46 am
You could try casting the datediff output from integer to a more precise decimal format. That way you don't lose precision early in the calculation and you can even...
September 21, 2009 at 7:57 am
You need to use dynamic SQL. Something like:
DECLARE @sql varchar(1000)
SET @sql = 'SELECT * INTO dbo.' + @TableName + ' FROM ' + @TableName +...
September 21, 2009 at 6:48 am
More information would be useful here. For instance, do you know if the slowdown is caused by sp_transform or by the select in CPOS.RP_TotalAccessories?
September 4, 2009 at 1:41 pm
I think you're missing some quotes.
Try AND o.NAME = ''' + @tablename + ''''
September 4, 2009 at 7:19 am
Doesn't selecting into a temp table (SELECT * INTO #a FROM whatever) lock tempdb for the duration of the operation?
September 2, 2009 at 11:07 am
Viewing 15 posts - 16 through 30 (of 31 total)