Showing posts with label file. Show all posts
Showing posts with label file. Show all posts

Friday, March 30, 2012

I got the following error: Error: 823, Severity: 24, State: 4 I/O error 33

I got the following error

Error: 823, Severity: 24, State: 4

I/O error 33(The process cannot access the file because another process

has locked a portion of the file.) detected during write at offset

0x0000000a796000 in file xxxxxxxxx.mdf'.

What happened to my database?
You probably have a Antivirus software scanning the database file and the system is unable to get a lock on the file.|||I cannot remind if there was another processing locking the file, what command I can use to check, is it related to the "auto growth" setting? because my table size is 4.5G .

thx|||You can download Filemon from sysinternals.com.

During 'auto growth', the database will be locked but that doesn't sound like the problem you're encountering.|||The problem still occurred in sql server log. I don't know what happen with that table. it is a 40G database and what can i do with this error?sql

I got the following error: Error: 823, Severity: 24, State: 4 I/O error 33

I got the following error

Error: 823, Severity: 24, State: 4

I/O error 33(The process cannot access the file because another process

has locked a portion of the file.) detected during write at offset

0x0000000a796000 in file xxxxxxxxx.mdf'.

What happened to my database?
You probably have a Antivirus software scanning the database file and the system is unable to get a lock on the file.|||I cannot remind if there was another processing locking the file, what command I can use to check, is it related to the "auto growth" setting? because my table size is 4.5G .

thx|||You can download Filemon from sysinternals.com.

During 'auto growth', the database will be locked but that doesn't sound like the problem you're encountering.|||The problem still occurred in sql server log. I don't know what happen with that table. it is a 40G database and what can i do with this error?

I got the following error: Error: 823, Severity: 24, State: 4 I/O error 33

I got the following error

Error: 823, Severity: 24, State: 4

I/O error 33(The process cannot access the file because another process

has locked a portion of the file.) detected during write at offset

0x0000000a796000 in file xxxxxxxxx.mdf'.

What happened to my database?
You probably have a Antivirus software scanning the database file and the system is unable to get a lock on the file.|||I cannot remind if there was another processing locking the file, what command I can use to check, is it related to the "auto growth" setting? because my table size is 4.5G .

thx|||You can download Filemon from sysinternals.com.

During 'auto growth', the database will be locked but that doesn't sound like the problem you're encountering.|||The problem still occurred in sql server log. I don't know what happen with that table. it is a 40G database and what can i do with this error?

I got the following error: Error: 823, Severity: 24, State: 4 I/O error 33

I got the following error

Error: 823, Severity: 24, State: 4

I/O error 33(The process cannot access the file because another process

has locked a portion of the file.) detected during write at offset

0x0000000a796000 in file xxxxxxxxx.mdf'.

What happend with my database?

Hello,

How are you acessing the DB?

Do you have 2 Destinations pointing to the same DB file?

Is that error in the SSIS?

Regards,

i got an err msg

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

-

so what i should do?

to mach for a biginer,

where is this file

thanks

i did add this to the web config file

<configuration>
> <system.windows.forms jitDebugging="true" />
> </configuration>

but its wouldnt halps

|||

also tried to add

configuration>
> <system.windows.forms jitDebugging="true" />
> </configuration>
>
to
\WINDOWS\Microsoft.NET\Framework\v2.0.50727\CONFIG
machine.config
but it wouldn't help.

well i hope you don't think i not to mach of a beginner for you guys

|||Hi,

I am not quite sure where you actually get the error message, you just posted the error message and we don′t know in which context this relates to SQL Server.

Jens K. Suessmeyer.

http://www.sqlserver2005.de

sql

I give up on this one...

I have tried and tried to get this to work and I'm doing something dumb.
I'm going to include sample data and my format file. Can someone help
me figure out my dumb mistake on a bulk insert using a format file?
Don't worry about data types, I'll handle that later. Thanks a lot!!!

CSV File:

ID,NAME,SPEC_ORIGINAL,SPEC,CATEGORY,ADDRESS1,CITY, STATE,ZIP,PHONE,COMPET
ITOR,PLAN,HARVESTDATE,EIDs,EIDCount,sourceIds,minS core,maxScore,hasContr
act,matchFilter,matchFilterBGR,matchFilterCAS,matc hFilterMTV,forceMatch,
forceMatchUserId,paymentPlatforms,matchStatusColor ,recordId,dupId,Networ
kComparedTo
1,name1,Family Practice General Practice,FP,PCP,address1,Deerfield
Beach,FL,33442,phone1,C1,PPO,5/15/2004,1000067851,2,BADG_0874992,9,14.4,
Y,Y,Y,Y,Y,0,,3,G,1, ,netcomp1
2,name2,Family Practice General
Practice,FP,PCP,address2,Margate,FL,33063,phone2,C 2,PPO,5/15/2004,100006
7851,2,BADG_0874992,9,10,Y,Y,Y,Y,Y,0,,3,G,2, ,netcomp2
3,name3,General Practice,GP,PCP,address3,Deerfield
Beach,FL,33442,phone3,C3,PPO,5/15/2004,1000067851,2,BADG_0874992(14.4
Y)|BADG_1901859,9,14.4,Y,Y,Y,Y,Y,0,,3,G,3, ,netcomp3
4,name4,Reproductive
Endocrinology,OBEN,OB,address4,Davie,FL,33328,phon e4,C4,PPO,5/15/2004,10
00083687,1,CAS_650410436,10.3,10.3,Y,N,N,N,N,0,,0, Y,4, ,netcomp4

Format File:
8.0
31
1 SQLCHAR 0 1 "\r\n" 0 quote Latin1_General_CI_AS
2 SQLCHAR 0 3000 "," 1 Provider_Raw_ID Latin1_General_CI_AS
3 SQLCHAR 0 3000 "," 0 none_name Latin1_General_CI_AS
4 SQLCHAR 0 3000 "," 0 none_Spec_orig Latin1_General_CI_AS
5 SQLCHAR 0 3000 "," 3 SpecialtyCode Latin1_General_CI_AS
6 SQLCHAR 0 3000 "," 2 Category Latin1_General_CI_AS
7 SQLCHAR 0 3000 "," 0 none_Address Latin1_General_CI_AS
8 SQLCHAR 0 3000 "," 0 none_City Latin1_General_CI_AS
9 SQLCHAR 0 3000 "," 0 none_State Latin1_General_CI_AS
10 SQLCHAR 0 3000 "," 0 none_Zip Latin1_General_CI_AS
11 SQLCHAR 0 3000 "," 0 none_Phone Latin1_General_CI_AS
12 SQLCHAR 0 3000 "," 0 none_Competitor Latin1_General_CI_AS
13 SQLCHAR 0 3000 "," 0 none_Plan Latin1_General_CI_AS
14 SQLCHAR 0 3000 "," 0 none_HarvestDate Latin1_General_CI_AS
15 SQLCHAR 0 3000 "," 0 none_EIDs Latin1_General_CI_AS
16 SQLCHAR 0 3000 "," 5 EIDCount Latin1_General_CI_AS
17 SQLCHAR 0 3000 "," 0 SourceIds Latin1_General_CI_AS
18 SQLCHAR 0 3000 "," 6 minScore Latin1_General_CI_AS
19 SQLCHAR 0 3000 "," 7 maxScore Latin1_General_CI_AS
20 SQLCHAR 0 3000 "," 8 hasContract Latin1_General_CI_AS
21 SQLCHAR 0 3000 "," 9 matchFilter Latin1_General_CI_AS
22 SQLCHAR 0 3000 "," 10 matchFilterBGR Latin1_General_CI_AS
23 SQLCHAR 0 3000 "," 11 matchFilterCAS Latin1_General_CI_AS
24 SQLCHAR 0 3000 "," 12 matchFilterMTV Latin1_General_CI_AS
25 SQLCHAR 0 3000 "," 13 forceMatch Latin1_General_CI_AS
26 SQLCHAR 0 3000 "," 14 forceMatchUserId Latin1_General_CI_AS
27 SQLCHAR 0 3000 "," 15 paymentPlatforms Latin1_General_CI_AS
28 SQLCHAR 0 3000 "," 16 matchStatusColor Latin1_General_CI_AS
29 SQLCHAR 0 3000 "," 17 recordId Latin1_General_CI_AS
30 SQLCHAR 0 3000 "," 18 dupId Latin1_General_CI_AS
31 SQLCHAR 0 3000 "," 4 NetworkComparedTo Latin1_General_CI_AS

Here's a script for the table!

if exists (select * from dbo.sysobjects where id =
object_id(N'[dbo].[Provider_Results]') and OBJECTPROPERTY(id,
N'IsUserTable') = 1)
drop table [dbo].[Provider_Results]
GO

