|
Hi RAH
Thanx for the reply. I actually get this error even when I manually execute the stored procedure in SQL Server.
MP
|
|
|
|
|
Then I would think the function is a CLR function and there is a bug in there. Never having used the CLR in SQL Server I do not know how you debug such a beast.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
I have one sql server 2005 database and its size is 16 GB , i rebuild indexes on a table which is having size almost 12 GB (item Master)
* i know its not normalized but i get the db in this condition
dbcc dbreindex (item_master,'',80) and now size becomes 26 GB should i shrink database or physical files showing 50 % free space available.
what else can i do to increase the db speed , already check ,Disk I/O , Memory , temp DB , network Packet size.
Planning to do
UPDATE STATISTICS item_master
dbcc updateusage ('DB')
DBCC INDEXDEFRAG (DB,'item_master')
DBCC dropcleanbuffers
dbcc freesystemcache ('all')
dbcc cleantable (DB,'item_master') --
Anything else which can speed up the things from database point of view
Best Regards,
SOFTDEV
If you have knowledge, let others light their candles at it
|
|
|
|
|
How many rows are in the table? How many fields? What kind of data is it? Are your indices appropriate for the way you are wanting to extract the data? Can you update the structure to improve the performance or are you stuck with it?
|
|
|
|
|
Hi,
I have a database on webserver, when some one gives any order from website then data comes into this database. Now i'm fetching these data from websercer to our local machin's dataabse. for this purpose i'm using en exe which contains stored procedure for fetching the data.
These stored procedures takes 5-7 min to fetch the data from webserver. Now the problem is that at the time of execution of stored procedure no one can give the online order because of database busy.
My question is that how i can improve the system so that one can give online order at the time of execution of stored procedure.
Thank you..
krishna veer singh
|
|
|
|
|
can you tell which Database Server are you using and do you have any maintenance plans scheduled.
Best Regards,
SOFTDEV
If you have knowledge, let others light their candles at it
|
|
|
|
|
I'm using sqlserver 2005
krishna veer singh
|
|
|
|
|
Not without knowing a lot more about your system - table sizes, indices, configuration, usage, etc etc. One thing you could try, in your stored proc use (nolock) on your reads, this may help
Bob
Ashfield Consultants Ltd
Proud to be a 2009 Code Project MVP
|
|
|
|
|
No any complex thing is their in my system. only i'm selecting data from web sqlserver table and inserting it in to local sql server tables.
krishna veer singh
|
|
|
|
|
yes, but I bet there is a where clause, so are those columns indexed? Its far too complex to do in a fotrum without any table defs, index defs, usage stats etc etc. Run your query through query analyser and look at the execution plan, that should at least give you some clues.
Bob
Ashfield Consultants Ltd
Proud to be a 2009 Code Project MVP
|
|
|
|
|
Can you show your store procedure statement
Best Regards,
SOFTDEV
If you have knowledge, let others light their candles at it
|
|
|
|
|
In SP there is nothing but only select and insert statements, i mean i'm selecting new data from web sql server and inserting it into our local sqlserver.
krishna veer singh
|
|
|
|
|
I always assumed that accessing the same Access database by multiple users somehow just works, i.e. many users can read and write to an Access database in a shared folder on the network.
I assumed the same functionality with SQLce.
However, I've never been able to test it.
Does it work as I assumed ?
|
|
|
|
|
abiemann wrote: I always assumed that accessing the same Access database by multiple users somehow just works, i.e. many users can read and write to an Access database in a shared folder on the network.
Happens way too often and although Access provides locking-mechanisms and the likes, you'll find that it fails to perform adequately.
SQL Express is also available free, and you can easily upsize your Access-database to SQL Express.
I are Troll
|
|
|
|
|
Yes, it works as you assumed... However, in both cases, each user needs to have their own front end installed (whether that's an Access DB, VB, whatever) You don't want a bunch of users opening the same file at the same time (ie: a single access database containing both tables as well as queries, forms and reports....)
|
|
|
|
|
the Access DB is used to only store data and it will be located in some shared folder on the network.
There's about 10 client apps (which is probably what you meant by "front end") that will, at any point of time, read data from the database and also write data to the database.
Forms will not be implemented in the database directly.
|
|
|
|
|
Access and SQL Server will both be fine as a back end then...
|
|
|
|
|
let us take the server is down and all the data are corrupted. other than backup,replication, log shipping what can we do to get back the data or make the customer to proceed with the work ?
|
|
|
|
|
Repeating the question won't help
only two letters away from being an asset
|
|
|
|
|
Ah, but this time some of it is bold and underlined (I guess for those of use that were too dim to understand the first time).
|
|
|
|
|
I'm waiting for a reply, but I don't have a backup, and my response will be then you don't have a client!
|
|
|
|
|
Hi friends.
Please tell me how to convert nvarchar to smalldatetime in sql server
|
|
|
|
|
With the convert function.
declare @a nvarchar(20)
set @a = '1 jul 2009 15:30:45'
select convert(smalldatetime,@a)
Bob
Ashfield Consultants Ltd
Proud to be a 2009 Code Project MVP
|
|
|
|
|
Hi Thanks For your reply ,
The thing is that i have one table in which date is stored in column(datataype nvarchar)
There are more than lacs of records in this table.
so i want to convert this field into following format
ORIGINAL FORMAT OF FIELD IN TABLE (DATATYPE:-NVARCHAR) => 30/11/2009
I WANT INTO FORMAT : 30112009
AND ANOTHE FORMAT : 30/11/2009(SMALL DATETIME)
Please help me out.
I tried the solution which you gave but its giving following error
"Msg 8115, Level 16, State 2, Line 1
Arithmetic overflow error converting expression to data type smalldatetime.
"
Please help me out
|
|
|
|
|
Not sure why you get this error.
declare @a nvarchar(20)
select @a = '30/11/2009'
select convert(smalldatetime,@a)
gives me 2009-11-30 00:00:00, which is correct. How it is displayed (i.e. 30/11/2009 or 30112009) is down to your format mask, SQL Server simply stores the datetime value as a number.
Please, before posting any more questions around this, use the F1 key and read up on date time data types.
Bob
Ashfield Consultants Ltd
Proud to be a 2009 Code Project MVP
|
|
|
|