all groups > sql server programming > march 2004 > threads for saturday march 6
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
RAND() in a TF
Posted by Stephen J Bement at 3/6/2004 3:25:21 PM
I am trying to create database populator that gathers a random FirstName and
a random LastName. I need the output from the first stage to return a Table
variable( so I can JOIN to other tables). I am being thwarted by "Invalid
use of 'RAND' within a function."
Does anyone know of a way to acco... more >>
Time Intervals
Posted by MikeM at 3/6/2004 3:16:06 PM
I've capture total number of seconds from a start date and end date. I want to be able to display the time interval in
day(s) hours:minutes:seconds
Any assistance would be great
thanks
MikeM.... more >>
Dynamic Cursor in Stored Proc.
Posted by Larry Pensil at 3/6/2004 2:46:05 PM
<thanks> I am new to Trans. SQL, so forgive in advance </thanks
In essesnce, the stored proc assigns a set of records from on user to another by taking the following steps:
1. Build a dynamic sql statement based on parameters passed (the where clause will change based on retrieval criteria user s... more >>
sort
Posted by CSharp ( ILM ) at 3/6/2004 1:37:35 PM
how to sort the following string column
1
2
10
3
4
11
as
1
2
3
4
10
11
and not
1
10
11
2
3
4
Thanks
... more >>
if statement in select clause
Posted by santoshamb NO[at]SPAM yahoo.com at 3/6/2004 1:06:30 PM
I'm creating an update sproc that will be used by a client program,
which will update a variable combination of columns for a particular
row. What I'd like it to do is if nulls are passed in for parameters,
then it will set a variable to whatever is currently in the database
for that record.
... more >>
join to get all combinations
Posted by Joe Ross at 3/6/2004 11:30:10 AM
I'm looking to do a join on two sets (from the same table) and end up with
all combinations of the two sets as my result set. So given:
Set1 contains A and B
Set2 contains C and D
I want my join to result in
A C
A D
B C
B D
I have some SQL that accomplishes this, but it seems like a comp... more >>
Slow Query
Posted by Eyad at 3/6/2004 7:06:08 AM
Hi everybody
- I have the following table [mt]
(Guid UNIQUEIDENTIFIER PRIMARY INDEX
Number INT, -- inde
Name VARCHAR(250)
Code VARCHAR(250)
Mask BIGINT, -- inde
.... and 50 more field
- This table has 160,000 record
- The following query
Select top 1 [Guid] from [mt] where [Mask] & ... more >>
difference between stored proc and user defined functions
Posted by dk at 3/6/2004 5:42:31 AM
what is the difference between a sql stored procedure
and a sql user defined function?
tia,
dk... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
saving tables in MSDE
Posted by Vic at 3/6/2004 1:20:11 AM
hi,
i want to connect to tables stored in different data
sources (SQL Server or Oracle or Access etc), make the
necessary joins and store the result in an MSDE database
locally. how do i accomplish this using VB.NET?
thanks,
Vic... more >>
Add new records
Posted by HartA at 3/6/2004 12:34:56 AM
I have a table where I just want to duplicate the data that's already
there. Except I want to change the first field to a new code.
I want to keep the old records around just in case of problems with new
format.
Record #1 in file.
Field1 - 100
Field2 - Address1
Field2 - Addr... more >>
|