CREATE TABLE [dbo].[Provider_Results] (
[Provider_Raw_ID] [varchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS
NULL ,
[Category] [varchar] (3000) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
[SpecialtyCode] [varchar] (3000) COLLATE SQL_Latin1_General_CP1_CI_AS
NULL ,
[NetworkComparedTo] [varchar] (3000) COLLATE
SQL_Latin1_General_CP1_CI_AS NULL ,
[EIDCount] [varchar] (3000) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
[minScore] [varchar] (3000) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
[maxScore] [varchar] (3000) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
[hasContract] [varchar] (3000) COLLATE SQL_Latin1_General_CP1_CI_AS
NULL ,
[matchFilter] [varchar] (3000) COLLATE SQL_Latin1_General_CP1_CI_AS
NULL ,
[matchFilterBGR] [varchar] (3000) COLLATE SQL_Latin1_General_CP1_CI_AS
NULL ,
[matchFilterCAS] [varchar] (3000) COLLATE SQL_Latin1_General_CP1_CI_AS
NULL ,
[matchFilterMTV] [varchar] (3000) COLLATE SQL_Latin1_General_CP1_CI_AS
NULL ,
[forceMatch] [varchar] (3000) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
,
[forceMatchUserId] [varchar] (3000) COLLATE
SQL_Latin1_General_CP1_CI_AS NULL ,
[paymentPlatforms] [varchar] (3000) COLLATE
SQL_Latin1_General_CP1_CI_AS NULL ,
[matchStatusColor] [varchar] (3000) COLLATE
SQL_Latin1_General_CP1_CI_AS NULL ,
[recordId] [varchar] (3000) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
[dupId] [varchar] (3000) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
) ON [PRIMARY]
GO

Thanks again. I am dying on this one. With everything included
hopefully someone (smarter than me) can figure it out.

Thanks,

Andrew

*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!Might look at the solution Erland gave me...
see subject "Bulk Insert Problems"

HTH

CBL

"Andrew Slentz" <ajslentz@.yahoo.com> wrote in message
news:40cf845e$0$25534$c397aba@.news.newsgroups.ws.. .
> I have tried and tried to get this to work and I'm doing something dumb.
> I'm going to include sample data and my format file. Can someone help
> me figure out my dumb mistake on a bulk insert using a format file?
> Don't worry about data types, I'll handle that later. Thanks a lot!!!
> CSV File:
> ID,NAME,SPEC_ORIGINAL,SPEC,CATEGORY,ADDRESS1,CITY, STATE,ZIP,PHONE,COMPET
> ITOR,PLAN,HARVESTDATE,EIDs,EIDCount,sourceIds,minS core,maxScore,hasContr
> act,matchFilter,matchFilterBGR,matchFilterCAS,matc hFilterMTV,forceMatch,
> forceMatchUserId,paymentPlatforms,matchStatusColor ,recordId,dupId,Networ
> kComparedTo
> 1,name1,Family Practice General Practice,FP,PCP,address1,Deerfield
> Beach,FL,33442,phone1,C1,PPO,5/15/2004,1000067851,2,BADG_0874992,9,14.4,
> Y,Y,Y,Y,Y,0,,3,G,1, ,netcomp1
> 2,name2,Family Practice General
> Practice,FP,PCP,address2,Margate,FL,33063,phone2,C 2,PPO,5/15/2004,100006
> 7851,2,BADG_0874992,9,10,Y,Y,Y,Y,Y,0,,3,G,2, ,netcomp2
> 3,name3,General Practice,GP,PCP,address3,Deerfield
> Beach,FL,33442,phone3,C3,PPO,5/15/2004,1000067851,2,BADG_0874992(14.4
> Y)|BADG_1901859,9,14.4,Y,Y,Y,Y,Y,0,,3,G,3, ,netcomp3
> 4,name4,Reproductive
> Endocrinology,OBEN,OB,address4,Davie,FL,33328,phon e4,C4,PPO,5/15/2004,10
> 00083687,1,CAS_650410436,10.3,10.3,Y,N,N,N,N,0,,0, Y,4, ,netcomp4
>
> Format File:
> 8.0
> 31
> 1 SQLCHAR 0 1 "\r\n" 0 quote Latin1_General_CI_AS
> 2 SQLCHAR 0 3000 "," 1 Provider_Raw_ID Latin1_General_CI_AS
> 3 SQLCHAR 0 3000 "," 0 none_name Latin1_General_CI_AS
> 4 SQLCHAR 0 3000 "," 0 none_Spec_orig Latin1_General_CI_AS
> 5 SQLCHAR 0 3000 "," 3 SpecialtyCode Latin1_General_CI_AS
> 6 SQLCHAR 0 3000 "," 2 Category Latin1_General_CI_AS
> 7 SQLCHAR 0 3000 "," 0 none_Address Latin1_General_CI_AS
> 8 SQLCHAR 0 3000 "," 0 none_City Latin1_General_CI_AS
> 9 SQLCHAR 0 3000 "," 0 none_State Latin1_General_CI_AS
> 10 SQLCHAR 0 3000 "," 0 none_Zip Latin1_General_CI_AS
> 11 SQLCHAR 0 3000 "," 0 none_Phone Latin1_General_CI_AS
> 12 SQLCHAR 0 3000 "," 0 none_Competitor Latin1_General_CI_AS
> 13 SQLCHAR 0 3000 "," 0 none_Plan Latin1_General_CI_AS
> 14 SQLCHAR 0 3000 "," 0 none_HarvestDate Latin1_General_CI_AS
> 15 SQLCHAR 0 3000 "," 0 none_EIDs Latin1_General_CI_AS
> 16 SQLCHAR 0 3000 "," 5 EIDCount Latin1_General_CI_AS
> 17 SQLCHAR 0 3000 "," 0 SourceIds Latin1_General_CI_AS
> 18 SQLCHAR 0 3000 "," 6 minScore Latin1_General_CI_AS
> 19 SQLCHAR 0 3000 "," 7 maxScore Latin1_General_CI_AS
> 20 SQLCHAR 0 3000 "," 8 hasContract Latin1_General_CI_AS
> 21 SQLCHAR 0 3000 "," 9 matchFilter Latin1_General_CI_AS
> 22 SQLCHAR 0 3000 "," 10 matchFilterBGR Latin1_General_CI_AS
> 23 SQLCHAR 0 3000 "," 11 matchFilterCAS Latin1_General_CI_AS
> 24 SQLCHAR 0 3000 "," 12 matchFilterMTV Latin1_General_CI_AS
> 25 SQLCHAR 0 3000 "," 13 forceMatch Latin1_General_CI_AS
> 26 SQLCHAR 0 3000 "," 14 forceMatchUserId Latin1_General_CI_AS
> 27 SQLCHAR 0 3000 "," 15 paymentPlatforms Latin1_General_CI_AS
> 28 SQLCHAR 0 3000 "," 16 matchStatusColor Latin1_General_CI_AS
> 29 SQLCHAR 0 3000 "," 17 recordId Latin1_General_CI_AS
> 30 SQLCHAR 0 3000 "," 18 dupId Latin1_General_CI_AS
> 31 SQLCHAR 0 3000 "," 4 NetworkComparedTo Latin1_General_CI_AS
> Here's a script for the table!
> if exists (select * from dbo.sysobjects where id =
> object_id(N'[dbo].[Provider_Results]') and OBJECTPROPERTY(id,
> N'IsUserTable') = 1)
> drop table [dbo].[Provider_Results]
> GO
> CREATE TABLE [dbo].[Provider_Results] (
> [Provider_Raw_ID] [varchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS
> NULL ,
> [Category] [varchar] (3000) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
> [SpecialtyCode] [varchar] (3000) COLLATE SQL_Latin1_General_CP1_CI_AS
> NULL ,
> [NetworkComparedTo] [varchar] (3000) COLLATE
> SQL_Latin1_General_CP1_CI_AS NULL ,
> [EIDCount] [varchar] (3000) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
> [minScore] [varchar] (3000) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
> [maxScore] [varchar] (3000) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
> [hasContract] [varchar] (3000) COLLATE SQL_Latin1_General_CP1_CI_AS
> NULL ,
> [matchFilter] [varchar] (3000) COLLATE SQL_Latin1_General_CP1_CI_AS
> NULL ,
> [matchFilterBGR] [varchar] (3000) COLLATE SQL_Latin1_General_CP1_CI_AS
> NULL ,
> [matchFilterCAS] [varchar] (3000) COLLATE SQL_Latin1_General_CP1_CI_AS
> NULL ,
> [matchFilterMTV] [varchar] (3000) COLLATE SQL_Latin1_General_CP1_CI_AS
> NULL ,
> [forceMatch] [varchar] (3000) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
> ,
> [forceMatchUserId] [varchar] (3000) COLLATE
> SQL_Latin1_General_CP1_CI_AS NULL ,
> [paymentPlatforms] [varchar] (3000) COLLATE
> SQL_Latin1_General_CP1_CI_AS NULL ,
> [matchStatusColor] [varchar] (3000) COLLATE
> SQL_Latin1_General_CP1_CI_AS NULL ,
> [recordId] [varchar] (3000) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
> [dupId] [varchar] (3000) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
> ) ON [PRIMARY]
> GO
> Thanks again. I am dying on this one. With everything included
> hopefully someone (smarter than me) can figure it out.
> Thanks,
> Andrew
>
> *** Sent via Devdex http://www.devdex.com ***
> Don't just participate in USENET...get rewarded for it!|||Might look at the solution Erland gave me...
see subject "Bulk Insert Problems"

HTH

CBL

"Andrew Slentz" <ajslentz@.yahoo.com> wrote in message
news:40cf845e$0$25534$c397aba@.news.newsgroups.ws.. .
> I have tried and tried to get this to work and I'm doing something dumb.
> I'm going to include sample data and my format file. Can someone help
> me figure out my dumb mistake on a bulk insert using a format file?
> Don't worry about data types, I'll handle that later. Thanks a lot!!!
> CSV File:
> ID,NAME,SPEC_ORIGINAL,SPEC,CATEGORY,ADDRESS1,CITY, STATE,ZIP,PHONE,COMPET
> ITOR,PLAN,HARVESTDATE,EIDs,EIDCount,sourceIds,minS core,maxScore,hasContr
> act,matchFilter,matchFilterBGR,matchFilterCAS,matc hFilterMTV,forceMatch,
> forceMatchUserId,paymentPlatforms,matchStatusColor ,recordId,dupId,Networ
> kComparedTo
> 1,name1,Family Practice General Practice,FP,PCP,address1,Deerfield
> Beach,FL,33442,phone1,C1,PPO,5/15/2004,1000067851,2,BADG_0874992,9,14.4,
> Y,Y,Y,Y,Y,0,,3,G,1, ,netcomp1
> 2,name2,Family Practice General
> Practice,FP,PCP,address2,Margate,FL,33063,phone2,C 2,PPO,5/15/2004,100006
> 7851,2,BADG_0874992,9,10,Y,Y,Y,Y,Y,0,,3,G,2, ,netcomp2
> 3,name3,General Practice,GP,PCP,address3,Deerfield
> Beach,FL,33442,phone3,C3,PPO,5/15/2004,1000067851,2,BADG_0874992(14.4
> Y)|BADG_1901859,9,14.4,Y,Y,Y,Y,Y,0,,3,G,3, ,netcomp3
> 4,name4,Reproductive
> Endocrinology,OBEN,OB,address4,Davie,FL,33328,phon e4,C4,PPO,5/15/2004,10
> 00083687,1,CAS_650410436,10.3,10.3,Y,N,N,N,N,0,,0, Y,4, ,netcomp4
>
> Format File:
> 8.0
> 31
> 1 SQLCHAR 0 1 "\r\n" 0 quote Latin1_General_CI_AS
> 2 SQLCHAR 0 3000 "," 1 Provider_Raw_ID Latin1_General_CI_AS
> 3 SQLCHAR 0 3000 "," 0 none_name Latin1_General_CI_AS
> 4 SQLCHAR 0 3000 "," 0 none_Spec_orig Latin1_General_CI_AS
> 5 SQLCHAR 0 3000 "," 3 SpecialtyCode Latin1_General_CI_AS
> 6 SQLCHAR 0 3000 "," 2 Category Latin1_General_CI_AS
> 7 SQLCHAR 0 3000 "," 0 none_Address Latin1_General_CI_AS
> 8 SQLCHAR 0 3000 "," 0 none_City Latin1_General_CI_AS
> 9 SQLCHAR 0 3000 "," 0 none_State Latin1_General_CI_AS
> 10 SQLCHAR 0 3000 "," 0 none_Zip Latin1_General_CI_AS
> 11 SQLCHAR 0 3000 "," 0 none_Phone Latin1_General_CI_AS
> 12 SQLCHAR 0 3000 "," 0 none_Competitor Latin1_General_CI_AS
> 13 SQLCHAR 0 3000 "," 0 none_Plan Latin1_General_CI_AS
> 14 SQLCHAR 0 3000 "," 0 none_HarvestDate Latin1_General_CI_AS
> 15 SQLCHAR 0 3000 "," 0 none_EIDs Latin1_General_CI_AS
> 16 SQLCHAR 0 3000 "," 5 EIDCount Latin1_General_CI_AS
> 17 SQLCHAR 0 3000 "," 0 SourceIds Latin1_General_CI_AS
> 18 SQLCHAR 0 3000 "," 6 minScore Latin1_General_CI_AS
> 19 SQLCHAR 0 3000 "," 7 maxScore Latin1_General_CI_AS
> 20 SQLCHAR 0 3000 "," 8 hasContract Latin1_General_CI_AS
> 21 SQLCHAR 0 3000 "," 9 matchFilter Latin1_General_CI_AS
> 22 SQLCHAR 0 3000 "," 10 matchFilterBGR Latin1_General_CI_AS
> 23 SQLCHAR 0 3000 "," 11 matchFilterCAS Latin1_General_CI_AS
> 24 SQLCHAR 0 3000 "," 12 matchFilterMTV Latin1_General_CI_AS
> 25 SQLCHAR 0 3000 "," 13 forceMatch Latin1_General_CI_AS
> 26 SQLCHAR 0 3000 "," 14 forceMatchUserId Latin1_General_CI_AS
> 27 SQLCHAR 0 3000 "," 15 paymentPlatforms Latin1_General_CI_AS
> 28 SQLCHAR 0 3000 "," 16 matchStatusColor Latin1_General_CI_AS
> 29 SQLCHAR 0 3000 "," 17 recordId Latin1_General_CI_AS
> 30 SQLCHAR 0 3000 "," 18 dupId Latin1_General_CI_AS
> 31 SQLCHAR 0 3000 "," 4 NetworkComparedTo Latin1_General_CI_AS
> Here's a script for the table!
> if exists (select * from dbo.sysobjects where id =
> object_id(N'[dbo].[Provider_Results]') and OBJECTPROPERTY(id,
> N'IsUserTable') = 1)
> drop table [dbo].[Provider_Results]
> GO
> CREATE TABLE [dbo].[Provider_Results] (
> [Provider_Raw_ID] [varchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS
> NULL ,
> [Category] [varchar] (3000) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
> [SpecialtyCode] [varchar] (3000) COLLATE SQL_Latin1_General_CP1_CI_AS
> NULL ,
> [NetworkComparedTo] [varchar] (3000) COLLATE
> SQL_Latin1_General_CP1_CI_AS NULL ,
> [EIDCount] [varchar] (3000) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
> [minScore] [varchar] (3000) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
> [maxScore] [varchar] (3000) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
> [hasContract] [varchar] (3000) COLLATE SQL_Latin1_General_CP1_CI_AS
> NULL ,
> [matchFilter] [varchar] (3000) COLLATE SQL_Latin1_General_CP1_CI_AS
> NULL ,
> [matchFilterBGR] [varchar] (3000) COLLATE SQL_Latin1_General_CP1_CI_AS
> NULL ,
> [matchFilterCAS] [varchar] (3000) COLLATE SQL_Latin1_General_CP1_CI_AS
> NULL ,
> [matchFilterMTV] [varchar] (3000) COLLATE SQL_Latin1_General_CP1_CI_AS
> NULL ,
> [forceMatch] [varchar] (3000) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
> ,
> [forceMatchUserId] [varchar] (3000) COLLATE
> SQL_Latin1_General_CP1_CI_AS NULL ,
> [paymentPlatforms] [varchar] (3000) COLLATE
> SQL_Latin1_General_CP1_CI_AS NULL ,
> [matchStatusColor] [varchar] (3000) COLLATE
> SQL_Latin1_General_CP1_CI_AS NULL ,
> [recordId] [varchar] (3000) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
> [dupId] [varchar] (3000) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
> ) ON [PRIMARY]
> GO
> Thanks again. I am dying on this one. With everything included
> hopefully someone (smarter than me) can figure it out.
> Thanks,
> Andrew
>
> *** Sent via Devdex http://www.devdex.com ***
> Don't just participate in USENET...get rewarded for it!

I downloaded and installed SQLEXPR_ADV.EXE

This file is 240 Megabytes. What am I supposed to see on the start
menu after this is installed?
Is there a tool in here with which I can create a database?
in florida,
IanODepends on what you want to do. Go back to the download page:
http://msdn.microsoft.com/vstudio/express/sql/download/
and either download the Toolkit if you want the complete set of tools or
management studio Express if you just want to manage the relational database
part.
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
"iano" <IanONet@.gmail.com> wrote in message
news:1151882090.532700.166560@.75g2000cwc.googlegroups.com...
> This file is 240 Megabytes. What am I supposed to see on the start
> menu after this is installed?
> Is there a tool in here with which I can create a database?
> in florida,
> IanO
>

Wednesday, March 28, 2012

I don't suppose BULK UPDATE exists?... like BULK INSERT?

I have to update a field within a table of 60 records or so. Each record has a different field value. it's type varchar. i was given an excel file with the field values and was thinking of a bulk update like bulk insert, but i don't recall that it's possible that way.

Is the only way to create a table, bulk insert, then merge the two tables together with UPDATE?

Just wanted to see if there was an easier way to do it, otherwise i'll take the latter route. Thanks!

You'll need to bulk insert into a work table, then do the update.

Unfortunately (or maybe, fortunately ) there's not Bulk Update.

Or, you could do the processing with SSIS....

I don't remember my MSDE username

Hi,
I have my SAPWD="8letters" in setup file, but a can't do anything with
Command Prompt because my login name doesn't work. How can I find it, or
reset it ?
Regards,
J.Alberto
[ccs-ve]
Nota: no enviar mensajes a mi direccion e-mail,
solo spam. Avisar para asignarle un filtro y no sea
eliminado.
IF you forgot your SQL Server account PW, then try to login using Windows
Authentication.
"J.A." <josealbertoplus-nntp@.yahoo.com> wrote in message
news:Or7m8bMBFHA.2428@.TK2MSFTNGP14.phx.gbl...
> Hi,
> I have my SAPWD="8letters" in setup file, but a can't do anything with
> Command Prompt because my login name doesn't work. How can I find it, or
> reset it ?
>
> Regards,
> --
> J.Alberto
> [ccs-ve]
> Nota: no enviar mensajes a mi direccion e-mail,
> solo spam. Avisar para asignarle un filtro y no sea
> eliminado.
>
sql

I dont know How can i upload my sqlserver file to the server

I don't know How can i upload my sqlserver file to the server
could you help me?
could you write an example code in query analyser for
uploading sql server file to databaseDo you have access to the SQL Server on the server? That is, can you connect to the server from the machine with your SQL Server? If so, you can use DTS (in internet explorer, right click on the database and select Import (or export, depending upon the database you right click on).

Monday, March 26, 2012

i cant understand how to perform file attachment to SQL2000

Hi!

i can't understand how to perform file attachment to SQL2000:

<connectionStrings>
<add name="SimpleListsConnectionString" connectionString="Data Source=local;AttachDbFilename=SimpleLists.mdf;Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"/>
</connectionStrings>

Server return error:

error 602: could not find row in sysindexes for database

run dbcc checktable on sysindexes

Can any body help?

Sorry its my mistake.

Remove question.

i cant set directory for backup database.

after selecting the presetted directory .. i clicked ok and they said this," The file name specified is recongnized as a directory name. The file won't be able to be rewritten. Would you like to continue? "

then i clicked " Yes " .. - nothing happened ..
then i clicked " Yes " .. - nothing happened again ..
now i click ok again to close the "restore database" icon .. and they give me this.. i attached a screenshot .. pls have a look ..

i tried clicking "Manage Attachments" somewhere at the bottom of the page to upload .. but ragezone gave me a page telling me that they are sorry for any inconvenience caused .. so i cant attach it .. here is a link .. its kinda small .. but it says:

"Cannot open backup device 'C:\Program Files\Microsoft SQL Server\MSSQL\BACKUP\'. Device error or device off-line. See SQL Server error log files for more details. RESTORE DATABASE is terminating abnormally."

thank you for helping me .. thanks in advance ..
http://img.photobucket.com/albums/v81/xiaoboy/error.bmp
http://img.photobucket.com/albums/v...oy/untitled.bmp

PLEAS PLEASE HELP ..It seems that you only selected the directory, but you also have to specify a file name after the directory.|||ok .

which means i have to create another folder inside the last directory ? ..

can that folder be a notepad or what ?? ..|||no, you don't need a new folder, you need a filename. For example the complete path would be "e:\data\database\full_backup.bak", where "e:\data\database" would be your directory and "full_backup.bak" your filename.|||ookay ..

my default directory was "C:\Program Files\Microsoft SQL Server\MSSQL\BACKUP"

inside "BACKUP" is NOTHING .. so what do i add into the directory now ? ..

i tried putting this .
"C:\Program Files\Microsoft SQL Server\MSSQL\BACKUP\full_backup.bak"
where "full_backup.bak" is actually not in my "BACKUP" folder ..
the same error appeared ..

please help me .. and thanks in advance .|||ookay ..

my default directory was "C:\Program Files\Microsoft SQL Server\MSSQL\BACKUP"

inside "BACKUP" is NOTHING .. so what do i add into the directory now ? ..

i tried putting this .
"C:\Program Files\Microsoft SQL Server\MSSQL\BACKUP\full_backup.bak"
where "full_backup.bak" is actually not in my "BACKUP" folder ..
the same error appeared ..

"Cannot open backup device 'C:\Program Files\Microsoft SQL Server\MSSQL\BACKUP\full_backup.bak'. Device error or device off-line. See SQL Server error log files for more details. RESTORE DATABASE is terminating abnormally."

please help me .. and thanks in advance .|||can you create a new print screen, but make sure that the error message is at the bottom of the page, so I can see what's behind it. Also if possible, a can you make it somewhat bigger?|||http://img24.exs.cx/my.php?loc=img24&image=bd5.jpg

is this ok ?|||ok, so if I look at your screen dump, I can see that you have a "." (.full_backup.bak) before the file name. Can you remove this and try again.|||Hey buddy the image is very very small and we could hardly see anything on it. Pls increase the size of the image.|||jora .. i removed that "." behind 'full_backup.bak' already ..

here is ther result again . http://img88.exs.cx/my.php?loc=img88&image=bd8.jpg

thx for helping .|||you are now mixing up two things. First you have to create a backup by specifying a filename before you can restore it.
This image is a screen during restore of the database. I presume now that you already have a backup. You have to know where it is and select it. If you only used default settings, it should be in the "C:\Program Files\Microsoft SQL Server\MSSQL\BACKUP". If there is no file there, your backup did not succeed.|||okay .. this time i changed back to the default already ..

well it came out like this ..
http://img93.exs.cx/my.php?loc=img93&image=bd3.jpg|||what happens if click on the three dots after the directory? This directory should contain the file of the backup. If not, then either your backup is somewhere else and you have to browse to it or your backup did not succeed in which case you can't restore the database.
So the first thing you have to do now is either to locate your backup or to create a backup.|||then i shall choose to create a backup ..

ok .. can i just find a place and create (right click, and new folder) and name it backup??|||sure, you can choose and create your own folder structure (just remember where you put it :D ). Also make sure you type a file name after the directory name.
When you are ready, you can try to restore the database by navigating to your file.|||ok thanks jora ..

can i add u on msn ? .. so in case another thing happenes i can ask u ..sql

Friday, March 23, 2012

I cant restore a SQL7 Database to a New SQL2000 Server

I assume that you were given a database backup file. Then the instructions y
ou were given are
incorrect or at least confusing.
Do not create the database first, will only mess for you. You can delete you
r current database.
Then just create the backup device and do the restore. The database is creat
ed along with the
restore process.
Tibor Karaszi, SQL Server MVP
Archive at: http://groups.google.com/groups?oi=...ls
erver
"Chris Coates" <ccoates@.gfs.com> wrote in message news:eAdEGRB5DHA.2760@.TK2MSFTNGP09.phx.gbl...[QU
OTE]
> I am replacing an old SQL7 Server with a new server that runs SQL 2000. I
> was given directions on how to do this and was told to restore the SQL7
> databases to the new server.
> In order to do this I created an empty database with the same name on the
> new server, created a backup device and ran a backup of the empty database
.
> I testes a restore of the empty database and it worked fine. I then replac
ed
> the empty database .BAK file with the latest .BAK database backup of the
> original database and attempted a restore.
> I get the following error.
>
>
> The SQL Error Log shows the following message:
> Bypassing recovery for database 'Continuum' because it is marked IN LOAD.
>
> What am I doing wrong?
>
> Thanks for your help.
>
> ccoates
>
>[/QUOTE]Also, unless you are going to restore additional transaction log backups,
make sure you check the option that says "Leave Database Operational. No
additional transaction log backups can be restored". That is on the Options
tab of Restore database.
You can restore over an existing database so long as no one is using it |
you check force restore over existing database on the options tab | and make
sure the destination file locations are correct.
****************************************
***************************
Andy S.
MCSE NT/2000, MCDBA SQL 7/2000
andymcdba1@.NOMORESPAM.yahoo.com
Please remove NOMORESPAM before replying.
Always keep your antivirus and Microsoft software
up to date with the latest definitions and product updates.
Be suspicious of every email attachment, I will never send
or post anything other than the text of a http:// link nor
post the link directly to a file for downloading.
This posting is provided "as is" with no warranties
and confers no rights.
****************************************
***************************
"Chris Coates" <ccoates@.gfs.com> wrote in message
news:eAdEGRB5DHA.2760@.TK2MSFTNGP09.phx.gbl...
quote:

> I am replacing an old SQL7 Server with a new server that runs SQL 2000. I
> was given directions on how to do this and was told to restore the SQL7
> databases to the new server.
> In order to do this I created an empty database with the same name on the
> new server, created a backup device and ran a backup of the empty

database.
quote:

> I testes a restore of the empty database and it worked fine. I then

replaced
quote:

> the empty database .BAK file with the latest .BAK database backup of the
> original database and attempted a restore.
> I get the following error.
>
>
> The SQL Error Log shows the following message:
> Bypassing recovery for database 'Continuum' because it is marked IN LOAD.
>
> What am I doing wrong?
>
> Thanks for your help.
>
> ccoates
>
>
|||Hi,
Add on to Tibers post, perform these steps
1. Copy the SQL 7 backup to D:\mssql\backup\dbname.bak
2. Execute the below command from Query analyzer
Restore filelistonly from disk='D:\mssql\backup\dbname.bak'
The above command will give you the details of Logical name and Physical
name
3. Create a folder in D drive (D:\mssql\data) where your .MDF and .LDF
resides
5. Execute the below command from Query Analyzer
restore database dbname from disk='D:\mssql\backup\dbname.bak' with
move 'logical_dataname' to 'd:\mssql\data\dbname.mdf',
move 'logical_logname' to 'd:\mssql\data\dbname.ldf',stats=10
The logical_dataname and Logical_logname should be taken based on the output
of Restore filelistonly command (Step 2)
6.Create your logins , similar to SQL 7
Thanks
Hari
MCDBA
"Tibor Karaszi" <tibor_please.no.email_karaszi@.hotmail.nomail.com> wrote in
message news:e3zY5UB5DHA.2656@.TK2MSFTNGP11.phx.gbl...
quote:

> I assume that you were given a database backup file. Then the instructions

you were given are
quote:

> incorrect or at least confusing.
> Do not create the database first, will only mess for you. You can delete

your current database.
quote:

> Then just create the backup device and do the restore. The database is

created along with the
quote:

> restore process.
> --
> Tibor Karaszi, SQL Server MVP
> Archive at:

http://groups.google.com/groups?oi=...ublic.sqlserver
quote:

>
> "Chris Coates" <ccoates@.gfs.com> wrote in message

news:eAdEGRB5DHA.2760@.TK2MSFTNGP09.phx.gbl...
quote:

I[QUOTE]
the[QUOTE]
database.[QUOTE]
replaced[QUOTE]
LOAD.[QUOTE]
>
|||Hi Chris,
Thank you for using MSDN Newsgroup! It's my pleasure to assist you with
your issue.
From you information provided, you encouter a error message 'Bypassing
recovery for database 'Continuum' because it is marked IN LOAD.' when you
were restoring a backup file which is from SQL 7 to SQL 2000, right?
Thanks to our MVP and other community members' replies. It is not necessary
to create a new database in backup and restore process and they have
provide the proper steps for backup and restore. Here I just want to add
something more that when restoring backup sets from an earlier version of
SQL Server, a database upgrade may be required. This upgrade is performed
automatically when WITH RECOVERY is specified. That is:
restore database database_name from disk='you_back.bak' with recovery
Hope this helps. If you still have questions about it, please feel free to
post new message here and I am ready to help!
Best regards
Baisong Wei
Microsoft Online Support
----
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
Please reply to newsgroups only. Thanks.sql

I can't import XML into SQL with Bulk Load

Hi,
I can′t import a XML file into SQL Server with a XDR mapping schema
specifying relationships.
The Error is:
"Schema: missing mapping foreign-ralation on BoletoConta
Code 80004005
Source: schema mapping "
What is wrong?
***********************************
This is a complete script.
CREATE TABLE Boleto (
IdBoleto int NOT NULL ,
Numero varchar (50) ,
TipoBoletoId varchar (50) ,
) ON PRIMARY
GO
CREATE TABLE dbo.BoletoConta (
ContaId int NULL ,
Referencia varchar (50) ,
Valor varchar (50) ,
)
GO
This is the mapping schema file (XDR).
<?xml version="1.0" ?>
<Schema xmlns="urn:schemas-microsoft-com:xml-data"
xmlns:dt="urn:schemas-microsoft-com:xml:datatypes"
xmlns:sql="urn:schemas-microsoft-com:xml-sql">
<ElementType name="Id" content="textonly" />
<ElementType name="Numero" content="textonly" />
<ElementType name="TipoBoletoId" content="textonly" />
<ElementType name="Root" sql:is-constant="1">
<element type="Boleto" />
</ElementType>
<ElementType name="Boleto" sql:relation="Boleto">
<element type="Id" sql:field="IdBoleto" />
<element type="Numero" />
<element type="TipoBoletoId" />
<element type="BoletoConta">
<sql:relationship key-relation="Boleto" key="IdBoleto"
foreing-relation="BoletoConta" foreing-key="IdBoleto" />
</element>
</ElementType>
<ElementType name="BoletoConta" sql:relation="BoletoConta">
<AttributeType name="ContaId" />
<AttributeType name="Referencia" />
<AttributeType name="Valor" />
<attribute type="ContaId" sql:field="ContaId" />
<attribute type="Referencia" sql:field="Referencia" />
<attribute type="Valor" sql:field="Valor" />
</ElementType>
</Schema>
This is a listing of the XML document specified.
<?xml version="1.0" encoding="ISO-8859-1" ?>
<Root>
<Boleto Id="369" Numero="0000000000369" TipoBoletoId="5" >
<BoletoConta ContaId="5" Referencia="01/07/1990" Valor="0.08" />
</Boleto>
<Boleto Id="89627" Numero="0000000089627" TipoBoletoId="5" >
<BoletoConta ContaId="14" Referencia="01/11/2001" Valor="40.55" />
<BoletoConta ContaId="15" Referencia="01/11/2001" Valor="203.10" />
<BoletoConta ContaId="41" Referencia="01/11/2001" Valor="4112.37" />
<BoletoConta ContaId="42" Referencia="01/11/2001" Valor="0.59" />
</Boleto>
<Boleto Id="89628" Numero="0000000089628" TipoBoletoId="5" >
<BoletoConta ContaId="14" Referencia="01/12/2001" Valor="219.56" />
<BoletoConta ContaId="15" Referencia="01/12/2001" Valor="202.80" />
<BoletoConta ContaId="41" Referencia="01/12/2001" Valor="3830.85" />
<BoletoConta ContaId="42" Referencia="01/12/2001" Valor="6.20" />
</Boleto>
</Root>
This is a script to import to SQL-SERVER 2000
Set objBL = CreateObject("SQLXMLBulkLoad.SQLXMLBulkLoad")
objBL.ConnectionString = "provider=SQLOLEDB.1;data
source=(local);database=mydb;uid=sa;pwd=
xxx"
objBL.ErrorLogFile = "c:\inetpub\wwwroot\xml\error.log"
objBL.Transaction=true
objBL.Execute "c:\mapa.xml", "c:\dados.xml"
Set objBL = Nothing
Eduardo MaggiI' sorry.
I have found the problem, the sintax "foreing" was wrong the correct is
"foreign".
Don't consider this message.
Eduardo Maggi
"EduardoMaggi" wrote:

> Hi,
> I can′t import a XML file into SQL Server with a XDR mapping schema
> specifying relationships.
> The Error is:
> "Schema: missing mapping foreign-ralation on BoletoConta
> Code 80004005
> Source: schema mapping "
> What is wrong?
> ***********************************
> This is a complete script.
> CREATE TABLE Boleto (
> IdBoleto int NOT NULL ,
> Numero varchar (50) ,
> TipoBoletoId varchar (50) ,
> ) ON PRIMARY
> GO
> CREATE TABLE dbo.BoletoConta (
> ContaId int NULL ,
> Referencia varchar (50) ,
> Valor varchar (50) ,
> )
> GO
> This is the mapping schema file (XDR).
> <?xml version="1.0" ?>
> <Schema xmlns="urn:schemas-microsoft-com:xml-data"
> xmlns:dt="urn:schemas-microsoft-com:xml:datatypes"
> xmlns:sql="urn:schemas-microsoft-com:xml-sql">
> <ElementType name="Id" content="textonly" />
> <ElementType name="Numero" content="textonly" />
> <ElementType name="TipoBoletoId" content="textonly" />
> <ElementType name="Root" sql:is-constant="1">
> <element type="Boleto" />
> </ElementType>
> <ElementType name="Boleto" sql:relation="Boleto">
> <element type="Id" sql:field="IdBoleto" />
> <element type="Numero" />
> <element type="TipoBoletoId" />
> <element type="BoletoConta">
> <sql:relationship key-relation="Boleto" key="IdBoleto"
> foreing-relation="BoletoConta" foreing-key="IdBoleto" />
> </element>
> </ElementType>
> <ElementType name="BoletoConta" sql:relation="BoletoConta">
> <AttributeType name="ContaId" />
> <AttributeType name="Referencia" />
> <AttributeType name="Valor" />
> <attribute type="ContaId" sql:field="ContaId" />
> <attribute type="Referencia" sql:field="Referencia" />
> <attribute type="Valor" sql:field="Valor" />
> </ElementType>
> </Schema>
>
> This is a listing of the XML document specified.
>
> <?xml version="1.0" encoding="ISO-8859-1" ?>
> <Root>
> <Boleto Id="369" Numero="0000000000369" TipoBoletoId="5" >
> <BoletoConta ContaId="5" Referencia="01/07/1990" Valor="0.08" />
> </Boleto>
> <Boleto Id="89627" Numero="0000000089627" TipoBoletoId="5" >
> <BoletoConta ContaId="14" Referencia="01/11/2001" Valor="40.55" />
> <BoletoConta ContaId="15" Referencia="01/11/2001" Valor="203.10" />
> <BoletoConta ContaId="41" Referencia="01/11/2001" Valor="4112.37" />
> <BoletoConta ContaId="42" Referencia="01/11/2001" Valor="0.59" />
> </Boleto>
> <Boleto Id="89628" Numero="0000000089628" TipoBoletoId="5" >
> <BoletoConta ContaId="14" Referencia="01/12/2001" Valor="219.56" />
> <BoletoConta ContaId="15" Referencia="01/12/2001" Valor="202.80" />
> <BoletoConta ContaId="41" Referencia="01/12/2001" Valor="3830.85" />
> <BoletoConta ContaId="42" Referencia="01/12/2001" Valor="6.20" />
> </Boleto>
> </Root>
> This is a script to import to SQL-SERVER 2000
> Set objBL = CreateObject("SQLXMLBulkLoad.SQLXMLBulkLoad")
> objBL.ConnectionString = "provider=SQLOLEDB.1;data
> source=(local);database=mydb;uid=sa;pwd=
xxx"
> objBL.ErrorLogFile = "c:\inetpub\wwwroot\xml\error.log"
> objBL.Transaction=true
> objBL.Execute "c:\mapa.xml", "c:\dados.xml"
> Set objBL = Nothing
>
>
>
> --
> Eduardo Maggi

I can't import XML into SQL with Bulk Load

Hi,
I can′t import a XML file into SQL Server with a XDR mapping schema
specifying relationships.
The Error is:
"Schema: missing mapping foreign-ralation on BoletoConta
Code 80004005
Source: schema mapping "
What is wrong?
***********************************
This is a complete script.
CREATE TABLE Boleto (
IdBoleto int NOT NULL ,
Numero varchar (50) ,
TipoBoletoId varchar (50) ,
) ON PRIMARY
GO
CREATE TABLE dbo.BoletoConta (
ContaId int NULL ,
Referencia varchar (50) ,
Valor varchar (50) ,
)
GO
This is the mapping schema file (XDR).
<?xml version="1.0" ?>
<Schema xmlns="urn:schemas-microsoft-com:xml-data"
xmlns:dt="urn:schemas-microsoft-com:xml:datatypes"
xmlns:sql="urn:schemas-microsoft-com:xml-sql">
<ElementType name="Id" content="textonly" />
<ElementType name="Numero" content="textonly" />
<ElementType name="TipoBoletoId" content="textonly" />
<ElementType name="Root" sql:is-constant="1">
<element type="Boleto" />
</ElementType>
<ElementType name="Boleto" sql:relation="Boleto">
<element type="Id" sql:field="IdBoleto" />
<element type="Numero" />
<element type="TipoBoletoId" />
<element type="BoletoConta">
<sql:relationship key-relation="Boleto" key="IdBoleto"
foreing-relation="BoletoConta" foreing-key="IdBoleto" />
</element>
</ElementType>
<ElementType name="BoletoConta" sql:relation="BoletoConta">
<AttributeType name="ContaId" />
<AttributeType name="Referencia" />
<AttributeType name="Valor" />
<attribute type="ContaId" sql:field="ContaId" />
<attribute type="Referencia" sql:field="Referencia" />
<attribute type="Valor" sql:field="Valor" />
</ElementType>
</Schema>
This is a listing of the XML document specified.
<?xml version="1.0" encoding="ISO-8859-1" ?>
<Root>
<Boleto Id="369" Numero="0000000000369" TipoBoletoId="5" >
<BoletoConta ContaId="5" Referencia="01/07/1990" Valor="0.08" />
</Boleto>
<Boleto Id="89627" Numero="0000000089627" TipoBoletoId="5" >
<BoletoConta ContaId="14" Referencia="01/11/2001" Valor="40.55" />
<BoletoConta ContaId="15" Referencia="01/11/2001" Valor="203.10" />
<BoletoConta ContaId="41" Referencia="01/11/2001" Valor="4112.37" />
<BoletoConta ContaId="42" Referencia="01/11/2001" Valor="0.59" />
</Boleto>
<Boleto Id="89628" Numero="0000000089628" TipoBoletoId="5" >
<BoletoConta ContaId="14" Referencia="01/12/2001" Valor="219.56" />
<BoletoConta ContaId="15" Referencia="01/12/2001" Valor="202.80" />
<BoletoConta ContaId="41" Referencia="01/12/2001" Valor="3830.85" />
<BoletoConta ContaId="42" Referencia="01/12/2001" Valor="6.20" />
</Boleto>
</Root>
This is a script to import to SQL-SERVER 2000
Set objBL = CreateObject("SQLXMLBulkLoad.SQLXMLBulkLoad")
objBL.ConnectionString = "provider=SQLOLEDB.1;data
source=(local);database=mydb;uid=sa;pwd=xxx"
objBL.ErrorLogFile = "c:\inetpub\wwwroot\xml\error.log"
objBL.Transaction=true
objBL.Execute "c:\mapa.xml", "c:\dados.xml"
Set objBL = Nothing
Eduardo Maggi
I' sorry.
I have found the problem, the sintax "foreing" was wrong the correct is
"foreign".
Don't consider this message.
Eduardo Maggi
"EduardoMaggi" wrote:

> Hi,
> I can′t import a XML file into SQL Server with a XDR mapping schema
> specifying relationships.
> The Error is:
> "Schema: missing mapping foreign-ralation on BoletoConta
> Code 80004005
> Source: schema mapping "
> What is wrong?
> ***********************************
> This is a complete script.
> CREATE TABLE Boleto (
> IdBoleto int NOT NULL ,
> Numero varchar (50) ,
> TipoBoletoId varchar (50) ,
> ) ON PRIMARY
> GO
> CREATE TABLE dbo.BoletoConta (
> ContaId int NULL ,
> Referencia varchar (50) ,
> Valor varchar (50) ,
> )
> GO
> This is the mapping schema file (XDR).
> <?xml version="1.0" ?>
> <Schema xmlns="urn:schemas-microsoft-com:xml-data"
> xmlns:dt="urn:schemas-microsoft-com:xml:datatypes"
> xmlns:sql="urn:schemas-microsoft-com:xml-sql">
> <ElementType name="Id" content="textonly" />
> <ElementType name="Numero" content="textonly" />
> <ElementType name="TipoBoletoId" content="textonly" />
> <ElementType name="Root" sql:is-constant="1">
> <element type="Boleto" />
> </ElementType>
> <ElementType name="Boleto" sql:relation="Boleto">
> <element type="Id" sql:field="IdBoleto" />
> <element type="Numero" />
> <element type="TipoBoletoId" />
> <element type="BoletoConta">
> <sql:relationship key-relation="Boleto" key="IdBoleto"
> foreing-relation="BoletoConta" foreing-key="IdBoleto" />
> </element>
> </ElementType>
> <ElementType name="BoletoConta" sql:relation="BoletoConta">
> <AttributeType name="ContaId" />
> <AttributeType name="Referencia" />
> <AttributeType name="Valor" />
> <attribute type="ContaId" sql:field="ContaId" />
> <attribute type="Referencia" sql:field="Referencia" />
> <attribute type="Valor" sql:field="Valor" />
> </ElementType>
> </Schema>
>
> This is a listing of the XML document specified.
>
> <?xml version="1.0" encoding="ISO-8859-1" ?>
> <Root>
> <Boleto Id="369" Numero="0000000000369" TipoBoletoId="5" >
> <BoletoConta ContaId="5" Referencia="01/07/1990" Valor="0.08" />
> </Boleto>
> <Boleto Id="89627" Numero="0000000089627" TipoBoletoId="5" >
> <BoletoConta ContaId="14" Referencia="01/11/2001" Valor="40.55" />
> <BoletoConta ContaId="15" Referencia="01/11/2001" Valor="203.10" />
> <BoletoConta ContaId="41" Referencia="01/11/2001" Valor="4112.37" />
> <BoletoConta ContaId="42" Referencia="01/11/2001" Valor="0.59" />
> </Boleto>
> <Boleto Id="89628" Numero="0000000089628" TipoBoletoId="5" >
> <BoletoConta ContaId="14" Referencia="01/12/2001" Valor="219.56" />
> <BoletoConta ContaId="15" Referencia="01/12/2001" Valor="202.80" />
> <BoletoConta ContaId="41" Referencia="01/12/2001" Valor="3830.85" />
> <BoletoConta ContaId="42" Referencia="01/12/2001" Valor="6.20" />
> </Boleto>
> </Root>
> This is a script to import to SQL-SERVER 2000
> Set objBL = CreateObject("SQLXMLBulkLoad.SQLXMLBulkLoad")
> objBL.ConnectionString = "provider=SQLOLEDB.1;data
> source=(local);database=mydb;uid=sa;pwd=xxx"
> objBL.ErrorLogFile = "c:\inetpub\wwwroot\xml\error.log"
> objBL.Transaction=true
> objBL.Execute "c:\mapa.xml", "c:\dados.xml"
> Set objBL = Nothing
>
>
>
> --
> Eduardo Maggi

Wednesday, March 21, 2012

I cann't uninstall SQL Server , and cann't re-install

While I unistall ,it showmesage "Unable to locate
installation log file 'c:\MSSQL7\Uninst.isu'.
Uninstallation will not continue.
then I try re-install SQL Server 2K , 7.0 , or MSDE , or
personal Edition , they all cann't be intalled .
please help me , thank You.INF: How to Manually Uninstall SQL Server 7.0
http://support.microsoft.com/defaul...kb;en-us;276044
HTH
Jasper Smith (SQL Server MVP)
http://www.sqldbatips.com
I support PASS - the definitive, global
community for SQL Server professionals -
http://www.sqlpass.org
"paul" <anonymous@.discussions.microsoft.com> wrote in message
news:034201c4ef4e$eaea55d0$a501280a@.phx.gbl...
> While I unistall ,it showmesage "Unable to locate
> installation log file 'c:\MSSQL7\Uninst.isu'.
> Uninstallation will not continue.
> then I try re-install SQL Server 2K , 7.0 , or MSDE , or
> personal Edition , they all cann't be intalled .
> please help me , thank You.

I cann't uninstall SQL Server , and cann't re-install

While I unistall ,it showmesage "Unable to locate
installation log file 'c:\MSSQL7\Uninst.isu'.
Uninstallation will not continue.
then I try re-install SQL Server 2K , 7.0 , or MSDE , or
personal Edition , they all cann't be intalled .
please help me , thank You.
INF: How to Manually Uninstall SQL Server 7.0
http://support.microsoft.com/default...b;en-us;276044
HTH
Jasper Smith (SQL Server MVP)
http://www.sqldbatips.com
I support PASS - the definitive, global
community for SQL Server professionals -
http://www.sqlpass.org
"paul" <anonymous@.discussions.microsoft.com> wrote in message
news:034201c4ef4e$eaea55d0$a501280a@.phx.gbl...
> While I unistall ,it showmesage "Unable to locate
> installation log file 'c:\MSSQL7\Uninst.isu'.
> Uninstallation will not continue.
> then I try re-install SQL Server 2K , 7.0 , or MSDE , or
> personal Edition , they all cann't be intalled .
> please help me , thank You.
sql

Monday, March 19, 2012

I can't connect to my local database.mdf file

I have just upgraded to Microsoft SQL Server 2005 Express Edition with Advanced Services SP2.

Now I can't connect to my local database.mdf file.

When trying to open or doubleclick or expand my .mdf file the following message pops up:

Generating user instances in SQL Server is disabled. Use sp_configure 'user instance enabled' to generate user instances.

What is the solution for this problem?

hi,

by default, User Instances feature is disabled when you install a SQLExpress instance.. the Install Wizard provides an option to enable it at install time, but you can enable it via sp_configure execution as

EXEC sp_configure 'show advanced option', '1'; GO EXEC sp_configure 'user instances enabled','1'; GO RECONFIGURE GO EXEC sp_configure 'show advanced option', '0'; GO

(restart the SQLExpress service)

that can be executed both in SqlCmd.exe (command line tool) or in a SQL Server Management Studio Express query window (or even via an ADO/Ado.Net connection)..

you can have a look at all "configurable" options at http://msdn2.microsoft.com/en-us/library/ms189631.aspx

regards

|||

Hi Andrea.

I have entered your code in the query editor and saved it as SQLQuery5.sql.
SQL server is restarted.

I right clicked in the query editor and hit Execute and get the folloving error:

Msg 233, Level 20, State 0, Line 0
A transport-level error has occurred when sending the request to the server. (provider: Shared Memory Provider, error: 0 - No process is on the other end of the pipe.)

The problem is still there?...

|||

Hi again :)

I right clicked in the query editor and hit Execute again after a while. It works now.

Thanks :)

I can't connect to my local database.mdf file

I have just upgraded to Microsoft SQL Server 2005 Express Edition with Advanced Services SP2.

Now I can't connect to my local database.mdf file.

When trying to open or doubleclick or expand my .mdf file the following message pops up:

Generating user instances in SQL Server is disabled. Use sp_configure 'user instance enabled' to generate user instances.

What is the solution for this problem?

hi,

by default, User Instances feature is disabled when you install a SQLExpress instance.. the Install Wizard provides an option to enable it at install time, but you can enable it via sp_configure execution as

EXEC sp_configure 'show advanced option', '1'; GO EXEC sp_configure 'user instances enabled','1'; GO RECONFIGURE GO EXEC sp_configure 'show advanced option', '0'; GO

(restart the SQLExpress service)

that can be executed both in SqlCmd.exe (command line tool) or in a SQL Server Management Studio Express query window (or even via an ADO/Ado.Net connection)..

you can have a look at all "configurable" options at http://msdn2.microsoft.com/en-us/library/ms189631.aspx

regards

|||

Hi Andrea.

I have entered your code in the query editor and saved it as SQLQuery5.sql.
SQL server is restarted.

I right clicked in the query editor and hit Execute and get the folloving error:

Msg 233, Level 20, State 0, Line 0
A transport-level error has occurred when sending the request to the server. (provider: Shared Memory Provider, error: 0 - No process is on the other end of the pipe.)

The problem is still there?...

|||

Hi again :)

I right clicked in the query editor and hit Execute again after a while. It works now.

Thanks :)

