Viewing 15 posts - 586 through 600 (of 636 total)
FROM BOL, CREATE TABLE
If more than one temporary table is created inside a single stored procedure or batch, they must have different names.
February 9, 2011 at 3:01 pm
My main procedure and the procedure it was calling both had a temp table called #Accounts. I changed the name in the called procedure and it worked. Thanks again to...
February 9, 2011 at 2:48 pm
Below is what I have tried and the errors created.
INSERT INTO #Accounts (#Accounts.Account) VALUES (@Account_Group)
Error: Invalid column name 'Account'.
INSERT INTO #Accounts SELECT @Account_Group
Insert Error: Column name or number of supplied...
February 9, 2011 at 2:34 pm
I have isolated to an insert into a temp table here. This is the proc being called.
ALTER PROCEDURE [dbo].[myProc]
@Account_Group varchar(50),
@Type varchar(10),
@SessionID int
AS
CREATE TABLE dbo.#Accounts (Account varchar(50))
IF...
February 9, 2011 at 2:07 pm
Thanks you for responding. There doesn't be a schema problem.
I can change the procedure to use
I altered the procedure and still got the same behavior....
February 9, 2011 at 1:23 pm
I would make a copy of the table using the CREATE TABLE statement. Say the new table is called ItemsTest. Then you could run this
INSERT INTO dbo.ItemsTest
(
Code,
Name,
Description,
Price,
UnitOfMeasureID,
RevenueTypeID
)
SELECT
Code,
Name,
Description,
Price,
UnitOfMeasureID,
RevenueTypeID
FROM dbo.ItemsStaged
If this...
February 8, 2011 at 11:55 am
Another thing you might try is importing the data into a staging table, not your final destination table. The import wizard will create this table for you.
Then post the...
February 8, 2011 at 10:19 am
The original drives were overprovisioned. The SAN tools can migrate the LUNS but they would remain the same size. We want the new drives to be smaller. Now I am...
February 3, 2011 at 1:34 pm
Thank you. Your suggestion is working for me.
January 27, 2011 at 8:32 am
Thanks to all who replied. It is a situation where the data can be either a number I need to calculate with it or a textual code, not a combination...
January 26, 2011 at 3:26 pm
GSquared (1/26/2011)
The definition of relational databases and the normal forms for them is what I'd start with.What kind of numeric and text data, and what difficulty does it create?
Hello,
You can...
January 26, 2011 at 3:19 pm
See this thread. http://sqlblog.com/blogs/andrew_kelly/archive/2008/02/27/when-getdate-is-not-a-constant.aspx
You may get different results by referencing getdate() multiple times.
January 26, 2011 at 1:39 pm
Putting aside ISNUMERIC and its issues I still don't understand why a CONVERT would work when selecting a field but not in the WHERE clause.
Is it possible that the comparison...
January 26, 2011 at 12:42 pm
Can LIKE '%0-9%' be adapted if my data is like the following?
100.00
75.99
99.00
January 26, 2011 at 11:25 am
drew.allen (1/15/2011)
Doesn't the following give you want you want?
ORDER BY Sort, TypeIf not, something similar should give you the desired results.
Drew
Yes it does. My apologies. I have overlooked the obvious....
January 18, 2011 at 3:22 pm
Viewing 15 posts - 586 through 600 (of 636 total)