Click here to Skip to main content
16,013,592 members
Home / Discussions / Database
   

Database

 
QuestionAdd only form in access - disable combobox drop Pin
Dan Neely4-Jun-07 9:43
Dan Neely4-Jun-07 9:43 
QuestionCharacter Encoding in .DBF Pin
tg20044-Jun-07 9:11
tg20044-Jun-07 9:11 
QuestionMSDE Problems Pin
Brendan Vogt4-Jun-07 6:49
Brendan Vogt4-Jun-07 6:49 
AnswerRe: MSDE Problems Pin
Paul Conrad4-Jun-07 7:06
professionalPaul Conrad4-Jun-07 7:06 
Questionchecking the datatype of a column in a table Pin
steve_rm4-Jun-07 6:00
steve_rm4-Jun-07 6:00 
AnswerRe: checking the datatype of a column in a table Pin
Arun.Immanuel4-Jun-07 6:53
Arun.Immanuel4-Jun-07 6:53 
AnswerRe: checking the datatype of a column in a table Pin
andyharman4-Jun-07 6:58
professionalandyharman4-Jun-07 6:58 
QuestionVeeeeeeeeeery slow queries in MS SQL 2005 Pin
3fonov4-Jun-07 3:51
3fonov4-Jun-07 3:51 
Hello all!
I've got some problem. When i'm executing about 10 stored procedures it's tooks 5 second to complete.
Here is procedures code:

ALTER PROCEDURE [dbo].[update_source]<br />
-- Add the parameters for the stored procedure here<br />
@internal_id int,<br />
@parent_id int,<br />
@sstate tinyint,<br />
@title nvarchar(50),<br />
@rng decimal(4,2),<br />
@lat dbo.latitude,<br />
@lon dbo.longtitude,<br />
@course dbo.angle,<br />
@speed dbo.speed,<br />
@stype xml<br />
AS<br />
BEGIN<br />
SET NOCOUNT ON;<br />
DECLARE @source_id int;<br />
DECLARE @state int;<br />
<br />
SET @source_id = (SELECT source_id FROM sources WHERE internal_id = @internal_id);<br />
IF @source_id IS NULL<br />
BEGIN<br />
INSERT INTO sources<br />
(internal_id, parent_id, updated, sstate, title, rng, course, speed, stype,lat,lon)<br />
VALUES<br />
(@internal_id, @parent_id, getutcdate(), @sstate, @title, @rng, @course, @speed, @stype, @lat*100000000, @lon*10000000);<br />
<br />
SET @source_id = (SELECT source_id FROM sources WHERE internal_id = @internal_id);<br />
END<br />
ELSE<br />
SET @state = (SELECT sstate FROM sources WHERE source_id = @source_id);<br />
UPDATE sources SET<br />
parent_id = @parent_id,<br />
updated = getutcdate(),<br />
sstate = @sstate,<br />
title = @title,<br />
rng = @rng,<br />
course = @course,<br />
speed = @speed,<br />
stype = @stype,<br />
lat = @lat*100000000,<br />
lon = @lon*10000000<br />
WHERE source_id = @source_id;<br />
<br />
<br />
<br />
INSERT INTO source_states<br />
(source_id, sstate, acquired)<br />
VALUES<br />
(@source_id, @sstate, getutcdate());<br />
<br />
END


and i'm execute it like this:
<br />
EXEC update_source 2190074, 5, 1, N'2190074', 0,57.7386783333333,10.57468,0,0,N'';<br />
EXEC update_source 2573335, 5, 1, N'2573335', 0,63.8,9.73333333333333,0,0,N'';<br />
.....<br />
.....<br />
.....<br />
EXEC update_source 2573105, 5, 1, N'2573105', 0,59.6166666666667,10.5166666666667,0,0,N'';<br />
EXEC update_source 2573235, 5, 1, N'2573235', 0,60.4,5.35,0,0,N'';


I think that mistake not in my code but somewhere in server configuration. But i can't find it out.
Thanks a lot!
QuestionRe: Veeeeeeeeeery slow queries in MS SQL 2005 Pin
andyharman4-Jun-07 6:13
professionalandyharman4-Jun-07 6:13 
AnswerRe: Veeeeeeeeeery slow queries in MS SQL 2005 Pin
3fonov4-Jun-07 7:01
3fonov4-Jun-07 7:01 
GeneralRe: Veeeeeeeeeery slow queries in MS SQL 2005 Pin
andyharman4-Jun-07 7:28
professionalandyharman4-Jun-07 7:28 
GeneralRe: Veeeeeeeeeery slow queries in MS SQL 2005 Pin
3fonov4-Jun-07 22:52
3fonov4-Jun-07 22:52 
AnswerRe: Veeeeeeeeeery slow queries in MS SQL 2005 Pin
Pete O'Hanlon4-Jun-07 23:30
mvePete O'Hanlon4-Jun-07 23:30 
QuestionRe: Veeeeeeeeeery slow queries in MS SQL 2005 Pin
3fonov4-Jun-07 23:51
3fonov4-Jun-07 23:51 
Questionmicrosoft access 2000 Pin
villaa4-Jun-07 3:05
villaa4-Jun-07 3:05 
AnswerRe: microsoft access 2000 Pin
Rob Graham4-Jun-07 5:03
Rob Graham4-Jun-07 5:03 
Questionhow to add the picture or movie into the table Pin
ganesamoorthidhayalan4-Jun-07 2:15
ganesamoorthidhayalan4-Jun-07 2:15 
AnswerRe: how to add the picture or movie into the table Pin
Colin Angus Mackay4-Jun-07 2:39
Colin Angus Mackay4-Jun-07 2:39 
AnswerRe: how to add the picture or movie into the table Pin
Giorgi Dalakishvili4-Jun-07 5:41
mentorGiorgi Dalakishvili4-Jun-07 5:41 
Questionwhat is the cursor? Pin
saravanan053-Jun-07 23:13
saravanan053-Jun-07 23:13 
AnswerRe: what is the cursor? Pin
originSH3-Jun-07 23:25
originSH3-Jun-07 23:25 
AnswerRe: what is the cursor? Pin
ganesamoorthidhayalan4-Jun-07 2:20
ganesamoorthidhayalan4-Jun-07 2:20 
AnswerHomework alert Pin
leckey4-Jun-07 4:06
leckey4-Jun-07 4:06 
GeneralRe: Homework alert Pin
originSH4-Jun-07 5:19
originSH4-Jun-07 5:19 
GeneralRe: Homework alert Pin
leckey4-Jun-07 9:55
leckey4-Jun-07 9:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.