all groups > sql server (alternate) > november 2004 > threads for november 29 - 30, 2004
Filter by week: 1 2 3 4 5
Is a subselect possible on a stored procedure
Posted by kjc at 11/30/2004 10:29:13 PM
I have a stored procedure what produces N number of rows.
The rows are ordered by a cataegoryType as follows
catA
catB
catC
What is needed to do on the C++ code side is break these out into
their respective categories by iterating through the rows and checking
the category ... more >>
Tricky SELECT and ORDER BY
Posted by theintrepidfox NO[at]SPAM hotmail.com at 11/30/2004 8:26:25 PM
Dear Group
I wonder whether you can push me in a direction on how to design the
following statement. I'm looking for a SELECT with some tricky ORDER
BY.
The database table looks like this:
MenuID TabText SubTabID TabOrderID
------- ----------- ----------- -----------
1 ... more >>
counting the inserts and updates on a table in a sql server database
Posted by vthalakola NO[at]SPAM yahoo.com at 11/30/2004 6:45:55 PM
Hello,
Can someone point me to getting the total number of inserts and updates on a table
over a period of time?
I just want to measure the insert and update activity on the tables.
Thanks.
- Vish... more >>
How to change TrimTrailingBlanks from No to Yes
Posted by txt NO[at]SPAM emia.com.au at 11/30/2004 5:57:21 PM
Hi I've got many tables that has columns definition TrimTrailingBlanks = NO to
all char and varchar columns.
How can I set TrimTrailingBlanks to Yes without re-creating the tables.
Thanks... more >>
DTS Help with Update?
Posted by jtvinar NO[at]SPAM yahoo.com at 11/30/2004 5:25:58 PM
I'd like to create a DTS package to update records within a table
leaving other information stored in those records as is. For example,
table a has a record with 5 columns where 3 are null. An external
source has the non-null values for those 3 columns. Can anyone help
with some general steps... more >>
What is a cursor?
Posted by seearoomhawaii NO[at]SPAM resonant.com at 11/30/2004 3:17:41 PM
I had a friend write a stored procedure to perform a function for one
of my clients. What he wrote doesn't fully do what I need, and I hope
to finish it myself. I have programming sense, but not so much with
SQL.
I'm trying to figure out the code, and he has used something called a
"cursor." ... more >>
dumbest question of the day: run a simple query and save the results into a text file
Posted by emebohw NO[at]SPAM netscape.net at 11/30/2004 1:37:27 PM
Can someone demonstrate a SIMPLE way to do this that does not require
additional functions or stored procedures to be created? Lets say I
want to execute the following simple query - "select * from clients" -
and save the results to a text file, we will assume c:\results.txt
How can I do this ... more >>
relationships as a table
Posted by Vinodh Kumar P at 11/30/2004 1:05:53 PM
I have the tables tblEmployees and tblProjects.
tblProjects has one column called Percentagetime, to hold the percentage of
time by an employee for a project.
My Question : Why should we introduce a 3rd table called
tblProjectsAndEmployees?
tblProjectsAndEmployees will have
1)EmployeeNum... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
MS Sql 2000 vs. Pervasive SQL
Posted by Chuy at 11/30/2004 11:30:55 AM
I am using Maximizer Enterprise 8.0 as my companies CRM solution. Currently
we are using the included Pervasive SQL that shipps with the product. Is
there someone out that who could tell me if there are any performance
benefits to switching the Pervasive Engine with a Microsoft SQL engine.
... more >>
Linking Scheduled Jobs
Posted by stuart_ferguson1 NO[at]SPAM btinternet.com at 11/30/2004 8:12:43 AM
I currently have 4 scheduled jobs which are all scheduled for 4
different days and was wondering if there was anyway these could be be
stopped automatically in the event of a job failure, consider the
example below
Monday
Job runs to produce a file requesting BACS Payments.
Wednesday
Job ... more >>
Query to get all user tables with columns
Posted by dag.o.johansen NO[at]SPAM gmail.com at 11/30/2004 6:12:59 AM
Hi,
I tried to create a simple view as follows
CREATE VIEW V_ALL_USERTABLE_COLUMNS
AS
(
SELECT
OBJ.NAME as TableName,
COL.NAME as ColName,
TYP.NAME AS TYPE
FROM
SYSOBJECTS OBJ,
SYSCOLUMNS COL,
SYSTYPES TYP
WHERE
OBJ.TYPE = 'U'
AND OBJ.ID = COL.ID
AND COL... more >>
Select-into with identity
Posted by newtophp2000 NO[at]SPAM yahoo.com at 11/30/2004 5:46:20 AM
I have the following query that has been working so far. I modified
it slightly to work from another source table (new_products). Now,
SQL Server complains that the identity is inherited already:
"Cannot add identity column, using the SELECT INTO statement, to table
'dbo.my_products', which ... more >>
Kaliedo
Posted by tbowden NO[at]SPAM pmsi-consulting.com at 11/30/2004 4:38:33 AM
Hello,
I wonder if anyone can help, I am trying to track down information on
a product called Kaleido.
Apparently it is a database/data warehouse reporting system written by
Shell, which then spun-off the company and sold it into a lot of other
companies.
They don't seem to have a websit... more >>
Query that returns record that arn't duplicated in another table
Posted by luke.curtis NO[at]SPAM westoxon.gov.uk at 11/30/2004 3:18:02 AM
Hi.
I have a table (websitehits) which holds statistics about websites.
This table has a date field (datecounted). What I need is to create a
query which returns a list of dates between two date ranges (say a
year ago from today and a year from now) which only shows dates that
haven't been us... more >>
User Guest
Posted by audrey2 NO[at]SPAM email.it at 11/30/2004 2:00:16 AM
Nel database "master" ho mappato, per errore, l'utente "guest" su un
utente sql "XXX" creato in SQLServer.
Questo tipo di impostazione non permette più di aver accesso con
l'utente anonimo "guest" (mappato su null) al db (con autorizzazioni
limitate al ruolo public).
Ho provato sia da EM che ... more >>
Enterprise Manager: defaults lost in import/export
Posted by steve at 11/30/2004 1:32:48 AM
Hi,
When I copy tables in a database from one server to another using
enterprise manager, everything copies ok, except for field defaults.
Has anyone seen this, and what is the solution?
--
http://www.dbForumz.com/ This article was posted by author's request
Articles individually checked... more >>
table columns storage
Posted by hopehope_123 NO[at]SPAM yahoo.com at 11/29/2004 10:41:08 PM
Hi ,
This is related to datawarehouse , data mining . We are told that data
mining tools such as spss or sas , need a large table which has lots
of columns inside . Based on our project , out final table which will
be used in data mining , has lots of computed values . The final
number of col... more >>
use column alias in another calculation
Posted by DC at 11/29/2004 2:51:30 PM
Is there a way to use a column alias in an another calculation within the
same query? Since I am using some long and complex logic to compute total1
and total2, I don't want to repeat the same logic to compute the ratio of
those two columns. I know that I can do a nested query, but that seems too... more >>
Data update
Posted by Alberto at 11/29/2004 12:12:06 PM
Hello all,
I'm new in this newsgroup and I apologise if my question has already done.
Let me knwo if FAQ is avaible somewhere.
I use msSQL server to manage data for a B2B portal.
Orginal data comes from as400 db2.
I need to update msSQL data from db2 source.
I used MetaDataService exec... more >>
Help! SQL Collation
Posted by sjoshi NO[at]SPAM ingr.com at 11/29/2004 11:11:16 AM
Hello All
I'm a bit confused about collation settings so needed some info. on
it. My database server is currently using SortOrder as
Latin1-General, case-insensitive, accent-sensitive,
kanatype-insensitive, width-insensitive for Unicode Data, SQL Server
Sort Order 52 on Code Page 1252 for non... more >>
SELECT and UPDATE in the same query
Posted by Mattias Yngvesson at 11/29/2004 8:14:45 AM
I have a table with only one row to get unique ID-numbers. To get the next
ID-number I have to increase the number in the row: first, get the number
from the database, and then do the update.
Some ASP-code:
Set rs = db.execute("SELECT id FROM tbl_id")
id = rs("id")
db.execute("UPDATE... more >>
combine 2 queries
Posted by avitalnagar NO[at]SPAM walla.co.il at 11/29/2004 7:29:17 AM
Hi,
I have 2 queries that I need to join. I have the following tables:
attendancelog :
headerid
reportmonth
attlogstuds:
headerid
sid
class:
sid
class
status
yearcode
logdate
cdate
mid
The result must return all the classes that appear in query2 but not
in query1.
I am no... more >>
email being sent, but no message
Posted by jsa1981 NO[at]SPAM hotmail.com at 11/29/2004 2:18:51 AM
I have setup an email notifications system, that basically takes each
row from a table and sents out an email according to the data in that
row. The emails get sent, with the subject being filled as expected.
Only problem is that sometimes there is no message.
Here is the stored procedure that... more >>
Use TSQL to create a data matrix
Posted by Andrew Chanter at 11/29/2004 12:05:57 AM
I am developing a SQL database to cover operations that were previously
handled in a spreadsheet, and need to create a view or procedure that
presents data into a matrix format similar to what the users are currently
working with. There must be a way I can create this using Transact SQL but
I c... more >>
|