all groups > sql server programming > june 2005 > threads for sunday june 5
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
Help With Where Clause
Posted by Rene at 6/5/2005 11:29:30 PM
I am creating a food database application where I allow the user to search
for food names. For this example, lets supposed that my database has the
following food names on the table.
Salt with water
Chips and salsa
Fried Chicken
Guacamole
If the user types 'sa' on the search textbox I w... more >>
Dynamic Query!!
Posted by AJ at 6/5/2005 10:24:01 PM
I am trying to create a stored procedure containing a dynamic query.
I am still new to using conditionals in sql, so any help to
get this query running would be appreciated!!!
CREATE PROCEDURE [dbo].[get_emp_list]
@name VARCHAR(60) = NULL,
@from_dt SMALLDATETIME = NULL,
@to_dt SMALLDAT... more >>
String or binary data would be truncated
Posted by Alex Potter at 6/5/2005 8:01:34 PM
Hi there,
I have an SP that on one machine runs fine but on the other fails with the
message
String or binary data would be truncated
I know why this is happening(there is a temporary table where 2 of the
column are smaller than the underlying
columns), but I'm trying to figure out what serv... more >>
Query with 5 tables, grouping by year
Posted by et at 6/5/2005 6:56:53 PM
How would I group results from 4 tables, each with a year field, so the
results are one row for each year, all based on one clientid from the client
table
For instance, my tables:
Client table: fields ID, ClientName
Tables 1 through 4 all have the same fields, in addition to others: F... more >>
Returning Text String.
Posted by AJ at 6/5/2005 3:05:01 PM
I am returning a rather large result set using a basic select query.
One of the columns being returned is a char(1) column.
I am wondering if their is a way in sql to return an associated text string
to a char(1) column.
Eg:
If char(1) = 'c' Then text string returned in place place of ... more >>
Getting records for latest 4 dates
Posted by Daren at 6/5/2005 10:42:14 AM
Hi,
I would like to retrieve all the records in a table that are in the
latest 4 dates.
Each record has a date field. The latest date in the table may be today,
yesterday or last week - it varies.
I would like to be able to retrieve all records that belong to the
latest 4 dates in the... more >>
Compare 2 addresses
Posted by YN at 6/5/2005 8:12:01 AM
Hi,
I hae a DB with a table holding companies, each company has the fields :
name, address, city, state, country and zip.
I have several clients connected to my server application (ASP.Net), and
they sometimes add new companies to the companies table. When they add the
company they don't alw... more >>
Time intervals
Posted by Brian Selzer at 6/5/2005 7:58:01 AM
I am calculating charged hours for labor activities.
Each Labor record has Employee, Activity, StartTime, StopTime, ElapsedHours,
and ChargedHours.
There are two business rules:
(1) An Employee cannot be on the same Activity more than one time at the
same instant.
(2) Unless expl... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
select statement with tablename as parameter
Posted by nospam NO[at]SPAM tgylnospam.no at 6/5/2005 2:10:01 AM
I have a stored procedure that is called with a number of parameters. From
the set of parameters I can compute which tablename out of 30 that I am going
to include in my select statement. I would like to include a parameter
@tablename in my select statement, like this:
Declare @tablename as... more >>
SQL Server 2005 vs 2000
Posted by Brian Henry at 6/5/2005 1:10:45 AM
Anyone know of any major problems that might occur when 2005 is released
when upgrading a 2000 database server to it? thanks!
... more >>
|