all groups > sql server programming > january 2005 > threads for saturday january 29
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
how to add new column like existing one?
Posted by AFN at 1/29/2005 9:44:12 PM
What's the best way to add a new column Y to an existing table that already
has existing column X, and I want Y to be x+3? I need to actually save the
value in the database, so yes, I do want a new column.
... more >>
distributed transaction giving error on win 2003
Posted by bijupg at 1/29/2005 8:18:07 PM
Hi Guys,
I AM USING DISTRIBUTED TRANSACTION WITH 2 sql server 2000
on
win2k and is working fine.
but the same transaction not working in win2003.
i am getting the following error.
Server: Msg 7391, Level 16, State 1, Procedure P2, Line 5
The operation could not be performed because th... more >>
Auto Number
Posted by souris at 1/29/2005 5:03:21 PM
May I have an auto number to reset to one if primary key change?
For example,
Key Field Auto number field
1 1
1 2
2 1
I want to auto number reset to one every time Key field change value.
Any informat... more >>
Lock a row
Posted by souris at 1/29/2005 5:00:05 PM
I wanted to locked to hide a record to other user if the record is viewing
by one user.
Are there any way to do this?
Does lock the record can hide this record to other user?
Any information is great appreciated.
Souris
... more >>
Primary Key - Multiple Columns
Posted by bill_morgan_3333 at 1/29/2005 4:37:01 PM
Friends,
In Access I can set Primary Keys on two columns so that, together, those two
columns comprise a Primary Key.
Is there a way, through T-SQL, to define two or more columns as the Primary
Key on a table? For example, it may be that the [sku] column contains
duplicate values and the... more >>
How to save the SP result?
Posted by Gabriel South at 1/29/2005 4:23:41 PM
Hi!
How can i save the resultant recordset generated by an Stored Procedure to
another table (with the same structure) ?
I think its some like INSERT * INTO tmptable FROM **Exec mySProc**
Can you help my?
Thanxs, Gabriel.
... more >>
@@IDENTITY Programming Jitters
Posted by Manish Sawjiani at 1/29/2005 6:53:02 AM
Hi Experts,
I have done this and it is working but am getting the jitters and it is
making me spend sleepless nights:
Dim rsMaster as New ADODB.Recordset
Dim tempRS as New ADODB.Recordset
cn.BeginTrans
rsMaster.AddNew
rsMaster.Fields!Date = txtDate.Text
rsMaster.Fields!Ref =... more >>
Delete Duplicates
Posted by Enrique at 1/29/2005 3:35:02 AM
I have this table:
CREATE TABLE [Resultados] (
[Cliente] [nvarchar] (12) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
[Serie] [nvarchar] (3) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
[Numero] [int] NULL ,
[Fecha] [datetime] NULL CONSTRAINT [DF_Resultados_Fecha] DEFAULT (getdate()),
[To... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
|