all groups > sql server programming > december 2005 > threads for saturday december 10
Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
SQL Server 2000: How to inject a COLUMN VALUE into an EMAIL???
Posted by Alan Mailer at 12/10/2005 10:17:53 PM
Using SQL Server 2000, I want to trigger an email anytime a particular
table is appended. I already know the SQL language which will trigger
an email, but I need to know something more:
Is there a way to add a value from one of the appended row's columns
to the email? If so, how would you go... more >>
Show the records that contain "special word" first in SQL query re
Posted by Trent at 12/10/2005 7:47:02 PM
I have a SQL query like: "Select CityName From Student"
The current result is like below:
AACityA
BBCityA
BBCityB
BBCityC
BBCityD
CCCityA
CCCityB
DDCityA
....
Now I'd like to order the result to show the records that contain "BB"
first, that is, my desired result should be like ... more >>
Please help...can not connect to sql server 2005
Posted by sqlster at 12/10/2005 6:28:02 PM
I used to work on sql server 2005 on hosted on virtual pc 2004 with windows
2000 server as guest operating system on windows xp professional as host
operating system.
No matter how much ram I threw at it, it was very slow.
I decided to wipe out the notebook and install windows 2000 with s... more >>
Sorting Text Dates
Posted by Scott at 12/10/2005 4:18:58 PM
I'm trying to figure out how to sort the below results in Northwind by the
month and year. Because my Date is text type, SQL is ordering it incorrect.
Anyone know a workaround?
I need a solution that will sort the m-yyyy format, but I may even need to
sort a Dec - 2005 format.
MY CODE:
... more >>
Need help optimizing a stored procedure - SQL2k
Posted by M. Simioni at 12/10/2005 1:44:31 PM
Hi, i was thinking about a way to rewrite the procedure i'm going to
explain, to improve performance and take down the whole duration.
I have a table with about 5.000.000 rows:
TABLE1: ID bigint, ID_PM bigint, DATE datetime, ...other
fields...
and another table with abount 5.0... more >>
Aggregate Transpose Problem
Posted by Scott at 12/10/2005 1:12:06 PM
My example code (CODE 1) returns quarter counts for several fields in
Northwind (I'm using Northwind to simulate my actual data). It returns code
that looks like FIGURE 1.
Can my sql be modified so the Field names are the GROUPED BY and run down
the 1st column while forcing the Quarters to... more >>
Sales Average Query
Posted by kevin_james1970 NO[at]SPAM yahoo.co.uk at 12/10/2005 8:53:15 AM
Hi Reader,
I'm fairly new to SQL and am struggling with this
query. Can someone help me out?
I have three tables, Employee, Sale and EmployeeSale.
>From these tables I want to be able to monitor employee
performance by calculating the value of sales each of my
staff has made in a qtr and ... more >>
bulk insert question? Another way?
Posted by kevin at 12/10/2005 8:41:34 AM
hi guys,
I have a text file contains about 1 million rows, I tried to import to a
table but I received data conversion errors for some rows, however, the row
number is like 504500 for example, I want to troubleshoot this row but the
only way I know is to open the text file (300MB) which ... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
smo disbale job
Posted by B. Mark McKinney at 12/10/2005 8:25:03 AM
In the following function a JobId is passed in that the user wants to
disable. The function then retrieves the job collection, finds the correct
job, sets the IsEnabled to false and then tries to update the job. This
results in this error:
Alter failed for Job <job.name>
Does anyone have... more >>
Dynamic Criteria for a Stored Procedure
Posted by Ryan.Chowdhury NO[at]SPAM gmail.com at 12/10/2005 7:05:34 AM
Our database utilizes some custom functions and .dll's to perform IRR
calcuations. The IRR calculation takes two steps.
1. The first step is to create a view which preps the cash flows and
pulls out what you want to analyze. ("Ad Hoc Query")
2. The second step is to create a stored procedure ... more >>
SQL Bug??
Posted by marcmc at 12/10/2005 3:33:02 AM
select 717306 * 3000
Server: Msg 8115, Level 16, State 2, Line 1
Arithmetic overflow error converting expression to data type int.
What's the story with this?
... more >>
Update Query question.
Posted by Trinidad at 12/10/2005 12:45:45 AM
Hi
I do have a question about a query on update. I appreciate if anyone could
help me.
Here is the table I have:
Emp
ID Lname Fname OfficeID
1 A Bobo 1
2 B Coco 2
3 C Jojo 1
Office
... more >>
finding missing dates in a sequence
Posted by jay at 12/10/2005 12:13:02 AM
I have 200 tables that have data entered into the daily. I need to identify
all dates that are missing from the tables.
for example:
date column1 column2
1/1/2005 5 20
2/1/2005 67 35
4/1/2005 3 17
5/1/2005 9 ... more >>
Left Outer Join and Where Clause
Posted by Kiran at 12/10/2005 12:00:00 AM
Hi,
I have two tables Table1 and Table2.
I need to join Table2 on Table1_SID to get name for SID Column of Table1.
But I need all rows of Table1.
I can use a Left Outer Join to achieve this.
Now I have a problem. There are rows in table2 and table1 where
Table1_SID and SID have -1 v... more >>
|