all groups > sql server mseq > september 2005
Insert Multiple Rows into a Table Without Using Select
Posted by RitaG at 9/28/2005 10:59:03 AM
Hi.
I want to insert 4 rows into a SQL table.
Can I do this without using 4 Insert statements?
This is my SQL statement:
Insert Into MyTable Values (1,2)
(3,4)
(5,6)
... more >>
query on day's transactions
Posted by dhamric at 9/26/2005 1:45:03 PM
Let me preface this by saying that i'm not a programmer.
I'm trying to setup a job that runs a query every night at 7pm that will
pull all transactions with the date reported that equals the system date.
What identifier would I use so that it pulled transactions based on the the
system dat... more >>
alter table set default value for money type column
Posted by kei at 9/26/2005 1:56:02 AM
I run the sql like the following
Alter table ItemStone add ISPurPrice money default 0
then when I select the itemStone table, I find the field ISPurPrice is still
Null, not 0, why?
I'm using SQL Server ver 8.0 (2000)
Thx!! ... more >>
ALTER COLUMN on a text or ntext field
Posted by Paul B at 9/21/2005 12:00:00 AM
Hi,
I'd like to run the following command:
ALTER TABLE cal_respurpose ALTER COLUMN [purpose] varchar(255)
but it falls over because the current [purpose] column is 'text': -
Server: Msg 4928, Level 16, State 1, Line 1
Cannot alter column 'purpose' because it is 'text'.
I can chan... more >>
comma delimited file
Posted by Wendy Elizabeth at 9/20/2005 5:14:01 PM
I am working with SQL Server 2000 table called dbo.proofofconcept".
I need to separate values that are all in one column that are space limited.
For example I have a column called tryit and the
value = '1234 456.75 01/01/2001 ABBR TRY@GSU.ORG 75% $12.75 '.
I want to write a query so that ... more >>
space delimited values in one column
Posted by Wendy Elizabeth at 9/20/2005 5:12:01 PM
I am working with SQL Server 2000 table called dbo.proofofconcept".
I need to separate values that are all in one column that are space limited.
For example I have a column called tryit and the
value = '1234 456.75 01/01/2001 ABBR TRY@GSU.ORG 75% $12.75 '.
I want to write a query so that ... more >>
How to call talbe/SP from Linked server with out database and user
Posted by Rajesha at 9/14/2005 7:57:08 AM
Dear Friends,
Usually we call tabal and SP like given below.
select * from [linkedserver].[database].[dbo].[TableName]
EXEC [linkedserver].[database].[dbo].usp_storedprocedure
but I like to all with out database and username.
I tryed like below
select * from [linkedserver... more >>
YTD Last Year again
Posted by Benedikt Fridbjornsson at 9/2/2005 12:00:00 AM
Hi there, I'd like to ask you for help with following:
I am trying to select YTD for last year in my sales table. Our accounting
year is from 1st of July to 30 June.
select *
from Salestable
Where Postingdate > "1st of July 2004" and
Postingdate < "today last year"
best regards,
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
|