First of all, I must state that I'm new to SQL Server, but have been a
long-time software guy for quite some time. Please excuse the potential
simplicity of the solution to my problem.
I create a blank database (TestDB) under my server machine (SQL Server 2000
Standard)... I then create a new table (Run_Number) with only one record in
it.
Field(1): Next_Run_Number (bigint), identity w/ seed 1 and increment 1, no
nulls, PK
I can successfully save this new table to disk and everything seems fine...
problem comes up when I go back into the table and change the datatype from
(bigint) to (int). I try and save changes and I get the following error
prompt:
'Run_Number' table
- Unable to create index 'PK_Run_Number'.
ODBC error: [Microsoft][ODBC SQL Server Driver]Invalid cursor state
I've checked and there's plenty of disk space available and the dbase is set
to grow by 10% as necessary. Any ideas what could be going wrong? I'm able
to successfully make this change on my other machine running SQL Server 2000
Personal. Thoughts?
TIA!
-J.C..
I don't really know why you are getting this error. Are you doing the change
directly in Enterprise Manager?
Have you tried removing the PK and setting seed to No before changing the
Datatype from bigint to int and then applied the PK and the seed again after
the change?
Be careful if you change the datatype from bigint to int as bigint values
outside the int value range obviously won't be converted correctly.
HTH, M
"J.C. Flores" <jcfl...@archonwest.com> wrote in message
news:tEm4d.517$zG1...@newsread3.news.pas.earthlink.net...
Are we perhaps seeing issues related to permissions on the Standard edition
server? Maybe I can create tables, but for some reason can't change them
once they're created?
Ideas? I would greatly appreciate any help offered.
-J.C..
"Martin Feuersteiner" <theintr...@hotmail.com> wrote in message
news:cit885$cfa$1...@titan.btinternet.com...
--
Hope this helps.
Dan Guzman
SQL Server MVP
"J.C. Flores" <jcfl...@archonwest.com> wrote in message
news:UxY4d.8770$gG4....@newsread1.news.pas.earthlink.net...