Viewing 15 posts - 1 through 15 (of 27 total)
My code now takes the form:
ALTER PROCEDURE Populations_1991_onwards
AS
if exists(select 1 from INFORMATION_SCHEMA.tables where table_name = 'Populations_PREP') DROP TABLE Populations_PREP;
-- Create table with correctly defined fields
CREATE TABLE [Populations_PREP] (
[Key_m] [int]...
May 21, 2008 at 7:05 am
Fair point,
I have updated the original post. Don't worry I think that I have nearly fixed all the problems.
May 21, 2008 at 2:48 am
There was some duff data in the table. Sorry about that.
May 21, 2008 at 2:39 am
I'm nearly there with the following:
ALTER PROCEDURE Populations_1991_onwards
AS
--EXEC Populations_1991_onwards
if exists(select 1 from INFORMATION_SCHEMA.tables where table_name = 'Populations_PREP') DROP TABLE Populations_PREP;
CREATE TABLE [Populations_PREP] (
[Key_m] [int] IDENTITY (1, 1) NOT FOR...
May 20, 2008 at 11:14 am
That has helped me find the problem. Thanks.
May 20, 2008 at 3:10 am
ALTER PROCEDURE Populations_1991_onwards
AS
CREATE TABLE [Table_name] (
[Key_m] [int] IDENTITY (1, 1) NOT FOR REPLICATION NOT NULL ,
[GeographicCode] [varchar] (10) COLLATE Latin1_General_CI_AS NULL ,
[Year_census_estimate] [int] NULL ,
[Sex] [int] NULL ,
[Age_start]...
May 19, 2008 at 12:55 pm
The error that I get when I try to manually update the table is:
'Table_name' table
- Unable to modify table.
ODBC error: [Microsoft][ODBC SQL Server Driver][SQL Server]Error converting data type...
May 19, 2008 at 12:50 pm
Mark Green (4/28/2008)
April 28, 2008 at 10:27 am
It doesn't seem to recognise the format that I am working with (as detailed above).
April 28, 2008 at 9:35 am
I don't need to determine if this is a one or two month string. They are all two digits to represent a month. Would it be better to...
April 28, 2008 at 9:28 am
With what you have just written here, if I select the region as well as the SM figure, for each case. I could then do an inner join to...
December 3, 2007 at 10:10 am
That is very similar to what I started with. I'll go back to your complex code then.
December 3, 2007 at 10:04 am
Viewing 15 posts - 1 through 15 (of 27 total)