Friday, March 9, 2012

I am getting tempdb full error again

This is the error that I am getting in the error log
The log file for database 'tempdb' is full. Back up the transaction log for the database to free up some log space..
Error: 9002, Severity: 17, State: 6
This is the information of my database server.
exec sp_helpdb tempdb
name,db_size,owner,dbid,created,status,compatibili ty_level
tempdb, 89.06 MB,sa,2,Aug 2 2004,Status=ONLINE,
Updateability=READ_WRITE, UserAccess=MULTI_USER, Recovery=SIMPLE, Version=539, Collation=SQL_Latin1_General_CP1_CI_AS, SQLSortOrder=52, IsAutoCreateStatistics, IsAutoUpdateStatistics,80
exec sp_spaceused
name,fileid,filename,filegroup,size,maxsize,growth ,usage
tempdev,1,C:\Program Files\Microsoft SQL Server\MSSQL\data\tempdb.mdf,PRIMARY,90432 KB,Unlimited,10%,data only
templog,2,C:\Program Files\Microsoft SQL Server\MSSQL\data\templog.ldf,,768 KB,Unlimited,10%,log only
database_name,database_size,unallocated space
tempdb,89.06 MB,87.66 MB
reserved,data,index_size,unused
672 KB,184 KB,400 KB,88 KB
exec master..xp_fixeddrives
drive,MB free
C,36715
D,371955
Please help. Where is the issue. I can manually increase the size of the tempdb and so there is no permission issue.
-Nags
Why don't you just make tempdb larger than you need and forget about this issue. You only have it at 89MB and the log at less than a MB. Disk space is way too cheap these days to deal with issues like this. Make it bigger and move on.
Andrew J. Kelly SQL MVP
"Nags" <nags@.DontSpamMe.com> wrote in message news:edPDW$8eEHA.1652@.TK2MSFTNGP09.phx.gbl...
This is the error that I am getting in the error log
The log file for database 'tempdb' is full. Back up the transaction log for the database to free up some log space..
Error: 9002, Severity: 17, State: 6
This is the information of my database server.
exec sp_helpdb tempdb
name,db_size,owner,dbid,created,status,compatibili ty_level
tempdb, 89.06 MB,sa,2,Aug 2 2004,Status=ONLINE,
Updateability=READ_WRITE, UserAccess=MULTI_USER, Recovery=SIMPLE, Version=539, Collation=SQL_Latin1_General_CP1_CI_AS, SQLSortOrder=52, IsAutoCreateStatistics, IsAutoUpdateStatistics,80
exec sp_spaceused
name,fileid,filename,filegroup,size,maxsize,growth ,usage
tempdev,1,C:\Program Files\Microsoft SQL Server\MSSQL\data\tempdb.mdf,PRIMARY,90432 KB,Unlimited,10%,data only
templog,2,C:\Program Files\Microsoft SQL Server\MSSQL\data\templog.ldf,,768 KB,Unlimited,10%,log only
database_name,database_size,unallocated space
tempdb,89.06 MB,87.66 MB
reserved,data,index_size,unused
672 KB,184 KB,400 KB,88 KB
exec master..xp_fixeddrives
drive,MB free
C,36715
D,371955
Please help. Where is the issue. I can manually increase the size of the tempdb and so there is no permission issue.
-Nags
|||Nags,
This probably means that you are holding an open transaction across tempdb and the log is growing and growing and growing. Even though the recovery mode is SIMPLE there is a need for log space during a transaction.
First: It looks like you have plenty of disk space, but have you verified that when the log file is 'full' that there is still free space on the drive? Or is the space indeed used up? If it is, then you have some large transaction running. (You can use DBCC OPENTRAN to report on the oldest open transaction in a database.)
Next: Your tempdb log is 796 KB and growing at 10%. Possibly your log usage is simply increasing faster than the 10% increments can be made and you get a false "log full". Try setting the tempdb log to be 10 MB with a 5MB increment and see if that helps.
Both of these and other possibities are described in:
http://support.microsoft.com/default...b;EN-US;317375
Russell Fields
"Nags" <nags@.DontSpamMe.com> wrote in message news:edPDW$8eEHA.1652@.TK2MSFTNGP09.phx.gbl...
This is the error that I am getting in the error log
The log file for database 'tempdb' is full. Back up the transaction log for the database to free up some log space..
Error: 9002, Severity: 17, State: 6
This is the information of my database server.
exec sp_helpdb tempdb
name,db_size,owner,dbid,created,status,compatibili ty_level
tempdb, 89.06 MB,sa,2,Aug 2 2004,Status=ONLINE,
Updateability=READ_WRITE, UserAccess=MULTI_USER, Recovery=SIMPLE, Version=539, Collation=SQL_Latin1_General_CP1_CI_AS, SQLSortOrder=52, IsAutoCreateStatistics, IsAutoUpdateStatistics,80
exec sp_spaceused
name,fileid,filename,filegroup,size,maxsize,growth ,usage
tempdev,1,C:\Program Files\Microsoft SQL Server\MSSQL\data\tempdb.mdf,PRIMARY,90432 KB,Unlimited,10%,data only
templog,2,C:\Program Files\Microsoft SQL Server\MSSQL\data\templog.ldf,,768 KB,Unlimited,10%,log only
database_name,database_size,unallocated space
tempdb,89.06 MB,87.66 MB
reserved,data,index_size,unused
672 KB,184 KB,400 KB,88 KB
exec master..xp_fixeddrives
drive,MB free
C,36715
D,371955
Please help. Where is the issue. I can manually increase the size of the tempdb and so there is no permission issue.
-Nags
|||Yes, I have verified, and there is about 33 Gig free. DBCC OPENTRAN shows that there are no open transactions.
I did follow your suggestion of having the log for the tempdb to be 10 MB and with a 5 MB increment. Let me see if I am going to get the same error.
More Info : All the databases were moved from an old server to this new server. We have about 20 such servers and almost similar processing being done on all the servers. We never saw such an error. We are getting this only on the new server that we built. That is why I am trying to do further research as we are going to upgrade our production server and I want to be sure that we do not run into such issues there. I am more worried and have a feeling that it might be a configuration issue and I am not sure where to look into.
-Nags
"Russell Fields" <RussellFields@.NoMailPlease.Com> wrote in message news:uXE7O99eEHA.3428@.TK2MSFTNGP11.phx.gbl...
Nags,
This probably means that you are holding an open transaction across tempdb and the log is growing and growing and growing. Even though the recovery mode is SIMPLE there is a need for log space during a transaction.
First: It looks like you have plenty of disk space, but have you verified that when the log file is 'full' that there is still free space on the drive? Or is the space indeed used up? If it is, then you have some large transaction running. (You can use DBCC OPENTRAN to report on the oldest open transaction in a database.)
Next: Your tempdb log is 796 KB and growing at 10%. Possibly your log usage is simply increasing faster than the 10% increments can be made and you get a false "log full". Try setting the tempdb log to be 10 MB with a 5MB increment and see if that helps.
Both of these and other possibities are described in:
http://support.microsoft.com/default...b;EN-US;317375
Russell Fields
"Nags" <nags@.DontSpamMe.com> wrote in message news:edPDW$8eEHA.1652@.TK2MSFTNGP09.phx.gbl...
This is the error that I am getting in the error log
The log file for database 'tempdb' is full. Back up the transaction log for the database to free up some log space..
Error: 9002, Severity: 17, State: 6
This is the information of my database server.
exec sp_helpdb tempdb
name,db_size,owner,dbid,created,status,compatibili ty_level
tempdb, 89.06 MB,sa,2,Aug 2 2004,Status=ONLINE,
Updateability=READ_WRITE, UserAccess=MULTI_USER, Recovery=SIMPLE, Version=539, Collation=SQL_Latin1_General_CP1_CI_AS, SQLSortOrder=52, IsAutoCreateStatistics, IsAutoUpdateStatistics,80
exec sp_spaceused
name,fileid,filename,filegroup,size,maxsize,growth ,usage
tempdev,1,C:\Program Files\Microsoft SQL Server\MSSQL\data\tempdb.mdf,PRIMARY,90432 KB,Unlimited,10%,data only
templog,2,C:\Program Files\Microsoft SQL Server\MSSQL\data\templog.ldf,,768 KB,Unlimited,10%,log only
database_name,database_size,unallocated space
tempdb,89.06 MB,87.66 MB
reserved,data,index_size,unused
672 KB,184 KB,400 KB,88 KB
exec master..xp_fixeddrives
drive,MB free
C,36715
D,371955
Please help. Where is the issue. I can manually increase the size of the tempdb and so there is no permission issue.
-Nags
|||I cannot do that. This is a new server that we built and this could be a configuration issue. We are in the process of upgrading our production server and what if similar problem occurs on production. I can allocate about 2 Gig for temp db and 2 gig for temp log.. and one day a huge load comes on the server (which we are expecting in next few months).. we will get the same error. I cannot afford this on production.
-Nags
"Andrew J. Kelly" <sqlmvpnooospam@.shadhawk.com> wrote in message news:eD$X289eEHA.2028@.tk2msftngp13.phx.gbl...
Why don't you just make tempdb larger than you need and forget about this issue. You only have it at 89MB and the log at less than a MB. Disk space is way too cheap these days to deal with issues like this. Make it bigger and move on.
Andrew J. Kelly SQL MVP
"Nags" <nags@.DontSpamMe.com> wrote in message news:edPDW$8eEHA.1652@.TK2MSFTNGP09.phx.gbl...
This is the error that I am getting in the error log
The log file for database 'tempdb' is full. Back up the transaction log for the database to free up some log space..
Error: 9002, Severity: 17, State: 6
This is the information of my database server.
exec sp_helpdb tempdb
name,db_size,owner,dbid,created,status,compatibili ty_level
tempdb, 89.06 MB,sa,2,Aug 2 2004,Status=ONLINE,
Updateability=READ_WRITE, UserAccess=MULTI_USER, Recovery=SIMPLE, Version=539, Collation=SQL_Latin1_General_CP1_CI_AS, SQLSortOrder=52, IsAutoCreateStatistics, IsAutoUpdateStatistics,80
exec sp_spaceused
name,fileid,filename,filegroup,size,maxsize,growth ,usage
tempdev,1,C:\Program Files\Microsoft SQL Server\MSSQL\data\tempdb.mdf,PRIMARY,90432 KB,Unlimited,10%,data only
templog,2,C:\Program Files\Microsoft SQL Server\MSSQL\data\templog.ldf,,768 KB,Unlimited,10%,log only
database_name,database_size,unallocated space
tempdb,89.06 MB,87.66 MB
reserved,data,index_size,unused
672 KB,184 KB,400 KB,88 KB
exec master..xp_fixeddrives
drive,MB free
C,36715
D,371955
Please help. Where is the issue. I can manually increase the size of the tempdb and so there is no permission issue.
-Nags
|||This error basically comes about when the log needs to autogrow and it can't do it fast enough. There still is no excuse for having the tempdb files that small. Sure this situation may come up at any time regardless of the size if the conditions are wrong but you are putting yourself in a position for this to happen right away. Any time you can do something proactively to avoid an issue you should do it. The other thing is that it sounds like your hardware is not able to keep up with the autogrow request. Growing is a very resource intensive process and if the hardware (CPU, Disks etc) are busy or inadequate you can get this condition. Make sure you don't have high disk or cpu queues. Also make sure the autogrowth size is only at a point where it can keep up with the hardware. By this I mean you don't want to autogrow at 10% if you have a 10GB file and slow disks. Make it a size in MB that it can easily grow with little effort.
Andrew J. Kelly SQL MVP
"Nags" <nags@.DontSpamMe.com> wrote in message news:eAH$0G%23eEHA.3520@.TK2MSFTNGP10.phx.gbl...
I cannot do that. This is a new server that we built and this could be a configuration issue. We are in the process of upgrading our production server and what if similar problem occurs on production. I can allocate about 2 Gig for temp db and 2 gig for temp log.. and one day a huge load comes on the server (which we are expecting in next few months).. we will get the same error. I cannot afford this on production.
-Nags
"Andrew J. Kelly" <sqlmvpnooospam@.shadhawk.com> wrote in message news:eD$X289eEHA.2028@.tk2msftngp13.phx.gbl...
Why don't you just make tempdb larger than you need and forget about this issue. You only have it at 89MB and the log at less than a MB. Disk space is way too cheap these days to deal with issues like this. Make it bigger and move on.
Andrew J. Kelly SQL MVP
"Nags" <nags@.DontSpamMe.com> wrote in message news:edPDW$8eEHA.1652@.TK2MSFTNGP09.phx.gbl...
This is the error that I am getting in the error log
The log file for database 'tempdb' is full. Back up the transaction log for the database to free up some log space..
Error: 9002, Severity: 17, State: 6
This is the information of my database server.
exec sp_helpdb tempdb
name,db_size,owner,dbid,created,status,compatibili ty_level
tempdb, 89.06 MB,sa,2,Aug 2 2004,Status=ONLINE,
Updateability=READ_WRITE, UserAccess=MULTI_USER, Recovery=SIMPLE, Version=539, Collation=SQL_Latin1_General_CP1_CI_AS, SQLSortOrder=52, IsAutoCreateStatistics, IsAutoUpdateStatistics,80
exec sp_spaceused
name,fileid,filename,filegroup,size,maxsize,growth ,usage
tempdev,1,C:\Program Files\Microsoft SQL Server\MSSQL\data\tempdb.mdf,PRIMARY,90432 KB,Unlimited,10%,data only
templog,2,C:\Program Files\Microsoft SQL Server\MSSQL\data\templog.ldf,,768 KB,Unlimited,10%,log only
database_name,database_size,unallocated space
tempdb,89.06 MB,87.66 MB
reserved,data,index_size,unused
672 KB,184 KB,400 KB,88 KB
exec master..xp_fixeddrives
drive,MB free
C,36715
D,371955
Please help. Where is the issue. I can manually increase the size of the tempdb and so there is no permission issue.
-Nags
|||Please understand the situation.. the size of the tempdb is as I gave below when it gave an error ie. just 768KB . I would assume that the log file should be huge enough for the error to occur.
The log file for the tempdb now is just 20 MB. And it is the brand new server with the latest hardware and latest disks and latest bus speed. IO for a 20 MB file cannot be a bottleneck. It is giving an error for the log file, and it is so small that even if it has to grow 10% it would be only 2 mb. This should not give an error. That's was I am concerned about.
If it is production, we allocate about 2 Gig temp db and let it autogrow by 10%. With your recommendation, we will let it autogrow by 5 MB.
-Nags
"Andrew J. Kelly" <sqlmvpnooospam@.shadhawk.com> wrote in message news:#H4stR#eEHA.2812@.tk2msftngp13.phx.gbl...
This error basically comes about when the log needs to autogrow and it can't do it fast enough. There still is no excuse for having the tempdb files that small. Sure this situation may come up at any time regardless of the size if the conditions are wrong but you are putting yourself in a position for this to happen right away. Any time you can do something proactively to avoid an issue you should do it. The other thing is that it sounds like your hardware is not able to keep up with the autogrow request. Growing is a very resource intensive process and if the hardware (CPU, Disks etc) are busy or inadequate you can get this condition. Make sure you don't have high disk or cpu queues. Also make sure the autogrowth size is only at a point where it can keep up with the hardware. By this I mean you don't want to autogrow at 10% if you have a 10GB file and slow disks. Make it a size in MB that it can easily grow with little effort.
Andrew J. Kelly SQL MVP
"Nags" <nags@.DontSpamMe.com> wrote in message news:eAH$0G%23eEHA.3520@.TK2MSFTNGP10.phx.gbl...
I cannot do that. This is a new server that we built and this could be a configuration issue. We are in the process of upgrading our production server and what if similar problem occurs on production. I can allocate about 2 Gig for temp db and 2 gig for temp log.. and one day a huge load comes on the server (which we are expecting in next few months).. we will get the same error. I cannot afford this on production.
-Nags
"Andrew J. Kelly" <sqlmvpnooospam@.shadhawk.com> wrote in message news:eD$X289eEHA.2028@.tk2msftngp13.phx.gbl...
Why don't you just make tempdb larger than you need and forget about this issue. You only have it at 89MB and the log at less than a MB. Disk space is way too cheap these days to deal with issues like this. Make it bigger and move on.
Andrew J. Kelly SQL MVP
"Nags" <nags@.DontSpamMe.com> wrote in message news:edPDW$8eEHA.1652@.TK2MSFTNGP09.phx.gbl...
This is the error that I am getting in the error log
The log file for database 'tempdb' is full. Back up the transaction log for the database to free up some log space..
Error: 9002, Severity: 17, State: 6
This is the information of my database server.
exec sp_helpdb tempdb
name,db_size,owner,dbid,created,status,compatibili ty_level
tempdb, 89.06 MB,sa,2,Aug 2 2004,Status=ONLINE,
Updateability=READ_WRITE, UserAccess=MULTI_USER, Recovery=SIMPLE, Version=539, Collation=SQL_Latin1_General_CP1_CI_AS, SQLSortOrder=52, IsAutoCreateStatistics, IsAutoUpdateStatistics,80
exec sp_spaceused
name,fileid,filename,filegroup,size,maxsize,growth ,usage
tempdev,1,C:\Program Files\Microsoft SQL Server\MSSQL\data\tempdb.mdf,PRIMARY,90432 KB,Unlimited,10%,data only
templog,2,C:\Program Files\Microsoft SQL Server\MSSQL\data\templog.ldf,,768 KB,Unlimited,10%,log only
database_name,database_size,unallocated space
tempdb,89.06 MB,87.66 MB
reserved,data,index_size,unused
672 KB,184 KB,400 KB,88 KB
exec master..xp_fixeddrives
drive,MB free
C,36715
D,371955
Please help. Where is the issue. I can manually increase the size of the tempdb and so there is no permission issue.
-Nags
|||Just because it is the latest Disks and hardware does not mean it is working properly. Have you monitored the system to ensure there are no Disk, memory or CPU bottlenecks? I have seen issues similar to this when the Raid array was broken and it was computing the parity and slowing everything down dramatically. From your xp_fixeddrives output it looks like you only have at most 2 drive arrays,( C: & D. Are these 2 physical arrays or 1 array with 2 logical drives? Do you have tempdb, tempdb logs on the same drive as the other databases and log files? What kind of array is it?
And by the way 5MB is probably too small. You are correct in that a few MB should not be a problem on properly operating hardware. While you want to ensure you don't grow in too large an amount you don't want it way too small either.
Andrew J. Kelly SQL MVP
"Nags" <nags@.DontSpamMe.com> wrote in message news:uOijUC$eEHA.2896@.TK2MSFTNGP11.phx.gbl...
Please understand the situation.. the size of the tempdb is as I gave below when it gave an error ie. just 768KB . I would assume that the log file should be huge enough for the error to occur.
The log file for the tempdb now is just 20 MB. And it is the brand new server with the latest hardware and latest disks and latest bus speed. IO for a 20 MB file cannot be a bottleneck. It is giving an error for the log file, and it is so small that even if it has to grow 10% it would be only 2 mb. This should not give an error. That's was I am concerned about.
If it is production, we allocate about 2 Gig temp db and let it autogrow by 10%. With your recommendation, we will let it autogrow by 5 MB.
-Nags
"Andrew J. Kelly" <sqlmvpnooospam@.shadhawk.com> wrote in message news:#H4stR#eEHA.2812@.tk2msftngp13.phx.gbl...
This error basically comes about when the log needs to autogrow and it can't do it fast enough. There still is no excuse for having the tempdb files that small. Sure this situation may come up at any time regardless of the size if the conditions are wrong but you are putting yourself in a position for this to happen right away. Any time you can do something proactively to avoid an issue you should do it. The other thing is that it sounds like your hardware is not able to keep up with the autogrow request. Growing is a very resource intensive process and if the hardware (CPU, Disks etc) are busy or inadequate you can get this condition. Make sure you don't have high disk or cpu queues. Also make sure the autogrowth size is only at a point where it can keep up with the hardware. By this I mean you don't want to autogrow at 10% if you have a 10GB file and slow disks. Make it a size in MB that it can easily grow with little effort.
Andrew J. Kelly SQL MVP
"Nags" <nags@.DontSpamMe.com> wrote in message news:eAH$0G%23eEHA.3520@.TK2MSFTNGP10.phx.gbl...
I cannot do that. This is a new server that we built and this could be a configuration issue. We are in the process of upgrading our production server and what if similar problem occurs on production. I can allocate about 2 Gig for temp db and 2 gig for temp log.. and one day a huge load comes on the server (which we are expecting in next few months).. we will get the same error. I cannot afford this on production.
-Nags
"Andrew J. Kelly" <sqlmvpnooospam@.shadhawk.com> wrote in message news:eD$X289eEHA.2028@.tk2msftngp13.phx.gbl...
Why don't you just make tempdb larger than you need and forget about this issue. You only have it at 89MB and the log at less than a MB. Disk space is way too cheap these days to deal with issues like this. Make it bigger and move on.
Andrew J. Kelly SQL MVP
"Nags" <nags@.DontSpamMe.com> wrote in message news:edPDW$8eEHA.1652@.TK2MSFTNGP09.phx.gbl...
This is the error that I am getting in the error log
The log file for database 'tempdb' is full. Back up the transaction log for the database to free up some log space..
Error: 9002, Severity: 17, State: 6
This is the information of my database server.
exec sp_helpdb tempdb
name,db_size,owner,dbid,created,status,compatibili ty_level
tempdb, 89.06 MB,sa,2,Aug 2 2004,Status=ONLINE,
Updateability=READ_WRITE, UserAccess=MULTI_USER, Recovery=SIMPLE, Version=539, Collation=SQL_Latin1_General_CP1_CI_AS, SQLSortOrder=52, IsAutoCreateStatistics, IsAutoUpdateStatistics,80
exec sp_spaceused
name,fileid,filename,filegroup,size,maxsize,growth ,usage
tempdev,1,C:\Program Files\Microsoft SQL Server\MSSQL\data\tempdb.mdf,PRIMARY,90432 KB,Unlimited,10%,data only
templog,2,C:\Program Files\Microsoft SQL Server\MSSQL\data\templog.ldf,,768 KB,Unlimited,10%,log only
database_name,database_size,unallocated space
tempdb,89.06 MB,87.66 MB
reserved,data,index_size,unused
672 KB,184 KB,400 KB,88 KB
exec master..xp_fixeddrives
drive,MB free
C,36715
D,371955
Please help. Where is the issue. I can manually increase the size of the tempdb and so there is no permission issue.
-Nags