all groups > sql server programming > august 2003 > threads for saturday august 30
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
Change 1299.99 to 1,299.99
Posted by Ericsson at 8/30/2003 9:36:52 PM
Hi All,
Please kindly tell me how to change the number to a format with comma in
store procedure of transact sql.
Thanks in advance.
Ericsson
... more >>
Query Help Needed
Posted by Larry Gibson at 8/30/2003 7:03:09 PM
Well, guys and gals, here I am again with a problem I can't quite figure
out. Anyone give me a push in the right direction? I have two tables in a
database, one contains a list of services given and the other has a list of
people and their addresses. I've stripped these two down to the essenti... more >>
Updatable Cursor in T-SQL
Posted by JB Casse at 8/30/2003 3:08:24 PM
Hello,
I am having a problem updating a table through a cursor in
a stored procedure. I think that I am missing some syntax.
It compiles fine and runs without error but my table has
not been updated. I use the following code:
DECLARE patientCursor CURSOR
FOR
SELECT PatientName FROM Fac... more >>
Primary keys for one-to-one tables
Posted by Robert at 8/30/2003 1:52:43 PM
I am designing a database for storing mutliple types of information
relating to members of a particular medical group. For various reasons
I want to keep the main table with the members names narrow and
therefore need to create a number of additional tables to hold other
information that is in a... more >>
country flags
Posted by Arda at 8/30/2003 1:33:53 PM
Firstly hi to all,
I have collected countries short names into SQL Country column.(e.g.
US-United Sates, RO-Romania,TR-Turkey).
I want to combine them with the country's flag picture.(e.g.
US.jpg,RO.jpb,TR.jpg)
I mean I want to make a datagrid which shows the Country column with the
flag pic... more >>
2 fk constraint in 1 field
Posted by Helena at 8/30/2003 11:42:11 AM
I have ONE FIELD in the child refering to 2 parents. So,
for me to enter a value in this child fk field, the value
must exist in BOTH parent. Otherwise I get a fk violation
error message. OK.
However this is what I'm try to do:
If "some_other_field" in the child table = 'X' only
consid... more >>
UDF deoptimizes query
Posted by JXStern at 8/30/2003 11:18:48 AM
I have code like:
select whatever
from mytable1 t1 inner join mytable2 t2
on t1.x=t2.x and myudf(t2.y)=1
This replaces code that read:
select whatever
from mytable1 t1 inner join mytable2 t2
on t1.x=t2.x and t2.y in (1,3,7,11)
It should be obvious what the UDF does:
CREATE FUN... more >>
problems with simple SQL statement
Posted by Branko Kaucic at 8/30/2003 11:18:21 AM
Hi all!
I am using c# and MS SQL server and by performing this statement:
CREATE TABLE tabela3 (id INT(10) AUTO_INCREMENT, ARFNRA ARCHAR(2),ARARTA
VARCHAR(20),ARABZ1 VARCHAR(21),ARABZ2 VARCHAR(21),ARGLAG VARCHAR(6),
ARGBAG VARCHAR(30),ARGLLI VARCHAR(6),ARGBLI VARCHAR(30),ARGLWA
VARCHAR(6... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Number generator - how?
Posted by Lars Dybdahl at 8/30/2003 10:44:58 AM
I'm migrating a database from Borland Interbase and cannot find out how to
create a number generator in Microsoft SQL Server 2000.
I tried the obvious:
create generator mygenerator;
(Generator is the same as postgreSQL's sequence)
As far as I can see, the only thing that can generate un... more >>
Are StoredProcedure ad hoc queries possible?
Posted by rooster575 at 8/30/2003 7:15:00 AM
I have may places in my web application where a web form is used to query
the database.
I would like to take advantage of stored procedures to make results faster
and overhead lighter, but I don't see how I can use them for these "ad hoc"
style queries.
For example, if you can select:
Regi... more >>
Adding a new populated column in a table
Posted by Emu at 8/30/2003 1:00:02 AM
Hi,
I added a new column into a populated table and then via
INSERT INTO dbo.tblExpired
(Mod)
SELECT 'TURI'
I tried to populate it with the word TURI but I get this error:
Cannot insert the value NULL into column 'AlreadySaved', table
'Warranty.dbo.tblExpired... more >>
|