Hi there!
I have some csv files which contain sample data to be loaded into a
database..
Well , do you know such a tool to do so and specially accessible tool
from vbscript to load my data??
thanks a lot :)
Vince...
more >>
question about guest account in model database...
Posted by === Steve L === at 3/25/2005 3:29:25 PM
i disabled most guest accounts in sql server soon as i set it up.
excepts the ones in master and temp dbs. but the guest accout in model
database says 'via group permission' and i couldn't delete it. should i
just leave it or do something about it? (if so, how). thank you
...
more >>
Temporary Tables as Parameters
Posted by Robert E. Flaherty at 3/25/2005 3:01:38 PM
From within SQL Server 2000, how do you send data from a temporary table or
a table variable from one stored procedure to another?
...
more >>
Adding an identity column solely for the benefit of the clustering index?
Posted by Joergen Bech NO[at]SPAM at 3/25/2005 2:35:02 PM
Let's say I have a table containing string values:
ValueTable:
----------------------------
ValueID guid
ParentID guid
SomeValue nvarchar(1000)
SomeOtherValue nvarchar(1000)
with indexes on
ValueID (clustered)
ParentID, SomeValue (non-clustered)
ParentID, SomeOtherValue...
more >>
How to ROLLBACK TRANSACTION on client level
Posted by E B via SQLMonster.com at 3/25/2005 2:32:12 PM
Suppose i connect to db (SQL Server) from the client (.NET) and call to
some store procedure, in this sp i start transaction (BEGIN TRANSACTION)
and before COMMIT or RALLBACK an error happen that imidietly stop the
execution of stored procedure, In the client i cacth this error but what
about an...
more >>
pivot question
Posted by Steve H at 3/25/2005 2:29:36 PM
Hello,
How can I build a table that pivots Date and Qty, but uses Price from first
month?
Have this:
Part Price Date Qty
1A 5 1/05 10
1A 6 2/05 20
1A 7 3/05 30
1B 2 1/05 10
1B 1 ...
more >>
SAN Connectivity Issue
Posted by Mark at 3/25/2005 2:11:04 PM
I have SQL 2000 SP3a EE on Compaq hardware. I have all user data and system
data on SAN Drives. I am noticing that even though SQL Server is set up as
automatic on start up still it doesn't stat the server automatically. I have
to manually start SQL Server service after the machine is booted u...
more >>
Using bigint in bitwise operations
Posted by Igor Marchenko at 3/25/2005 1:11:03 PM
I trying to use bigint in bitwise operations on SQL Server 2000 SP3.
Following stetment generates an error :
select 2149582848 & 1
Server: Msg 403, Level 16, State 1, Line 1
Invalid operator for data type. Operator equals boolean AND, type equals
numeric.
According to the following tab...
more >>
add seconds to time.
Posted by Fab at 3/25/2005 1:02:19 PM
Hello how would i add 5 seconds to this value in a select statement?
2005-02-16 04:12:44.000
...
more >>
Grouping on time
Posted by Fab at 3/25/2005 11:51:34 AM
Hello,
I have a table with 2 columns, time and amount. I want to be able to group
by an interval and sum the amount see below of a sample of the data.
Time Amount
2005-02-16 05:41:00.000 100
2005-02-16 05:41:01.000 100
2005-02-16 05:41:02.000 100...
more >>
CURSOR FETCH STATEMENT IS HANGING
Posted by rajeshlh at 3/25/2005 11:29:02 AM
Hi All,
I have a stored proc that uses a cursor to iterate over the join resultset
of 5 tables. After fetching roughly 12,000 records and running for about 30
minutes, the next FETCH statement inside the WHILE loop hangs. This happens
consisently. I tried to do a commit / checkpoint after ...
more >>
A question about bulk insert and partitioned views
Posted by Sean Shanny at 3/25/2005 11:23:54 AM
To all,
I posted this question in the server list and that may not have been the
appropriate place so I am posting here.
I have built a partitioned view exactly as described in BOL. I can insert
data into just fine and it places the values in the correct sub-tables
according to the check c...
more >>
tables in stored proces
Posted by Frank at 3/25/2005 11:15:17 AM
Hi,
I need an overview of tables used in stored procs. Does anyone have a nice
select statement to give me that info?
Thanks in advance
Frank
...
more >>
How can we understand ?
Posted by hoz at 3/25/2005 10:52:21 AM
How can we understand
- which stored procedures executes slowly ,
- which stored procedures needs more memory ,
- which indexes has much more mb
- which indexes are not used
- which indexes stay in memory
thanks for your answers
...
more >>
"Order by" by parameter in stored procedure
Posted by Carlos Santos at 3/25/2005 8:41:03 AM
I would like to pass the name of a column to a stored procedure, so the
result of the query would be ordered by that column.
I tried this:
CREATE Procedure ProductsByTab
(
@TabID int,
@Order nvarchar (50)
)
AS
SELECT
*
FROM
Product
WHERE
TabID = @TabI...
more >>
Locking Performance Problem
Posted by moonliver NO[at]SPAM gmail.com at 3/25/2005 8:39:19 AM
I have stores that communicate with a central database table. they do
updates every day with a stored procedure called sp_UpdatePriceTable.
its an average of 4000 records and takes about 30 seconds. If two
stores update at the same time. It takes like ten Minutes. What can I
do to fix this probl...
more >>
user defined functions in sql2000
Posted by sergiu at 3/25/2005 8:35:02 AM
i have a very strange problem and somebody might help me :-)
I have a multistatement user defined function and from time to time it
starts returning wrong results and what i mean by that is that i run the
function get the wrong results, i take the source and create a new function
that return...
more >>
Default settings for strings and numbers
Posted by bagman3rd at 3/25/2005 8:11:07 AM
How do I change the default settings on SQL Server so that; when I create a
new table in EM or import a table from Excel, I will always get varchar(100)
for any string instead of nvarchar(255), and change the default for numbers
to numeric(19,6) instead of float(53)?
Thanks.
Archer...
more >>
Save Excel file in the text field
Posted by Test Test at 3/25/2005 7:58:03 AM
I need to insert Excel file (the whole file alongwith data) into a text
field in the SQL table. Is that all possible (through VB scripting or
????)
Any ideas? Thanks!
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!...
more >>
deleted object for trigger
Posted by Sean at 3/25/2005 7:23:02 AM
Is 'deleted' object available for a table with Identity field? I try the
scripts as following. It gets me the error "Invalid object name 'deleted'".
How can I bypass it? Thanks.
CREATE TRIGGER dbo.myTable_Update ON dbo.myTable
FOR UPDATE
AS
SET IDENTITY_INSERT dbo.myTable_History ON
GO
...
more >>
Query needed
Posted by Satya at 3/25/2005 6:03:02 AM
Hi All,
I have a table
Task(
idTask int primary key,
sTask varchar(60)
)
with the following data.
idTask sName
---------------------------------
1 B
2 A
3 C
4 B
5 ...
more >>