Viewing 15 posts - 16 through 30 (of 30 total)
I agree with subhrajit46.
If some other session is using the temp table, the temp table is not dropped when the session which created it was closed.
December 17, 2009 at 5:29 am
On SQL Sever 2005 you can use PIVOT operator whch is for such purposes.
DECLARE @temp TABLE
(
RowNo int,
Result char(1)
)
INSERT INTO @temp (RowNo, Result)
SELECT 1, 'C' UNION ALL
SELECT 2, 'A' UNION ALL
SELECT...
December 17, 2009 at 12:25 am
Hi, it is what you intended?
select
salesdate
,saleshour
,pens
,pencils
,ISNULL(sum ( CASE WHEN salesHour >= 0 AND salesHour < 12 THEN pens ELSE NULL END)...
December 17, 2009 at 12:08 am
alex2000 (12/15/2009)
I want recode these values to 0,1,space, space
I am thinking the bit wise operation but unable to find a mask that recode 0...
December 15, 2009 at 1:35 pm
stricknyn (12/14/2009)
Thanks for your response. Yeah this is what I do to get it working except I just throw values there like this:
EXEC [dbo].[FinancialMembership] 'Test',2009, 0.0
My question is more...
December 14, 2009 at 4:04 pm
you simply need to add the output parameter in the call, you must provide an output variable to which the outpu should be stored
DECLARE @output decimal(5,2)
EXEC [dbo].[FinancialMembership] 'Test',2009, @output OUTPUT
December 14, 2009 at 12:49 pm
you can use NTILE function with argument equals to CEILING of count of records in the table divided by number specifying number of records in the group.
WITH NTileTable AS (
SELECT
NTile(CONVERT(int,...
December 14, 2009 at 6:23 am
If the "Testing" is the name of the sheet in the excel file, you need to name it as "Testing$".
The names of the sheets needs to be followed by $...
December 14, 2009 at 5:07 am
To remove any character or string from within another you can use the REPLACE function
REPLACE(STREET_addr_l1, '.', '')
so you will replace the dot by en ampty string and thus removing the...
December 12, 2009 at 4:32 am
Or you can try using a CROSS JOIN to multiply the inserts and threrefore you will have only one table scan instead of 3 table scans when using the union.
DECLARE...
December 11, 2009 at 10:00 am
I think, you want calculate a time difference between current and previous rows in a table witch is representing eg. some type of log.
If this is what you intend, you...
December 10, 2009 at 2:14 pm
tmacdonald (12/10/2009)
Pavel Pawlowski (12/10/2009)
December 10, 2009 at 1:58 pm
If you are able to login to the SQL server machine under the account under which the instance is running, then try to login and try access the files on...
December 10, 2009 at 1:24 pm
You have to run the SQL server instance under an account which has access and appropriate rights to the remote PC.
If you will run it under such account, then...
December 10, 2009 at 12:32 am
Hi,
depends on what data you want read and depends on the database settings etc. You should think about correct transaction isolation levels etc.
But.. If you want you to read uncommitted...
December 9, 2009 at 4:07 am
Viewing 15 posts - 16 through 30 (of 30 total)