all groups > sql server (alternate) > april 2004 > threads for april 15 - 21, 2004
Filter by week: 1 2 3 4 5
SQL server image data
Posted by john NO[at]SPAM e-classifiedad.com at 4/21/2004 9:57:33 PM
Hi! Guys,
May be this question is little stupid but I want to clarify this.
Let suppose I have image data field in Sql server 2000 and I am uploading
an image of 10KB(thru asp.net application).
What would be the size for that table with image data field ?
Is it 10KB or less than 10KB or more th... more >>
Sql Scripts to Monitor another SQL Database.
Posted by froliol NO[at]SPAM yahoo.com at 4/21/2004 7:45:29 PM
Greetings All, I was hoping that some of you might be aware of any
free scripts that were written explicitly for the purpose of
monitoring a SQL Server database. I want to be able to determine
up/down events, Error Log updates, Long running Transactions,
Deadlocks, etc. My plan is to use a cen... more >>
How to Parse Sentences into Words
Posted by HumanJHawkins at 4/21/2004 6:48:12 PM
Hi all,
I have a table of text and associated data. I want to break apart the text
into individual words, yet retain the data in other columns. For example:
Sentence: Chapter:
--------------------------
I like cats. 1
Joe likes dogs. 2
Should become:
... more >>
How can I query a trusted domain (from MS SQL)?
Posted by ammar_fake NO[at]SPAM vip.hr at 4/21/2004 4:23:02 PM
I've defined a linked ADSI server and I seem to be able to query the
local domain ( localdomain.com ) with:
DBCC TRACEON(7300)
GO
SELECT * FROM OPENQUERY(ADSI, 'SELECT displayName FROM
''LDAP://DC=localdomain,DC=com'' ')
But I also have a trusted domain ( trusteddomain.com ) which I would
... more >>
transaction id mismatch
Posted by s_gara NO[at]SPAM yahoo.com at 4/21/2004 2:20:26 PM
Why is the transaction id returned by the profiler (or
sp_trace_getdata) does not match with that in the transaction log ( as
seen with select * from ::fn_dblog(default, default) ) in SQL2000/SP3?
Thanks,
sg... more >>
Transferring from SQL 6.5 to SQL 2000
Posted by vincent.pirolli NO[at]SPAM btinternet.com at 4/21/2004 1:48:59 PM
Hi
I am a novice with SQL server as i have experience with access. I need
to do some front end development in access for a client who runs SQL
6.5 or so he tells me... (i have been told that data files under 6.5
are .dat and under 7.0 they are .mdf? is this correct?)
I have taken a copy of ... more >>
trigger
Posted by rick NO[at]SPAM abasoftware.com at 4/21/2004 12:15:57 PM
I have a table named Contact that has a guid primary key.
After each insert in Contact, I want to insert the primary key
value into another table called accountnumber.
As I understand it, a temporary table called Inserted is created for
triggers,
but I'm not having much luck creating the trig... more >>
tools for cleaning name and address data?
Posted by Ellen K. at 4/21/2004 11:40:24 AM
What tools has everyone used for cleaning name and address data
(including identifying not-immediately-obvious duplicates) in
connection with a CRM project or the Customer dimension of a data
warehouse? What did you like/dislike about the tool you used? How
customizable was the tool you used?... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Median query with Group by clause
Posted by aj70000 NO[at]SPAM hotmail.com at 4/21/2004 11:14:44 AM
Hi,
I have a view in which I have 3 cols...(pno,ptno,diff)..diff is the
difference in time in minutes.I want to calculate Median(diff) group
by pno,ptno...using a sql query for SQL server...
Any help is greatly appreciated..
Thanks
AJ... more >>
warning re ADO .UpdateBatch method
Posted by Ellen K. at 4/21/2004 9:41:34 AM
Awhile back there was some discussion about ways of sending multiple
rows of data to SQL Server. The ADO .UpdateBatch method was one of
the possibilities mentioned, and Erland said he thought that probably
once the data get to SQL Server they are probably actually inserted
one row at a time. ... more >>
View Problem
Posted by Keith at 4/21/2004 9:34:24 AM
I have created a view to test some of the data in my database. I am
relatively new to SQL so may have caused this problem by doing something
wrong.
I have a table called SYS_Individual which contains records on individuals.
A number of the fields in this take a numeric entry which corresponds... more >>
RAM
Posted by Ellen K. at 4/21/2004 9:30:30 AM
Is it true that SQL Server Standard edition can only use 2 GB of RAM?
If so, and the box has more, does that mean the excess WILL be
available for the O/S and any other apps?... more >>
security with web-based access
Posted by Ellen K. at 4/21/2004 8:50:02 AM
First of all, I have never done any web-based stuff, so if the
following sounds ignorant, it's because I am!
So far all our SQL Servers are accessed only over our network and we
use Windows authentication. Now the guy I'm working with on the
design of our next stuff wants the two new databa... more >>
Primary and linking keys on SQL server tables
Posted by chrispreynolds NO[at]SPAM hotmail.com at 4/21/2004 2:24:07 AM
I've been designing SQL server databases for a while and have always
assumed that primary keys and linking keys should be numbers rather
than textual fields to improve performance. As an example, if i were
to create a new table i would put in a surrogate primary key that
autoincrements.
I've... more >>
Unallocated Space anomaly
Posted by philipyale NO[at]SPAM btopenworld.com at 4/21/2004 1:25:59 AM
At my current workplace, whenever I check table sizes using the
'reserved' column from sysindexes, or sp_spaceused, I get a total for
all user tables which exceeds the physical size of the database.
Running sp_spaceused with no parameteres, I get a NEGATIVE value for
unallocated space in the d... more >>
How can I show decimals after division update
Posted by joel at 4/20/2004 8:07:08 PM
I have a table which I want to update by dividing one field into
another. The update runs with no errors, but the results come out as
only a positive integer number.
The datatype for the result field is float.
The datatype for the other fields are int.
I have tried testing by dividing 7 ... more >>
SQL Query- confused with nesting...
Posted by USI Newsgroups at 4/20/2004 5:21:59 PM
It's me, one more time. My last request didn't quite filter all my records,
I have one more field I need to evaluate in the script.
DESCR TYPE SELL StartDate EndDate Number
65048 04 Price A 4/21/2004 4/26/2004 35456
65048 06 Price ... more >>
Moving a SQL Server 2000 database that is in Standby Mode
Posted by jbizzaro NO[at]SPAM yahoo.com at 4/20/2004 2:42:58 PM
SQL Users/DBAs,
I'm trying to move data files around for a database that is in standby
mode. I can detach/attach the database fine using
SP_DETACH_DB/SP_ATTACH_DB , but when I re-attach the database the log
sequence is broken and I can't restore any more logs. Does anyone
know if there is a... more >>
Help in SQL Query - easy
Posted by USI Newsgroups at 4/20/2004 2:18:07 PM
First, let me apologize for how easy this probably is:
DESCR TYPE SELL StartDate EndDate
65048 04 Price A 4/21/2004 4/26/2004
65048 06 Price C 4/20/2004 4/27/2004
65048 08 Price B 4/22/2004 4/28/2004
65049 0... more >>
Make a copy of parts of a ROW, but with a new Key.
Posted by Robin Tucker at 4/20/2004 1:36:42 PM
Hi there,
I want to insert a new record into my database table, giving new field
values for all but one (an image field), which I can copied from an existing
record. The background to this is that I am allowing a user to create a new
"template" from an existing one, thus I want a new record, ... more >>
BACKUP TABLE(historical)
Posted by Fernand St-Georges at 4/20/2004 11:41:53 AM
How to build a TRIGGER that copies, all the time, the data from the table on
which the transaction occurs to the historical table?
thanks
Fernand
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.659 / Virus Database: 423 ... more >>
Help in SQL query
Posted by bjorgenson NO[at]SPAM charter.net at 4/20/2004 9:57:11 AM
I need to select records that begin with the letter A or B or C.. etc
Here is my select query:
SELECT '<a href="' & LINK & '"> ' & PLANNAME & '</a>' AS hyperl
FROM TABLE;
Where in here would I add A* to only pull PLANNAME records that start with A?... more >>
Max () query problem
Posted by jim.ferris NO[at]SPAM motorola.com at 4/20/2004 8:44:10 AM
Say I have a table like this (just for example)
ID Date Name
__ ____ _____
1 1/2/2004 Store A
2 1/1/2004 Store A
3 1/3/2004 Store B
4 1/2/2004 Store B
Say I wanted to get the rows for the maximum dates for stores A and B
aka this record set..
I... more >>
Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is used as an expressio
Posted by nachikethm NO[at]SPAM yahoo.com at 4/20/2004 8:26:03 AM
I am getting 2 resultsets depending on conditon, In the second
conditon i am getting the above error could anyone help me..........
CREATE proc sp_count_AllNewsPapers
@CustomerId int
as
declare @NewsId int
set @NewsId = (select NewsDelId from NewsDelivery where
CustomerId=@CustomerId )
... more >>
Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is used as an expressio
Posted by nachikethm NO[at]SPAM yahoo.com at 4/20/2004 8:19:00 AM
Hi,
Urgent Help appreciated....
I am getting resultset with first condition and when try to get the
resutlset from second condition i am getting the above error in
SQL200.
I know that i am getting more then one value in the second condition
but even i am getting more then one value in my... more >>
Cannot See a Newly Installed SQL Server 2000 (No Active Directory)
Posted by jaykchan NO[at]SPAM hotmail.com at 4/20/2004 5:45:58 AM
We have just installed a SQL Server 2000 (SP 3A) onto a computer that
has Windows-2003 Server on it. Now, we cannot get access to that
database server from other computers. Seem like this may be an issue
with Active Directory.
Our network consists of Windows-2000 Servers (SP 4) and Windows-200... more >>
EXEC Inside a cursor iteration problem
Posted by radek.z NO[at]SPAM engage-learn.com at 4/19/2004 5:19:10 PM
I 've have a stored procedure that compares fields across databases.
In order to do so it requires 2 values it acquires from 2 tables. The
search is based on the ID of the data owner and a subject:
proc_evaluate_results @StudentId = '222222', Course = 'PSY101'
In order to obtain those values... more >>
domain user or local system account ?
Posted by kona_iron NO[at]SPAM yahoo.fr at 4/19/2004 5:07:23 PM
Hello,
My server is part of a W2K domain. What do you advice me as account to
run my SQL*Server, service started with a domain user account or as
local system ?
I need advices from a security point of view.
Thank's in advance... more >>
Alter Table - Change Column Datatype
Posted by sandell NO[at]SPAM pacbell.net at 4/19/2004 11:29:46 AM
Hi,
I want to change the datatype of an existing column from char to
varbinary. When I run the "Alter Table" statement, I get the
following error message -
Disallowed implicit conversion from data type char to data type
varbinary, table 'test.dbo.testalter', column 'col1'. Use the CONVERT
... more >>
Creating Tables and automatically inserting data-HELP!!
Posted by nms595 NO[at]SPAM lycos.co.uk at 4/19/2004 11:14:00 AM
I have created a table with the following columns...
Date(datetime),Actual (Int),Planned (Int)
I need to insert weekending dates starting from 23/04/04 looping
thru'for the next 52weeks automatically into the date column.
Then in the actual and planned colums, I need to insert a count of
so... more >>
Calculated values and database design.
Posted by tses NO[at]SPAM hotmail.com at 4/19/2004 8:34:49 AM
Hi everybody,
I need some help on calculated values in my database design.
I'm creating an accounting / business management application with the
usual modules like A/R, A/P, Inventory, etc.
I don't know how to handle calculated values in fields like "Customer
Balance", "Inventory Item Qt... more >>
Job Failed
Posted by piero_cannizzaro NO[at]SPAM libero.it at 4/19/2004 3:57:13 AM
Hi,
I've a problem with a job in SQL Server 2000.
By enterprise Manager I try to schedule a job which will run a stored
procedure.
When I finish to schedule it I try to run it up manually but after few
seconds it displays to me a failed message.
The error message don't have an id so I cannot s... more >>
DTS permissions and ownership
Posted by ryanofford NO[at]SPAM hotmail.com at 4/19/2004 2:32:22 AM
We have a DTS package developed on our development PC's (SQL 7). It
runs fine. When we schedule it on the server (SQL 7), it fails. We
have been able to find that this is a known issue down to the use of
permissions (running it uses the users permissions, scheduling it uses
the servers). http://... more >>
Select and Update of records without being used by other users?
Posted by M Wells at 4/18/2004 11:26:58 PM
Hi All,
I need to change a column value in several thousand records in a table
and output a list of the record ids of the records I've updated into
another table.
The table, however, is being used by other users via a website, so I
need to make certain that website requests don't touch on t... more >>
Repeatable error, with script, with code
Posted by matt NO[at]SPAM fruitsalad.org at 4/18/2004 10:42:00 AM
Hello
I have spent the last weeks trying to solve this problem but with no
luck at all, I have a piece of code that looks like this
declare @bestnr int,
@artnr varchar(25),
@journalnrrow int,
@bestlevant decimal,
@vb_inpris money
set @bestnr = 33434
set @artnr = '1441'
set... more >>
MSDE Install Problem
Posted by Daro Bruno at 4/18/2004 1:40:47 AM
Hello,
I have just purchased a new CPU and when I attempt to install MSDE the
process nears the end and stops, and removes the installed files. If anyonr
has an idea on a correction let me know.
Thanks
... more >>
SQL Query Quandry
Posted by Laphan at 4/17/2004 9:56:14 PM
Hi All
Sorry for the spare info. It wasn't because I didn't want to display it. I
just didn't know how to get the data that you needed. I think I've got it
now so please note the following:
1) The DB is SQL 6.5.
2) My DDL for the tables in question:
/****** Object: Table [dbo].[SAL... more >>
Paging Advice Needed
Posted by Martin Feuersteiner at 4/17/2004 5:53:07 PM
Dear Group
A while ago I've asked how paging is possible and have read the articles on
aspfaq.com. Great work, esp. the speed comparison of all the different
techniques. Thank you to everyone who has responded to my post. Somewhow
Google didn't let me reply to the thread!
All of the methods... more >>
who i am in MSSQL
Posted by pri10der at 4/17/2004 12:06:09 PM
Hello!!
How can I check my actual login i MSSQL.
I need it becouse Login is argument of my procedure.
Is it possible to make something like this??
Please help me!!
... more >>
T-SQL ASP While not rs.EOF
Posted by brentchristopher NO[at]SPAM hotmail.com at 4/17/2004 7:43:06 AM
I am trying to write a stored procedure that utilizes something like a
while in ASP.
my select statement is like this.
s = select distinct(employee_id) from employee_table
rs.Open s
while not rs.EOF
then I want to use employee_id in about twenty different sql
statements. They are all ... more >>
Connection Problems to SQL 6.5
Posted by Mansoor Azam at 4/16/2004 5:13:57 PM
We connect to a SQL 6.5 server (IP for example 202.64.213.11) on WIN NT
using ODBC DSN and / or SQL Client (DB-LIB). Everthing was working fine then
the some XP client machines (192.168.0.1 and 192.168.0.3) started giving
problems. All TCP/IP connections go thru the WIN 2000 multihomed machine
... more >>
SQL + everyday
Posted by pri10der at 4/16/2004 5:08:51 PM
Can somone explain me how to run some procedure everyday at 22:00 in MSSQL.
This is not an Administrative Task, it's my procedure.
... more >>
Search contents of stored procedures?
Posted by M Wells at 4/16/2004 4:48:42 PM
Hi All,
I'm wondering if anyone can tell me if it's possible to search for
stored procedures by their contents?
I tend to leave very descriptive notes in stored procedures and
they're beginning to build up in number, so I'm wondering if it's
possible to search in Query Analyzer for stored p... more >>
Generate SPs as text
Posted by laurenquantrell NO[at]SPAM hotmail.com at 4/16/2004 2:02:01 PM
Is there an easy way to loop through every stored procedure in a
database and create a file containing all of the SP code?
lq... more >>
Syntax error converting the varchar value '10.136.20.20' to a column of data type int.
Posted by anthony.hibbitts NO[at]SPAM wamu.net at 4/16/2004 12:05:25 PM
I have an inventory database that Im trying to create a report out of
the IP address are a lookup on a seperat table but I keep getting the
above error can I change the table row to something to fix this or
what.
SELECT i.INVENTORY_ITEM_ID AS [IP Address],i.HOST_NAME AS [Server
Name], '' ... more >>
Cursor and row retrieval question
Posted by Mark at 4/16/2004 11:21:16 AM
Hi everyone, I have a cursor that goes through one table and does a
comparison with another table, code below
==============
CREATE PROCEDURE spMyDataBaseMatch AS
set nocount on
Declare @FirstName varchar(100)
Declare @LastName varchar(100)
Declare @PhoneNumber varchar(100)
Declare @CourseCo... more >>
SQL Query Analyzer - Trace Tab
Posted by skawczynski NO[at]SPAM davisconstruction.com at 4/16/2004 5:01:27 AM
What are the units of measure for the Duration and CPU column in the
Trace output view?... more >>
How to convert int to decimal
Posted by BCS at 4/16/2004 3:17:56 AM
I have a table called BOLDetail and I need to update a column called "Tons"
from int to decimal with a precision of 5 and scale of 3. I attempted to
change the setting in Table Design but received an error when trying to save
my changes.
There's only about 12 records in this particular table, ... more >>
SQL Server 2000 Newbie
Posted by Good News Interactive at 4/16/2004 2:51:18 AM
Hi All,
I just got thrown to the lions. Can anyone suggest a light reading book with
a crash course in SQL 2000 server that will get me up and running quickly?
Thanks!
Bill
... more >>
Incorrect columns returned by view
Posted by john.dennison NO[at]SPAM glendimplex.com at 4/16/2004 2:07:56 AM
When I create a view consisting of an inner join between a view and a
table the columns refernced in the the view are returned incorrectly,
example
select id.itemcode, id.description, iv.linevalue, iv.vatvalue from
dbo.tbl_itemdetails id inner join dbo.vw_invoices iv where
dbo.tbl_itemdetails... more >>
DTSrun in Stored Procedure
Posted by m3ckon at 4/15/2004 4:27:14 PM
Hi,
I'm writing a stored procedure to run a dts package and I've successfuly
got this working using my sotred proc and the syntax of dtsrun is
correct.
However, I'm trying to pass a variable to the DTSrun command and this is
where I'm having the problem
the code for the proc is:
Decla... more >>
Can anyone give me a query for this ?
Posted by neeraj_bod NO[at]SPAM yahoo.com at 4/15/2004 3:23:13 PM
These are my table structures . Could you please suggest me an
alternative:
tblArticles: ArticleID,Title,Summary,ContextSubTypeID,PostDate
tblArticlePages: ArticlePageID,ArticleID,PageNum,Content
tblAuthors:AuthorID, Name
tblArticleAuthors:ArticleID,AuthorID
tblContextSubtype:ContextSubTypeI... more >>
'Upgrade' from 2000 Standard to 2000 Development edition
Posted by Dejan Markic at 4/15/2004 2:31:55 PM
Hello!
I would like to change the SQL server 2000 from Standard version to
Development edition. I have two database running on this server, both
replicated, with few jobs, etc ... Can you recommend the easiest way to do
this? I heard, it would be as easy as, detaching the databases, deleting
... more >>
Any Column Updated / Inserted Trigger
Posted by jcrigley NO[at]SPAM spartanmotors.com at 4/15/2004 1:01:40 PM
Hi,
I'm a SQL Server newbie, so I'd appreciate if someone would tell me if
this is possible. I'm running SQL Server 2000 on Win2k Server
I have one table with a large number of columns. I have two pieces of
logic that I'd like to execute depending upon whether an insert or an
update state... more >>
Stored Procedure Question
Posted by milam30062 NO[at]SPAM yahoo.com at 4/15/2004 11:28:30 AM
I need to write a stored procedure that takes the following data:
ID Sequence ColumnName
71 1 CustomerAccountName
71 2 RevenueClass
And loops through the record set to concatenate Column Name into a string.
The result should look like this:
ID ColumnName
71 Custo... more >>
Guid as primary key
Posted by rick NO[at]SPAM abasoftware.com at 4/15/2004 9:48:11 AM
When using a Guid as your primary key in a table, does it make
sense to make it a clustered index?
Thanks,
Rick... more >>
Update Time Question
Posted by blue at 4/15/2004 9:23:59 AM
We are using a java codebase which writes data to a SQL Server 2000 database
using the JTurbo (3.0) JDBC driver. We are finding that a record update
takes longer and longer as the table grows. For example, when the table has
~200,000 records, the update will be around 1 second. Once table is u... more >>
Any Linux-based apps similar to MS SQL Enterprise w/ DTS ?
Posted by alex NO[at]SPAM totallynerd.com at 4/15/2004 8:52:17 AM
Hi all,
I bet this doesn't exist, but does anyone know of an MS SQL Enterprise
Manager-type application for Linux that would give me access to a DTS
stored on the server? I'm a web programmer by profession, and most of
my tools are Linux-based, but because I do so much indepth work in MS
SQL... more >>
Using a trigger on a view
Posted by mrea NO[at]SPAM ohiotravelbag.com at 4/15/2004 8:41:20 AM
I have never written a trigger before, but I have a couple of uses for
them now so I am trying. I have a view that I created and I want to
have this trigger, run anytime the view is run. I don't know if my
problem is with the trigger or permissions on the view, right now I
have given everyone p... more >>
update field with max from another table
Posted by rcamarda NO[at]SPAM cablespeed.com at 4/15/2004 6:10:43 AM
I have two tables STUDENTS and REGISTRATIONS. I wish to update my
STUDENT table field, LAST_ATTENDED_SESSION_ID from my REGISTRATION
table of the max SESSION_ID found in the REGISTRATION table.
STUDENT starts off with:
STUDENT_ID LAST_ATTENDED_SESSION_ID
123456789 000000
234567890 ... more >>
Data transfer from 6.5 to 2000
Posted by thakwani NO[at]SPAM rediffmail.com at 4/15/2004 5:58:42 AM
Hi !
Can anybody tell, how to transfer the sql server 6.5 Data to SQL
server 2000. I use the upgrade utility, but it gives an error.... more >>
SQL Server text file continuous import problem
Posted by chrissmith_76 NO[at]SPAM yahoo.co.uk at 4/15/2004 4:29:08 AM
Background: I am using a MS Access 2000 front end with SQL Server 8.0
back end.
I have the requirement to import all text files (regardless of
filename) from a given folder on the network into a table within SQL
Server. This import needs to run continuously, as more text files
will be saved ... more >>
Data Restore on Elm Street!
Posted by johntear NO[at]SPAM hotmail.com at 4/15/2004 1:27:37 AM
Hi all, a bit of a nasty one here!
Ive inherited a server that has just collapsed. It contains SQL Server
and has a fair amount of data on it.
The server would only boot into a BSOD Stop Error. I suspected that
one of the hives in the registry was corrupt so I used the Win2K
Recovery Consol... more >>
|